-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installation: allow to use different build settings for tools installation #825
Comments
|
Also, the new proposal does not have a counterpart to |
@ramya-rao-a Thanks for the comment.
Yes, I am proposing not to apply the env vars if
Yes, this setting applies only to the go command used to install the tools. So, these flags are only go command flags.
The tool installation is now done in module-aware mode and shouldn't pollute |
Change https://go.dev/cl/387956 mentions this issue: |
This new setting allows users to specify the go command for tools installation. The go version selected for go.toolsManagement.go is not yet used for version check in goInstallTools.ts inspectGoToolVersion yet. For #825 Change-Id: Ic7a401b2089fe1e412ede32be474ee0f309c32d4 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/387956 Trust: Hyang-Ah Hana Kim <[email protected]> Reviewed-by: Suzy Mueller <[email protected]>
v0.32.0 will introduce a new Q. Users need to use different environment variables? Q. Users need to use special build flags. It's possible that users may need different env vars & flags - in that case, for now users can wrap the go command in a script and place the script in the |
I thought I already filed an issue to track this, but obviously I didn't?
Recently we observed multiple cases where reusing the project build configuration for tool installation is not desirable. Example cases are
GOOS/GOARCH
, we probably need to override them withGOHOSTOS/GOHOSTARCH
or simply unset them )Currently, the settings that are involved in tool installation are
"go.goroot"
,"go.alternateTools"."go"
, and the version chosen bygo.environment.choose
command: determines the Go version"go.toolsGopath"
: determines the tool installation path (${go.toolsGopath}/bin
)."go.toolsEnvVars"
: determines the environment vars. This is also used for tools execution such asgo build
,gopls
,dlv
...I propose to introduce a new setting that takes an object
When they are not set, we fall back to the old behavior.
This setting is
machine
scope (https://code.visualstudio.com/api/references/contribution-points).We also deprecate
"go.toolsGopath"
sometime next year.cc @suzmue @stamblerre @ianthehat @ramya-rao-a
The text was updated successfully, but these errors were encountered: