...

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

Documentation: cmd/go/testdata/script

     1env GO111MODULE=on
     2[short] skip
     3
     4go get rsc.io/fortune/v2
     5
     6# The default executable name shouldn't be v2$GOEXE
     7go build rsc.io/fortune/v2
     8! exists v2$GOEXE
     9exists fortune$GOEXE
    10
    11# The default test binary name shouldn't be v2.test$GOEXE
    12go test -c rsc.io/fortune/v2
    13! exists v2.test$GOEXE
    14exists fortune.test$GOEXE
    15
    16-- go.mod --
    17module scratch

View as plain text