Skip to content

Conversation

@ckolli5
Copy link

@ckolli5 ckolli5 commented Jul 22, 2022

With the new output mode --output=files, cquery lists all files advertised by the matched targets in the currently requested output groups.

This new mode has the following advantages over --output=starlark combined with an appropriate handcrafted --starlark:expr:

  • provides a canonical answer to the very common "Where are my build outputs?" question
  • is more friendly to new users as it doesn't require knowing about providers and non-BUILD dialect Starlark
  • takes the value of --output_groups into account
  • stays as close to the logic for build summaries printed by bazel build as possible

Fixes #8739

RELNOTES: cquery's new output mode --output=files lists the output files of the targets matching the query. It takes the current value of --output_groups into account.

Closes #15552.

PiperOrigin-RevId: 462630629
Change-Id: Ic648f22aa160ee57b476180561b444f08799ebb6

With the new output mode `--output=files`, cquery lists all files advertised by the matched targets in the currently requested output groups.

This new mode has the following advantages over `--output=starlark` combined with an appropriate handcrafted `--starlark:expr`:
* provides a canonical answer to the very common "Where are my build outputs?" question
* is more friendly to new users as it doesn't require knowing about providers and non-BUILD dialect Starlark
* takes the value of `--output_groups` into account
* stays as close to the logic for build summaries printed by `bazel build` as possible

Fixes bazelbuild#8739

RELNOTES: `cquery`'s new output mode [`--output=files`](https://bazel.build/docs/cquery#files-output) lists the output files of the targets matching the query. It takes the current value of `--output_groups` into account.

Closes bazelbuild#15552.

PiperOrigin-RevId: 462630629
Change-Id: Ic648f22aa160ee57b476180561b444f08799ebb6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants