-
Notifications
You must be signed in to change notification settings - Fork 17.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "cmd/go: add a Latest field to the output of 'go mod download …
…-json'" This reverts CL 183841. Fixes #34533 Reason for revert: Introduced a significant performance regression for repos with many incompatible-version tags. Change-Id: I75d7fd76e6e1a0902b114b00167b38439e0f8221 Reviewed-on: https://go-review.googlesource.com/c/go/+/198699 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Katie Hockman <katie@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
- Loading branch information
Bryan C. Mills
committed
Oct 4, 2019
1 parent
0471417
commit 961837d
Showing
5 changed files
with
1 addition
and
74 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,8 @@ | ||
env GO111MODULE=on | ||
|
||
# If the current version is not latest, 'go list -u' should include its upgrade. | ||
go list -m -u all | ||
stdout 'rsc.io/quote v1.2.0 \[v1\.5\.2\]' | ||
|
||
# If the current version is latest, 'go list -u' should omit the upgrade. | ||
go get -d rsc.io/quote@v1.5.2 | ||
go list -m -u all | ||
stdout 'rsc.io/quote v1.5.2$' | ||
|
||
# If the current version is newer than latest, 'go list -u' should | ||
# omit the upgrade. | ||
go get -d rsc.io/quote@v1.5.3-pre1 | ||
go list -m -u all | ||
stdout 'rsc.io/quote v1.5.3-pre1$' | ||
|
||
# If the current build list has a higher version and the user asks about | ||
# a lower one, -u should report the upgrade for the lower one | ||
# but leave the build list unchanged. | ||
go list -m -u rsc.io/quote@v1.5.1 | ||
stdout 'rsc.io/quote v1.5.1 \[v1.5.2\]$' | ||
go list -m -u rsc.io/quote | ||
stdout 'rsc.io/quote v1.5.3-pre1$' | ||
|
||
-- go.mod -- | ||
module x | ||
require rsc.io/quote v1.2.0 |