...

Text file src/cmd/go/testdata/script/mod_get_major.txt

Documentation: cmd/go/testdata/script

     1[short] skip
     2[!git] skip
     3
     4env GO111MODULE=on
     5env GOPROXY=direct
     6env 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
    11go get vcs-test.golang.org/git/v3pkg.git/v3@v3.0.0
    12
    13go list -m vcs-test.golang.org/git/v3pkg.git/v3
    14stdout '^vcs-test.golang.org/git/v3pkg.git/v3 v3.0.0$'
    15
    16go get vcs-test.golang.org/git/empty-v2-without-v1.git/v2@v2.0.0
    17
    18go list -m vcs-test.golang.org/git/empty-v2-without-v1.git/v2
    19stdout '^vcs-test.golang.org/git/empty-v2-without-v1.git/v2 v2.0.0$'
    20
    21-- go.mod --
    22module example.com
    23go 1.13

View as plain text