1 env GO111MODULE=on
2 env GOPROXY=direct
3 env GOSUMDB=off
4
5 [short] skip
6 [!git] skip
7
8 # golang.org/issue/33099: if an import path ends in a major-version suffix,
9 # ensure that 'direct' mode can resolve the package to the module.
10 # For a while, (*modfetch.codeRepo).Stat was not checking for a go.mod file,
11 # which would produce a hard error at the subsequent call to GoMod.
12
13 go get -v
14
15 -- go.mod --
16 module example.com
17 go 1.13
18
19 -- main.go --
20 package main
21
22 import _ "vcs-test.golang.org/git/v3pkg.git/v3"
23
24 func main() {}
25
View as plain text