]> Cypherpunks repositories - gostls13.git/commit
cmd/go: avoid a few symlink-induced errors in internal and vendor checks
authorRuss Cox <rsc@golang.org>
Fri, 29 Jan 2016 17:18:32 +0000 (12:18 -0500)
committerRuss Cox <rsc@golang.org>
Fri, 29 Jan 2016 17:42:04 +0000 (17:42 +0000)
commit9f58bf5f6b9ffd0c6e15d717fb741fd235339512
tree844f22889748f3ceb8aa48c29992ec7164101e1f
parent0f89efa255a46eb6528d27c920030721ae68b507
cmd/go: avoid a few symlink-induced errors in internal and vendor checks

This CL expands symlinks only when an error would be reported otherwise.
Since the expansions are only on error paths, anything that worked yesterday
should still work after this CL.

This CL fixes a regression from Go 1.5 in "go run", or else we'd probably
postpone it.

Changing only the error paths is meant as a way to reduce the risk of
making this change so late in the release cycle, but it may actually be
the right strategy for symlinks in general.

Fixes #14054.

Change-Id: I42ed1276f67a0c395297a62bcec7d36c14c06404
Reviewed-on: https://go-review.googlesource.com/19102
Run-TryBot: Russ Cox <rsc@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/go_test.go
src/cmd/go/main.go
src/cmd/go/pkg.go