github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_get_upgrade.txt (about) 1 env GO111MODULE=on 2 3 go get rsc.io/quote@v1.5.1 4 go list -m all 5 stdout 'rsc.io/quote v1.5.1' 6 grep 'rsc.io/quote v1.5.1$' go.mod 7 8 # get -u should update dependencies of the package in the current directory 9 go get -d -u 10 grep 'rsc.io/quote v1.5.2$' go.mod 11 grep 'golang.org/x/text [v0-9a-f\.-]+ // indirect' go.mod 12 13 # get -u rsc.io/sampler should update only sampler's dependencies 14 cp go.mod-v1.5.1 go.mod 15 go get -d -u rsc.io/sampler 16 grep 'rsc.io/quote v1.5.1$' go.mod 17 grep 'golang.org/x/text [v0-9a-f\.-]+ // indirect' go.mod 18 19 # move to a pseudo-version after any tags 20 go get -d rsc.io/quote@dd9747d 21 grep 'rsc.io/quote v0.0.0-20180628003336-dd9747d19b04' go.mod 22 23 # get -u should not jump off newer pseudo-version to earlier tag 24 go get -d -u 25 grep 'rsc.io/quote v0.0.0-20180628003336-dd9747d19b04' go.mod 26 27 # move to earlier pseudo-version 28 go get -d rsc.io/quote@e7a685a342 29 grep 'rsc.io/quote v0.0.0-20180214005133-e7a685a342c0' go.mod 30 31 # get -u should jump off earlier pseudo-version to newer tag 32 go get -d -u 33 grep 'rsc.io/quote v1.5.2' go.mod 34 35 -- go.mod -- 36 module x 37 require rsc.io/quote v1.1.0 38 39 -- go.mod-v1.5.1 -- 40 module x 41 require rsc.io/quote v1.5.1 42 43 -- use.go -- 44 package use 45 46 import _ "rsc.io/quote"