]> Cypherpunks repositories - gostls13.git/commit
internal/fsys: follow root symlink in fsys.Walk
authorMichael Matloob <matloob@golang.org>
Mon, 7 Nov 2022 19:30:45 +0000 (14:30 -0500)
committerMichael Matloob <matloob@golang.org>
Wed, 9 Nov 2022 18:07:37 +0000 (18:07 +0000)
commit4f13067f8ac7f2c64a093ef4125cfa03dd67a0a5
treeea95c571b04819638f4722cab27a9c9cbb1bb2b6
parent2f4d5c3b791b9b78c32ad587a70adfc1b46f29e0
internal/fsys: follow root symlink in fsys.Walk

If fsys.Walk is called with a root directory that is a symlink, follow
the symlink when doing the walk. This allows for users setting their
current directory to a symlink to a module.

Fixes #50807

Change-Id: Ie65a7cb804b87dea632ea6c758c20adcfa62fcd4
Reviewed-on: https://go-review.googlesource.com/c/go/+/448360
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/fsys/fsys.go
src/cmd/go/internal/fsys/fsys_test.go
src/cmd/go/testdata/script/list_symlink_dotdotdot.txt [new file with mode: 0644]