github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_require_exclude.txt (about) 1 # build with no newer version to satisfy exclude 2 env GO111MODULE=on 3 ! go list -m all 4 stderr 'no newer version available' 5 6 # build with newer version available 7 cp go.mod2 go.mod 8 go list -m all 9 stdout 'rsc.io/quote v1.5.2' 10 11 # build with excluded newer version 12 cp go.mod3 go.mod 13 go list -m all 14 stdout 'rsc.io/quote v1.5.1' 15 16 -- x.go -- 17 package x 18 import _ "rsc.io/quote" 19 20 -- go.mod -- 21 module x 22 exclude rsc.io/sampler latest 23 require rsc.io/sampler latest 24 25 -- go.mod2 -- 26 module x 27 exclude rsc.io/quote v1.5.1 28 require rsc.io/quote v1.5.1 29 30 -- go.mod3 -- 31 module x 32 exclude rsc.io/quote v1.5.2 33 require rsc.io/quote v1.5.1