github.com/gagliardetto/golang-go@v0.0.0-20201020153340-53909ea70814/cmd/go/testdata/script/mod_get_major.txt (about) 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 -d 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 -d 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