summaryrefslogtreecommitdiffstats
path: root/src/cmd/go/testdata/script/vendor_issue12156.txt
blob: ac95c6d3dae1181993f8dbdbe8c2aee1ee91a2f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Tests issue #12156, a former index out of range panic.

env GO111MODULE=off
env GOPATH=$WORK/gopath/src/testvendor2 # vendor/x is directly in $GOPATH, not in $GOPATH/src
cd $WORK/gopath/src/testvendor2/src/p

! go build p.go
! stderr panic # Make sure it doesn't panic
stderr 'cannot find package "x"'

-- testvendor2/src/p/p.go --
package p

import "x"
-- testvendor2/vendor/x/x.go --
package x