Text file src/cmd/go/testdata/script/vendor_import_wrong.txt
1 # Wrong import path 2 env GO111MODULE=off 3 ! go build vend/x/invalid 4 stderr 'must be imported as foo' 5 6 env GO111MODULE= 7 cd vend/x/invalid 8 ! go build vend/x/invalid 9 stderr 'must be imported as foo' 10 11 -- vend/x/invalid/go.mod -- 12 module vend/x/invalid 13 14 go 1.16 15 16 -- vend/x/invalid/invalid.go -- 17 package invalid 18 19 import "vend/x/invalid/vendor/foo" 20 21