...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2
     3go get rsc.io/fortune
     4go list -f '{{.Target}}' rsc.io/fortune
     5! stdout fortune@v1
     6stdout 'fortune(\.exe)?$'
     7
     8go get rsc.io/fortune/v2
     9go list -f '{{.Target}}' rsc.io/fortune/v2
    10! stdout v2
    11stdout 'fortune(\.exe)?$'
    12
    13-- go.mod --
    14module m

View as plain text