-
Notifications
You must be signed in to change notification settings - Fork 17.8k
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/fix: fails to run on modules whose go directive value is in "1.n.m" format introduced in Go 1.21.0 [1.22 backport] #68825
Comments
This comment was marked as resolved.
This comment was marked as resolved.
Change https://go.dev/cl/603981 mentions this issue: |
This comment was marked as resolved.
This comment was marked as resolved.
This change is generated by `go1.23rc2 fix ./...`. Had to use go1.23rc2, since all released go versions have a bug preventing it from working with `go 1.22.0` in go.mod (opened golang/go#68825, golang/go#68824 for awareness). Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
@kolyshkin Can you provide the rationale for why this is an issue without a known workaround? |
This breaks The only workarounds I can think of are:
To me neither one looks like a decent way to solve this. |
Support go version with patch release(e.g. 1.21.0) and release candidates(e.g. 1.21rc1) when parsing the go version in the fix command by using new "go/version" package. For #62584. Fixes #68825. Change-Id: I0ec16137c7a396c68039d374c770c4021fb54b4e GitHub-Last-Rev: 76bced5 GitHub-Pull-Request: #62586 Reviewed-on: https://go-review.googlesource.com/c/go/+/527342 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Russ Cox <rsc@golang.org> Auto-Submit: Bryan Mills <bcmills@google.com> Reviewed-by: Alex Bozhenko <alexbozhenko@gmail.com> Reviewed-by: Bryan Mills <bcmills@google.com> (cherry picked from commit 7fd62ba) Reviewed-on: https://go-review.googlesource.com/c/go/+/603981 Reviewed-by: Cherry Mui <cherryyz@google.com> TryBot-Bypass: Cherry Mui <cherryyz@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Kirill Kolyshkin <kolyshkin@gmail.com>
@kolyshkin requested issue #62584 to be considered for backport to the next 1.22 minor release.
The text was updated successfully, but these errors were encountered: