1 [!net] skip
2 [!exec:git] skip
3
4 env GO111MODULE=on
5 env GOPROXY=direct
6 env GOSUMDB=off
7
8 # golang.org/issue/34383: if a module path ends in a major-version suffix,
9 # ensure that 'direct' mode can resolve the package to a module.
10
11 go get vcs-test.golang.org/git/v3pkg.git/v3@v3.0.0
12
13 go list -m vcs-test.golang.org/git/v3pkg.git/v3
14 stdout '^vcs-test.golang.org/git/v3pkg.git/v3 v3.0.0$'
15
16 go get vcs-test.golang.org/git/empty-v2-without-v1.git/v2@v2.0.0
17
18 go list -m vcs-test.golang.org/git/empty-v2-without-v1.git/v2
19 stdout '^vcs-test.golang.org/git/empty-v2-without-v1.git/v2 v2.0.0$'
20
21 -- go.mod --
22 module example.com
23 go 1.13
24
View as plain text