mirror of https://github.com/golang/go.git
Added test to prevent regression on the issue
This commit is contained in:
parent
85182db54b
commit
226e846627
|
|
@ -0,0 +1,7 @@
|
|||
env GO111MODULE=off
|
||||
|
||||
# This script tests that running go mod init with
|
||||
# GO111MODULE=off when outside of GOPATH will fatal
|
||||
# with an error message.
|
||||
! go mod init
|
||||
stderr 'go: modules disabled by GO111MODULE=off; see ''go help modules'''
|
||||
Loading…
Reference in New Issue