summaryrefslogtreecommitdiff
path: root/libgo/go/cmd/go/testdata/script/mod_get_major.txt
blob: 367ede9ded45ba5278d47437a4c989bdf44fb2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[!net] skip
[!exec:git] skip

env GO111MODULE=on
env GOPROXY=direct
env GOSUMDB=off

# golang.org/issue/34383: if a module path ends in a major-version suffix,
# ensure that 'direct' mode can resolve the package to a module.

go get -d vcs-test.golang.org/git/v3pkg.git/v3@v3.0.0

go list -m vcs-test.golang.org/git/v3pkg.git/v3
stdout '^vcs-test.golang.org/git/v3pkg.git/v3 v3.0.0$'

go get -d vcs-test.golang.org/git/empty-v2-without-v1.git/v2@v2.0.0

go list -m vcs-test.golang.org/git/empty-v2-without-v1.git/v2
stdout '^vcs-test.golang.org/git/empty-v2-without-v1.git/v2 v2.0.0$'

-- go.mod --
module example.com
go 1.13