cmd/fix: invalid -go=go1.21.0 #62584
Labels
FixPending
Issues that have a fix which has not yet been reviewed or submitted.
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
According to my understanding of these docs:
https://go.dev/doc/go1.21#tools
https://go.dev/doc/toolchain#version
https://go.dev/ref/mod#go-mod-file-go
before go 1.21 it was not allowed to specify the patch version in the
go.mod
.so the code in fix cmd:
go/src/cmd/fix/main.go
Lines 78 to 79 in 905b58b
does not handle string
1.21.0
.Existing code also won't work with
go 1.21rc1
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?
What did you expect to see?
Expected go fix to remove the deprecated build tag.
What did you see instead?
Error about invalid version.
The text was updated successfully, but these errors were encountered: