recursive glob in top-level package follows "bazel-*" symlinks #11875
Labels
not stale
Issues or PRs that are inactive but not considered stale
P4
This is either out of scope or we don't have bandwidth to review a PR. (No assignee)
team-Loading-API
BUILD file and macro processing: labels, package(), visibility, glob
type: bug
Description of the problem:
A glob in the top-level package will follow the "bazel-*" convenience symlinks and pick up sources from them. I believe this is a regression of #6350.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
I can reproduce the problem with the following two files in my top level WORKSPACE directory.
BUILD.bazel
print_files.bzl
The first time I run in an new workspace everything looks fine (using the cpp-examples directory to test).
The next time I run Bazel has created the symlinks and will include them in the glob.
What operating system are you running Bazel on?
Linux
What's the output of
bazel info release
?release 3.3.1
and also
release 3.4.0
Have you found anything relevant by searching the web?
Previous bug of the same issue
#6350
The text was updated successfully, but these errors were encountered: