github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/mod_get_warning.txt (about)

     1  # go get in GO111MODULE=auto should warn when not using modules and go.mod exists
     2  
     3  env GO111MODULE=auto
     4  mkdir z
     5  cd z
     6  ! go get # fails because no code in directory, not the warning
     7  stderr 'go get: warning: modules disabled by GO111MODULE=auto in GOPATH/src;\n\tignoring ..[/\\]go.mod;\n\tsee ''go help modules'''
     8  
     9  -- go.mod --
    10  module x