You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An error like go: go.mod file indicates go 1.20, but maximum version supported by build is 1.19
What did you see instead?
The compilation worked, even if I am using the go 1.19 build tool.
This can lead to code that is syntactially correct in both versions but semantically different, be compiled with the wrong version. For example, if I were using math/rand pacakge, the behavior would be different because of the different seeding method.
The text was updated successfully, but these errors were encountered:
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I can not test this, since the bug only happens when you're not using the non-latest version.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
go.mod
file:main.go
file:Then run:
What did you expect to see?
An error like
go: go.mod file indicates go 1.20, but maximum version supported by build is 1.19
What did you see instead?
The compilation worked, even if I am using the go 1.19 build tool.
This can lead to code that is syntactially correct in both versions but semantically different, be compiled with the wrong version. For example, if I were using
math/rand
pacakge, the behavior would be different because of the different seeding method.The text was updated successfully, but these errors were encountered: