x/tools/cmd/goimports: don't follow symlinks #45740
Labels
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Used
goimports
on a file after having built withbazel
.What did you expect to see?
An import to
abcxyz/package/name
added to my file, relatively quickly.What did you see instead?
An import to
abcxyz/bazel-abcxyz/package/name
added to my file, after a long time spent searching.This is somewhat similar to the issue with e.g.
node_modules
(see for example #16417 or #30058) but the resolution seems a bit more clear in this case, at least to me:goimports
should ignore symlinks the same way thatgo mod
andgo build
do.The text was updated successfully, but these errors were encountered: