...

Text file src/cmd/go/testdata/script/mod_off_init.txt

Documentation: cmd/go/testdata/script

     1# 'go mod init' should refuse to initialize a module if it will be
     2# ignored anyway due to GO111MODULE=off.
     3env GO111MODULE=off
     4! go mod init
     5stderr 'go: modules disabled by GO111MODULE=off; see ''go help modules'''

View as plain text