Skip to content
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

Add --output=files mode to cquery #15955

Closed
wants to merge 1 commit into from

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