Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkuiZhang committed Nov 21, 2024
1 parent 0b373d4 commit 98aaca4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/languages/src/go.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,8 @@ impl super::LspAdapter for GoLspAdapter {
let gobin_dir = container_dir.join("gobin");
fs::create_dir_all(&gobin_dir).await?;

let install_output = util::command::new_smol_command("go")
let go = delegate.which("go".as_ref()).await.unwrap_or("go".into());
let install_output = util::command::new_smol_command(go)
.env("GO111MODULE", "on")
.env("GOBIN", &gobin_dir)
.args(["install", "golang.org/x/tools/gopls@latest"])
Expand Down

0 comments on commit 98aaca4

Please sign in to comment.