...

Text file src/github.com/rogpeppe/go-internal/goproxytest/testdata/list.txt

Documentation: github.com/rogpeppe/go-internal/goproxytest/testdata

     1go list -m -versions fruit.com
     2stdout 'v1.0.0 v1.1.0'
     3
     4go get -d fruit.com@v1.0.0
     5go get -d fruit.com@v1.1.0
     6
     7# On Go 1.18 and later, this will error out if GOPATH is ${WORK}/gopath,
     8# as that places GOMODCACHE inside the Go module and "mod tidy" walks it.
     9# "mod tidy" then complains about invalid import paths such as
    10# "mod/gopath/pkg/mod/fruit.com@v1.1.0/fruit".
    11# It's for that reason that we moved the default GOPATH to ${WORK}/.gopath.
    12go mod tidy
    13
    14-- go.mod --
    15module mod
    16

View as plain text