vscode-go
vscode-go copied to clipboard
all: require go 1.21+ for tools installation
The upcoming gopls requires go1.21+ for installation. https://github.com/golang/go/issues/65917
Update the min version in the README and tools installation logic.
Change https://go.dev/cl/588757 mentions this issue: extension/src: require go1.19+ for tools installation
Putting this in the v0.42.0 milestone. @hyangah please remilestone if that is incorrect.
Change https://go.dev/cl/616675 mentions this issue: README.md: clarify supported go & tools versions
Change https://go.dev/cl/616676 mentions this issue: extension/src/goInstallTools.ts: require go1.21+ for tools installation
Change https://go.dev/cl/616677 mentions this issue: extension: update go to go1.23.1
Change https://go.dev/cl/619715 mentions this issue: extension/test/runTest.ts: set GOTOOLCHAIN=local
How to manual install? Install @latest will fail. No version compatibility info?
Failed to find a go command (go1.21.0 or newer) needed to install tools. The go command (C:\Program Files\Go\bin\go.exe) is too old (go1.19.2). If your project requires a Go version older than go1.21.0, please manually install the tools or, use the "go.toolsManagement.go" setting to configure a different go command (go 1.21.0+) to be used for tools installation. See https://github.com/golang/vscode-go/issues/3411.
Yes, exactly. The error message should list the "required" tools.
Keep in mind that not every software project needs or should use rolling releases! In fact, it is a horrific strategy for the stability of critical environments. I need exactly 1.19 for my current release cycle, so this shouldn't be made so difficult.
Failed to find a go command (go1.21.0 or newer) needed to install tools. The go command (D:\Go\bin\go.exe) is too old (go1.13.7). If your project requires a Go version older than go1.21.0, please manually install the tools or, use the "go.toolsManagement.go" setting to configure a different go command (go 1.21.0+) to be used for tools installation. See https://github.com/golang/vscode-go/issues/3411.