Skip to content

Add --output=files mode to cquery#15552

Closed
fmeum wants to merge 4 commits intobazelbuild:masterfrom
fmeum:cquery-output-files
Closed

Add --output=files mode to cquery#15552
fmeum wants to merge 4 commits intobazelbuild:masterfrom
fmeum:cquery-output-files

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented May 23, 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.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Configurability platforms, toolchains, cquery, select(), config transitions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Obtaining output paths of the build artifacts

7 participants