blob: 1339c8aef9679ce1ecbed258cc9ef73d7348ca78 [file] [log] [blame]
# 'go mod init' should refuse to initialize a module if it will be
# ignored anyway due to GO111MODULE=off.
env GO111MODULE=off
! go mod init
stderr 'go mod init: modules disabled by GO111MODULE=off; see ''go help modules'''