...
1env GO111MODULE=on
2env GOPROXY=direct
3env 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
13go get -v
14
15-- go.mod --
16module example.com
17go 1.13
18
19-- main.go --
20package main
21
22import _ "vcs-test.golang.org/git/v3pkg.git/v3"
23
24func main() {}
View as plain text