...

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

Documentation: cmd/go/testdata/script

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

View as plain text