extension: customize build for tools#3254
Conversation
|
NB: this PR is merely RFC despite of code working. |
|
Example settings: {
"go.toolsManagement.buildFlags": [
"-ldflags", "-s -w"
],
"go.toolsManagement.buildTags": "grpcnotrace",
"go.toolsManagement.envVars": {
"CGO_ENABLED": "0",
"GOAMD64": "v3"
}
} |
|
This PR (HEAD: 5fc30ae) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/vscode-go/+/571856. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/571856. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be Please don’t reply on this GitHub thread. Visit golang.org/cl/571856. |
|
This PR (HEAD: df6c792) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/vscode-go/+/571856. Important tips:
|
|
I've renamed " {
"go.toolsManagement.buildEnvVars": {
"CGO_ENABLED": "0",
"GOAMD64": "v3"
},
"go.toolsManagement.buildFlags": [
"-ldflags", "-s -w"
],
"go.toolsManagement.buildTags": "grpcnotrace"
} |
This change allows one to specify build settings used to install tools. E.g. the one may specify "GOAMD64=v3" for tools (in order to match current machine specs) but proceed with defaults (i.e. "GOAMD64=v1") for builds/tests globally. Signed-off-by: Konstantin Demin <rockdrilla@gmail.com>
|
This PR (HEAD: 8fdd5bb) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/vscode-go/+/571856. Important tips:
|
|
Message from Hyang-Ah Hana Kim: Patch Set 3: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/571856. |
This change allows one to specify build settings used to install tools.
E.g. the one may specify "GOAMD64=v3" for tools (in order to match current
machine specs) but proceed with defaults (i.e. "GOAMD64=v1")
for builds/tests globally.