aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/compile/internal
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2023-01-13 13:59:19 -0500
committerGopher Robot <gobot@golang.org>2023-01-31 20:33:05 +0000
commitf36c7c5983e039e36e187d7fcd7e7e5a1aa2d74f (patch)
tree3e57f57870a77ae109c3c5ab277fe13bea088abf /src/cmd/compile/internal
parent5f00ce86334aa7e80ab825882db1a080f1b56404 (diff)
downloadgo-f36c7c5983e039e36e187d7fcd7e7e5a1aa2d74f.tar.xz
cmd/go: traverse module-root symlinks in Walk calls
fsys.Walk, like filepath.Walk, avoids traversing symlinks. Also like filepath.Walk, it follows a symlink at the root if the root path ends in a file separator (consistent with POSIX pathname resolution¹). If the user's working directory is within a repository stored in (and symlinked to) a different filesystem path, we want to follow the symlink instead of treating the module as completely empty. ¹https://pubs.opengroup.org/onlinepubs/9699919799.2013edition/basedefs/V1_chap04.html#tag_04_12 Fixes #50807. Updates #57754. Change-Id: Idaf6168dfffafe879e05b4ded5fda287fcd3eeec Reviewed-on: https://go-review.googlesource.com/c/go/+/463179 Auto-Submit: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/cmd/compile/internal')
0 files changed, 0 insertions, 0 deletions