-
Notifications
You must be signed in to change notification settings - Fork 645
Add go.goos to the extension options #632
Comments
It is a bit of an edge case but I agree that it would be a useful feature to have. @hickeng can you explain a bit more your edge case, are you trying to check that your code compiles properly against multiple os/arch targets? |
@ramya-rao-a For completeness yes, but it's GOOS that's the most awkward currently. @mattetti The multi-target case is definitely one that I hit, but it's not actually the one I experience on a daily basis. |
Thanks @hickeng. This should be easy to do. PRs are welcome if anyone wants to take a crack at this. Hints:
|
This is fixed by #932. The update containing the fix will be out soon |
Fix is out in the latest update (0.6.60) @hickeng Can you add your env vars in the new setting |
@ramya-rao-a Thank you, "go.toolsEnvVars": {"GOOS" : "linux"}, that works for me. |
Currently the only way I've found to set GOOS for the Go tools in vscode is to set the environment before launching the editor - this doesn't work well if you have multiple workspaces that may need different GOOS settings.
While I appreciate the prompt to ensure that the code at least compiles on multiple platforms, not all 3rd party packages do so and that causes real issues with guru and the other navigation tools.
The text was updated successfully, but these errors were encountered: