You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm behind a corporate proxy in terms of the imports my Go code imports. So I almost always have GOPROXY, GOPRIVATE, GONOPROXY env vars set in my terminal.
However I want to install the vscode-go tools (gopls, staticcheck etc) from the internet, without picking up the GOPROXY etc.
I use the following setting to customize the go command that's used for "installing Go tools" to remove these env vars:
@hyangah I see now. Why does it silently fail and swallow the error? It can solve my problem but cost me quite some time to see that. I put stuff like date there, thinking it does ~exec.LookPath query, and now I see it expects absolute paths (docs don't make this clear).
Can we
fix docs to match behavior
not swallow the error message and resort to the default setting?
If someone's changing this field it's not great to ignore their intent.
What version of Go, VS Code & VS Code Go extension are you using?
Version Information
go version
to get version of Go from the VS Code integrated terminal.gopls -v version
to get version of Gopls from the VS Code integrated terminal.code -v
orcode-insiders -v
to get version of VS Code or VS Code Insiders.Go: Locate Configured Go Tools
command.Share the Go related settings you have added/edited
Describe the bug
I'm behind a corporate proxy in terms of the imports my Go code imports. So I almost always have GOPROXY, GOPRIVATE, GONOPROXY env vars set in my terminal.
However I want to install the vscode-go tools (gopls, staticcheck etc) from the internet, without picking up the GOPROXY etc.
I use the following setting to customize the
go
command that's used for "installing Go tools" to remove these env vars:However, it still just picks up the
/opt/homebrew/Cellar/go/1.20.3/libexec/bin/go
program.Steps to reproduce the behavior:
go clean -modcache
+rm -rf ~/go/bin
export GOPROXY=nonexisting.domain
in the shellcode .
from this shell to launch vscode with GOPROXY env var set.cmd
in the error still is not picking up the custom command in the OUTPUT window (this error is from my goproxy):Screenshots or recordings
The text was updated successfully, but these errors were encountered: