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