...
Text file
src/cmd/go/testdata/script/list_symlink_vendor_issue14054.txt
1[!symlink] skip
2env GO111MODULE=off
3
4mkdir $WORK/tmp/gopath/src/dir1/vendor/v
5cp p.go $WORK/tmp/gopath/src/dir1/p.go
6cp v.go $WORK/tmp/gopath/src/dir1/vendor/v/v.go
7symlink $WORK/tmp/symdir1 -> $WORK/tmp/gopath/src/dir1
8env GOPATH=$WORK/tmp/gopath
9cd $WORK/tmp/symdir1
10
11go list -f '{{.Root}}' .
12stdout '^'$WORK/tmp/gopath'$'
13
14# All of these should succeed, not die in vendor-handling code.
15go run p.go &
16go build &
17go install &
18
19wait
20
21-- p.go --
22package main
23
24import _ `v`
25
26func main () {}
27-- v.go --
28package v
View as plain text