summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/mod_get_major.txt
blob: 4e0febbca26e252c0f18c99ded531b2739cb23bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[short] skip
[!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 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 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