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

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

View as plain text