]> Cypherpunks repositories - gostls13.git/commit
cmd/go: evaluate root symlink in matchPackages
authorMichael Matloob <matloob@golang.org>
Fri, 21 Jan 2022 21:05:02 +0000 (16:05 -0500)
committerMichael Matloob <matloob@golang.org>
Fri, 21 Jan 2022 21:58:14 +0000 (21:58 +0000)
commit35b0db7607a33da662a510f85d30f18cd40c1149
tree4cd4a518808914e62c456136e26b49895aee5dd7
parent9eba5ff5219a76c3c4e020fa27e966a226174d7e
cmd/go: evaluate root symlink in matchPackages

This fixes checks for crossing module boundaries when the root of
the module is a symlink. We're comparing paths by string, so we need
to follow the symlink to get the proper path to compare.

Change-Id: Idf5f0dd5c49bcae5fffb5372e99a7fab89169a9d
Reviewed-on: https://go-review.googlesource.com/c/go/+/380057
Trust: Michael Matloob <matloob@golang.org>
Run-TryBot: Michael Matloob <matloob@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/go/internal/modload/search.go
src/cmd/go/testdata/script/work_root_is_symlink.txt [new file with mode: 0644]