aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_versions.txt
blob: fd5e5c589d2237490b055de861603e1ae6938e91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Test rejection of pkg@version in GOPATH mode.
env GO111MODULE=off
! go get rsc.io/quote@v1.5.1
stderr 'cannot use path@version syntax in GOPATH mode'
! go build rsc.io/quote@v1.5.1
stderr 'cannot use path@version syntax in GOPATH mode'

env GO111MODULE=on
cd x
! go build rsc.io/quote@v1.5.1
stderr 'can only use path@version syntax with ''go get'''

-- x/go.mod --
module x