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