Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extension/src/goEnv: set GOTOOLCHAIN=auto by default
After go1.21, the tool authors can specify their go version requirements in their go.mod files. Gopls v0.17+ will start to require the latest go version. The `go install` command will then try to download the required go version if the local toolchain is not new enough to meet the requirement. Some users set GOTOOLCHAIN to local to avoid toolchain update during their own projects build. If the local toolchain is older than the latest go, tool installation will stop working. The users' intention is most likely to control the go version used to build their own projects, not the tools the plugin depends on though. Override the env var to the official toolchain's default "auto". Fixes #3430 Change-Id: I708ec88001b40e7b5dcd47365083e7530d1d7eab Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/596315 Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Robert Findley <rfindley@google.com>
- Loading branch information