mirror of
https://github.com/sst/opencode.git
synced 2025-07-07 16:14:59 +00:00
do not install gopls if go is not installed
This commit is contained in:
parent
69920a73d7
commit
8c4b5e088b
1 changed files with 1 additions and 0 deletions
|
@ -57,6 +57,7 @@ export namespace LSPServer {
|
|||
PATH: process.env["PATH"] + ":" + Global.Path.bin,
|
||||
})
|
||||
if (!bin) {
|
||||
if (!Bun.which("go")) return
|
||||
log.info("installing gopls")
|
||||
const proc = Bun.spawn({
|
||||
cmd: ["go", "install", "golang.org/x/tools/gopls@latest"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue