1 env GO111MODULE=on
2
3 # For this test module there are three versions:
4 # * v0.1.1-0.20190429073117-b5426c86b553
5 # * v0.1.0
6 # * v0.0.0-20190430073000-30950c05d534
7 # Only v0.1.0 is tagged.
8 #
9 # The v0.1.1 pseudo-version is semantically higher than the latest tag.
10 # The v0.0.0 pseudo-version is chronologically newer.
11
12 # The latest pseudo-version is semantically higher than the latest tag.
13 # 'list -u' should not suggest a lower version as an upgrade.
14
15 go get example.com/pseudoupgrade@b5426c8
16 go list -m -u all
17 stdout '^example.com/pseudoupgrade v0.1.1-0.20190429073117-b5426c86b553$'
18
19 go get example.com/pseudoupgrade@v0.0.0-20190430073000-30950c05d534
20 go list -m -u all
21 stdout '^example.com/pseudoupgrade v0.0.0-20190430073000-30950c05d534$'
22
23 -- go.mod --
24 module x
25
26 go 1.12
27
View as plain text