Skip to content

Using --cquery can't skip targets #301

@BbBaboo42

Description

@BbBaboo42

In our repo, we use analysis tests from rules testing (https://github.com/bazelbuild/rules_testing)
We have custom tests, and to in order to test them, we create a target that should fail and pass to an analysis_test.
Right now we use query, which is fine, because it doesn't the _impl functions don't run in query.
On the other hand, in cquery, the _impl functions do run for all the targets in the repository.
the main we need the option to prevent the cquery from running on those targets.
There are a few possible solutions we think might help us:

  • allow to pass the cquery as input instead of the fixed "deps(//...:all_targets")
  • when cquery runs on a target that fails, ignore it.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions