...

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

Documentation: cmd/go/testdata/script

     1# Tests issue #12156, a former index out of range panic.
     2
     3env GO111MODULE=off
     4env GOPATH=$WORK/gopath/src/testvendor2 # vendor/x is directly in $GOPATH, not in $GOPATH/src
     5cd $WORK/gopath/src/testvendor2/src/p
     6
     7! go build p.go
     8! stderr panic # Make sure it doesn't panic
     9stderr 'cannot find package "x"'
    10
    11-- testvendor2/src/p/p.go --
    12package p
    13
    14import "x"
    15-- testvendor2/vendor/x/x.go --
    16package x

View as plain text