GOPROXY environment not being passed #2026
Description
I'm not use to running on Windows, so excuse me if it's something specific I have to do on Windows.
Using the latest version of vscode-go, 0.6.92, I am seeing that the builtin functionality to install the analysis tools, the GOPROXY environment variable which is globally defined on windows, (and passed to vscode), isn't being passed when this library executes go.exe. When I start a terminal inside of vscode, it gets picked up as expected..
PS C:\Users\liam\code\my-package> go env
[...]
set GOPROXY=http://TRUNCATED.internal.com:3000
[...]
Trying to download modules through the Athens proxy, it is still throwing certificate errors when hitting Github (corp firewall restrictions). When doing it through the terminal, it downloads just fine.
Is there a way to get the go plugin to run 'go env' to see what environment variables it's getting passed?
Would also be worth while to add an additional setting for this as well (to override GOPROXY
, much like GOROOT
and GOPATH
) -- I expect with GOPROXY
making it much easier for corporations with restricted firewalls to use Go, this will be a frequently requested feature.