Added test to prevent regression on the issue

This commit is contained in:
Rens Rikkerink 2019-04-08 15:50:33 +02:00
parent 85182db54b
commit 226e846627
No known key found for this signature in database
GPG Key ID: 3EDE6BE920496401
1 changed files with 7 additions and 0 deletions

View File

@ -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'''