github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_versions.txt (about) 1 # Test rejection of pkg@version in GOPATH mode. 2 env GO111MODULE=off 3 ! go get rsc.io/quote@v1.5.1 4 stderr 'cannot use path@version syntax in GOPATH mode' 5 ! go build rsc.io/quote@v1.5.1 6 stderr 'cannot use path@version syntax in GOPATH mode' 7 8 env GO111MODULE=on 9 cd x 10 ! go build rsc.io/quote@v1.5.1 11 stderr 'can only use path@version syntax with ''go get''' 12 13 -- x/go.mod -- 14 module x