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

     1  [!symlink] skip
     2  env GO111MODULE=off
     3  
     4  mkdir $WORK/tmp/src
     5  symlink $WORK/tmp/src/dir1 -> $WORK/tmp
     6  cp p.go $WORK/tmp/src/dir1/p.go
     7  env GOPATH=$WORK/tmp
     8  go list -f '{{.Root}}' dir1
     9  stdout '^'$WORK/tmp'$'
    10  
    11  -- p.go --
    12  package p
    13  

View as plain text