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
We are attempting to make builds for both current and previous Go language versions (1.21 and 1.20). However, this does not work for Go modules initialised by go1.21.1, or any go directive set to 1.21.1 in the go.mod file, as go1.20.8 does not recognise the go directive with a X.Y.Z format.
Just to clarify, does that mean that moving forward:
If I want to build for the latest and previous go versions (e.g. go1.22 and go1.21), my Go modules will need to enforce a maximum go directive of the previous go version go1.21
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: