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

     1  env GO111MODULE=on
     2  [!symlink] skip
     3  
     4  symlink dir.go -> dir
     5  
     6  # Issue #39841: symlinks to directories should be ignored, not treated as source files.
     7  go list -f '{{range .GoFiles}}{{.}}{{"\n"}}{{end}}' .
     8  stdout 'p\.go$'
     9  ! stdout 'dir\.go$'
    10  
    11  -- go.mod --
    12  module example.com
    13  go 1.15
    14  -- p.go --
    15  package p
    16  -- dir/README.txt --
    17  This file exists to ensure that dir is a directory.
    18  

View as plain text