-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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 modules initialised by go1.21.1 cannot be built using go1.20.8 #63279
Labels
Comments
This is working as designed in #57001. To select the minimum With older Go versions (back to Go 1.17), you can use |
Thanks for the response! Just to clarify, does that mean that moving forward:
Is this understanding correct? |
yes, besides the fact that the new versions should include patch: |
This was referenced Jul 26, 2024
This was referenced Aug 19, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
We are attempting to make builds for both current and previous Go language versions (
1.21
and1.20
). However, this does not work for Go modules initialised bygo1.21.1
, or any go directive set to1.21.1
in thego.mod
file, asgo1.20.8
does not recognise the go directive with aX.Y.Z
format.go mod init
in an empty folderGOTOOLCHAIN=go1.20.8 go build main.go
What did you expect to see?
main
binary created.What did you see instead?
The text was updated successfully, but these errors were encountered: