aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/mod_symlink_dotgo.txt
blob: d4cc143a361ce28286e521505e4380037db9f183 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
env GO111MODULE=on
[!symlink] skip

symlink dir.go -> dir

# Issue #39841: symlinks to directories should be ignored, not treated as source files.
go list -f '{{range .GoFiles}}{{.}}{{"\n"}}{{end}}' .
stdout 'p\.go$'
! stdout 'dir\.go$'

-- go.mod --
module example.com
go 1.15
-- p.go --
package p
-- dir/README.txt --
This file exists to ensure that dir is a directory.