Set environment variables for go tools#932
Conversation
|
@bancek, |
|
@bancek Why only build/lint/vet? Wouldn't other tools/features benefit from this as well? If yes, then it would make more sense to update @hickeng This can help your GOOS scenario also I believe. #632 |
|
@ramya-rao-a Yes! Looking forward to the merge. |
|
@ramya-rao-a env variables are mostly needed for building. I don't think it's a good idea to change |
|
@bancek See #632 (comment) for scenario where the env vars need to be used by some of the Go tools that we use the Go extension. About your concerns on changes to VS Code runs each extension in a separate process, and so any changes we do to the Edit: I was wrong, VS Code runs all extensions in the same process which is separate from the process used by the core VS Code. Will merge this PR. |
This will let users set env variables for
go build(e.g.CGO_CFLAGS,CGO_LDFLAGSandLD_LIBRARY_PATH).