blob: 80b240130fdd4366b01f60d05e5492a27aee1084 [file] [log] [blame]
env GO111MODULE=on
# For this test module there are three versions:
# * v0.1.1-0.20190429073117-b5426c86b553
# * v0.1.0
# * v0.0.0-20190429073000-30950c05d534
# Only v0.1.0 is tagged.
#
# The latest pseudo-version is semantically higher than the latest tag.
# 'get -u' should not downgrade to the (lower) tagged version.
go get -m example.com/pseudoupgrade@b5426c8
go get -u
go list -m -u all
stdout '^example.com/pseudoupgrade v0.1.1-0.20190429073117-b5426c86b553$'
-- go.mod --
module x
go 1.12
-- main.go --
package x
import _ "example.com/pseudoupgrade"