-
Notifications
You must be signed in to change notification settings - Fork 17.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cmd/go: go toolchain version switch doesn't work when only language version is set in go.mod #65580
Comments
According to #62278 (comment) it has to be either
or
|
i think this is working as expected, 1.22 refers to the in development version, not a language version |
Duplicate of #62278 |
@fzipp |
Go version
go 1.21.4
Output of
go env
in your module/workspace:$ GOTOOLCHAIN=auto go env go: downloading go1.22 (darwin/amd64) go: download go1.22 for darwin/amd64: toolchain not available
What did you do?
Had a project created with a go built from tip during 1.22 dev cycle.
The go.mod file has language version, but not toolchain version yet.
What did you see happen?
Since go1.22.0 is released, I expected the go command to pick up go1.22.0 when version switching is needed.
Instead, most go commands failed in the module since there is no toolchain named
go1.22
.What did you expect to see?
The text was updated successfully, but these errors were encountered: