aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_build_versioned.txt
blob: d1d74de10c22b1b75cd79a237b8e6c3b36db519c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
env GO111MODULE=on
[short] skip

go get -d rsc.io/fortune/v2

# The default executable name shouldn't be v2$GOEXE
go build rsc.io/fortune/v2
! exists v2$GOEXE
exists fortune$GOEXE

# The default test binary name shouldn't be v2.test$GOEXE
go test -c rsc.io/fortune/v2
! exists v2.test$GOEXE
exists fortune.test$GOEXE

-- go.mod --
module scratch