-
Notifications
You must be signed in to change notification settings - Fork 18k
cmd/go: go list -u -m all fails loading module retractions: module requires go >= 1.N+1 (running go 1.N) #66403
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
Comments
Change https://go.dev/cl/588775 mentions this issue: |
Change https://go.dev/cl/593136 mentions this issue: |
@gopherbot pretty please backport this to 1.21 and 1.22 🙏 |
Backport issue(s) opened: #68051 (for 1.21), #68052 (for 1.22). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://go.dev/wiki/MinorReleases. |
Change https://go.dev/cl/593355 mentions this issue: |
Change https://go.dev/cl/593375 mentions this issue: |
…tractions dependency Previously, go would not report retractions of dependencies that have a newer version of Go. With this change, we will still display retractions despite a version difference when go list -u -m is used. For: #66403 Fixes: #68051 Change-Id: I6406680235e294269836ae4cbe3d5680ca10eea0 Reviewed-on: https://go-review.googlesource.com/c/go/+/588775 Auto-Submit: Sam Thanawalla <[email protected]> Reviewed-by: Michael Matloob <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> (cherry picked from commit e44fa1c) Reviewed-on: https://go-review.googlesource.com/c/go/+/593375
…tractions dependency Previously, go would not report retractions of dependencies that have a newer version of Go. With this change, we will still display retractions despite a version difference when go list -u -m is used. For: #66403 Fixes: #68052 Change-Id: I6406680235e294269836ae4cbe3d5680ca10eea0 Reviewed-on: https://go-review.googlesource.com/c/go/+/588775 Auto-Submit: Sam Thanawalla <[email protected]> Reviewed-by: Michael Matloob <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]> (cherry picked from commit e44fa1c) Reviewed-on: https://go-review.googlesource.com/c/go/+/593355
Go version
go version go1.21.4 linux/amd64
Output of
go env
in your module/workspace:go env output:
What did you do?
When a module with retractions is a dependency, and that module has a newer version, which requires a newer version of Go than it's currently running, the command:
go list -u -m all
fails.Other similar issues: #45305, #41350 (although with different reasons)
Reproducer:
go list -u -m all
What did you see happen?
The command
go list -u -m all
fails with:What did you expect to see?
I expected to see the list of modules.
The text was updated successfully, but these errors were encountered: