Skip to content
This repository was archived by the owner on Jul 15, 2023. It is now read-only.
This repository was archived by the owner on Jul 15, 2023. It is now read-only.

GOPROXY environment not being passed #2026

Closed
@lrstanley

Description

@lrstanley

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions