-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
recursive glob in top-level package follows "bazel-*" symlinks #6350
Comments
Motivation is to avoid bazelbuild/bazel#6350
@laurentlb : Do you have any updates on this bug? Is P1 appropriate? Is this something to fix before Bazel 1.0? |
I think it should be triaged. |
Who owns |
I've been working on glob() recently, I could look at this. |
This seems to be fixed in Bazel 0.28.1. |
I believe this has regressed at some point. I can reproduce the problem with the following two files in my top level WORKSPACE directory. I have reproduced it on 3.3.1 and 3.4.0 but haven't gone back further. 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.
|
Description of the problem / feature request:
A
glob
in the top-level package will follow the "bazel-*" convenience symlinks and pick up sources from them.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
git clone https://github.com/laszlocsomor/projects
cd bazel/examples/glob_in_root_pkg
bazel build
-- just do a blank build so we have the "bazel-*" symlinks createdbazel build //:x --spawn_strategy=standalone
cat bazel-genfiles/x.txt
This builds happily on Windows, and the x.txt output will list not only "a.txt" but also files under "bazel-out".
On Linux, this fails at Step 4, but because the files under "bazel-out" are not inputs of the genrule action. However, it still shows that the glob picked up the files.
What operating system are you running Bazel on?
Linux / Windows 10
What's the output of
bazel info release
?The text was updated successfully, but these errors were encountered: