aboutsummaryrefslogtreecommitdiff
path: root/src/plugin/plugin_test.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2018-10-10 10:03:27 -0400
committerBryan C. Mills <bcmills@google.com>2018-11-27 06:27:52 +0000
commit440368da526b69fe9a500e29ce9cd84aa7cc6c35 (patch)
treeb418eb98cbf3fcedeba8f56458a3e7359500e91e /src/plugin/plugin_test.go
parent979d9027aecf265214a6dcc27fe037bfd70355f2 (diff)
downloadgo-440368da526b69fe9a500e29ce9cd84aa7cc6c35.tar.xz
cmd/go/internal/imports: resolve symlinks in ScanDir
We were using the mode reported by ReadDir to decide whether each entry is a file, but in the case of symlinks that isn't sufficient: a symlink could point to either a file or a directory, and if it is a file we should treat it as such. Fixes #28107 Change-Id: Icf6e495dce427a7b1124c9cc9f085e40a215c169 Reviewed-on: https://go-review.googlesource.com/c/141097 Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/plugin/plugin_test.go')
0 files changed, 0 insertions, 0 deletions