mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-22 18:24:21 +01:00
do not install gopls if go is not installed
This commit is contained in:
@@ -57,6 +57,7 @@ export namespace LSPServer {
|
|||||||
PATH: process.env["PATH"] + ":" + Global.Path.bin,
|
PATH: process.env["PATH"] + ":" + Global.Path.bin,
|
||||||
})
|
})
|
||||||
if (!bin) {
|
if (!bin) {
|
||||||
|
if (!Bun.which("go")) return
|
||||||
log.info("installing gopls")
|
log.info("installing gopls")
|
||||||
const proc = Bun.spawn({
|
const proc = Bun.spawn({
|
||||||
cmd: ["go", "install", "golang.org/x/tools/gopls@latest"],
|
cmd: ["go", "install", "golang.org/x/tools/gopls@latest"],
|
||||||
|
|||||||
Reference in New Issue
Block a user