vscode-go icon indicating copy to clipboard operation
vscode-go copied to clipboard

all: require go 1.21+ for tools installation

Open hyangah opened this issue 1 year ago • 2 comments

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.

hyangah avatar May 28 '24 17:05 hyangah

Change https://go.dev/cl/588757 mentions this issue: extension/src: require go1.19+ for tools installation

gopherbot avatar May 28 '24 20:05 gopherbot

Putting this in the v0.42.0 milestone. @hyangah please remilestone if that is incorrect.

findleyr avatar Jun 06 '24 15:06 findleyr

Change https://go.dev/cl/616675 mentions this issue: README.md: clarify supported go & tools versions

gopherbot avatar Sep 30 '24 13:09 gopherbot

Change https://go.dev/cl/616676 mentions this issue: extension/src/goInstallTools.ts: require go1.21+ for tools installation

gopherbot avatar Sep 30 '24 13:09 gopherbot

Change https://go.dev/cl/616677 mentions this issue: extension: update go to go1.23.1

gopherbot avatar Sep 30 '24 13:09 gopherbot

Change https://go.dev/cl/619715 mentions this issue: extension/test/runTest.ts: set GOTOOLCHAIN=local

gopherbot avatar Oct 11 '24 12:10 gopherbot

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.

daniel-santos avatar Mar 15 '25 00:03 daniel-santos

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.

MrTan123 avatar May 27 '25 08:05 MrTan123