summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/script/mod_get_none.txt
blob: 5aec209f59fe6fa54ffa3f67ce9d31d73fb665de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
env GO111MODULE=on

go mod init example.com/foo

# 'go get bar@none' should be a no-op if module bar is not active.
go get example.com/bar@none
go list -m all
! stdout example.com/bar

go get example.com/bar@none
go list -m all
! stdout example.com/bar