...

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

Documentation: cmd/go/testdata/script

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

View as plain text