]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.22] cmd/go: fix go list -u -m all with too new retractions dependency
authorSam Thanawalla <samthanawalla@google.com>
Mon, 20 May 2024 20:43:39 +0000 (20:43 +0000)
committerJoedian Reid <joedian@google.com>
Mon, 24 Jun 2024 16:57:50 +0000 (16:57 +0000)
commit179ccb7042b805b78b76151981f7a7f53f3d2968
tree2d9750a416a76bcb0da9f974875fd154239b3bfb
parentfe9b3c339978f37aad53875d9e6d2df35a1996ad
[release-branch.go1.22] cmd/go: fix go list -u -m all with too new retractions 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 <samthanawalla@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
(cherry picked from commit e44fa1c1a9139ad457d8fa84a68afa3f40e7732a)
Reviewed-on: https://go-review.googlesource.com/c/go/+/593355
src/cmd/go/internal/modload/modfile.go
src/cmd/go/testdata/mod/example.com_retract_newergoversion_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/mod/example.com_retract_newergoversion_v1.2.0.txt [new file with mode: 0644]
src/cmd/go/testdata/script/list_retractions_issue66403.txt [new file with mode: 0644]