--output_groups can't override previous --output_groups arguments #22242
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Rules-API
API for writing rules/aspects: providers, runfiles, actions, artifacts
type: bug
Description of the bug:
From --output_groups documantation:
If at least one group is not prefixed, the default set of output groups is omitted.
From this, I expected that the command
bazel build ... --output_groups=+foo --output_groups=bar
would only produce bar files. However, in reality, both foo and bar files are created.Can that logic be adjusted to the expected outcome?
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.
It can be viewed in the output groups realization:
bazel/src/main/java/com/google/devtools/build/lib/analysis/OutputGroupInfo.java
Line 249 in 44dd494
Which operating system are you running Bazel on?
No response
What is the output of
bazel info release
?Release 7.0.2
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
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
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: