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

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

View as plain text