-
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 mod init' from 1.21 incompatible with older versions #61851
Comments
In general a Starting with Go 1.21, you can use (You can also use the older |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What did you do?
Using 1.21's
go mod init
:We can see the result is not compatible with older versions
If we manually set the go.mod up with the same semantics, it works fine:
What did you expect to see?
go mod init
created by 1.21 can be built by older Go versionsWhat did you see instead?
Somewhat obscure error
The text was updated successfully, but these errors were encountered: