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

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

View as plain text