Skip to content

--output_groups can't override previous --output_groups arguments #22242

Open
@Fil-Den

Description

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:

.

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 returns development 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

Metadata

Assignees

No one assigned

    Labels

    P3We're not considering working on this, but happy to review a PR. (No assignee)team-Rules-APIAPI for writing rules/aspects: providers, runfiles, actions, artifactstype: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions