-
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
Prunable headers are missing from blaze aquery
output
#23154
Comments
Use the |
@tjgq, thanks, I found that the flag is only available in the pre-release Bazel 8 version, and the current Bazel 7 doesn't support it. But I'm glad to hear you're aware of this problem. |
blaze aquery
output
To expand a bit on the issue: due to how Bazel works internally (the action inputs are mutated in place after input discovery), all headers are missing if In a related note, I've recently discovered that Keeping this untriaged so we discuss it at the next subteam meeting and decide what to do about it. |
@tjgq A nitpick to prevent potential confusion: I think that Bazel's Java actions do not use input pruning (they just create spawns with fewer inputs). |
Yes, you are correct :) |
Description of the bug:
One time, I wanted to find the dependency chain using a query, but couldn't do it because the aquery didn't show the headers at the action inputs.
Probably, it's a consequence of the Bazel logic for parsing the
/showincludes
results or dotd files.Example with embedded Bazel target.
How does the target actually look? https://github.com/bazelbuild/bazel/blob/b03e4c5e4df4728b943945370141c047b9d98039/tools/cpp/runfiles/BUILD#L51C1-L56C2
Which category does this issue belong to?
No response
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Executing queries in any Bazel repository from the bug description.
Which operating system are you running Bazel on?
Windows, Linux
What is the output of
bazel info release
?release 7.2.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?No response
If this is a regression, please try to identify the Bazel commit where the bug was introduced with bazelisk --bisect.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: