...
1env 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
15go get example.com/pseudoupgrade@b5426c8
16go list -m -u all
17stdout '^example.com/pseudoupgrade v0.1.1-0.20190429073117-b5426c86b553$'
18
19go get example.com/pseudoupgrade@v0.0.0-20190430073000-30950c05d534
20go list -m -u all
21stdout '^example.com/pseudoupgrade v0.0.0-20190430073000-30950c05d534$'
22
23-- go.mod --
24module x
25
26go 1.12
View as plain text