...
1[!symlink] skip
2
3symlink $WORK/gopath/src/sym -> $WORK/gopath/src/tree
4symlink $WORK/gopath/src/tree/squirrel -> $WORK/gopath/src/dir2 # this symlink should not be followed
5cd sym
6go list ./...
7cmp stdout $WORK/gopath/src/want_list.txt
8-- tree/go.mod --
9module example.com/tree
10
11go 1.20
12-- tree/tree.go --
13package tree
14-- tree/branch/branch.go --
15package branch
16-- dir2/squirrel.go --
17package squirrel
18-- want_list.txt --
19example.com/tree
20example.com/tree/branch
View as plain text