bazelbuild/bazel

Add aquery configuration() function

Open

#10,872 opened on Feb 28, 2020

View on GitHub
 (4 comments) (0 reactions) (0 assignees)Java (25,384 stars) (4,465 forks)batch import
P3help wantednot staleteam-Performancetype: feature request

Description

Description of the problem / feature request:

When using aquery, it would be convenient to limit the output based on the action's configuration.

Feature requests: what underlying problem are you trying to solve with this feature?

For an iOS target, running bazel aquery 'deps(some/target)' will result in many iOS targets, but also some targets that are not iOS. One way to distinguish iOS targets from others is by configuration. Locally, I also see actions for apl-darwin_x86_64-fastbuild and darwin-fastbuild.

It would be convenient if I could write the query as:

bazel query 'configuration(ios-x86_64, deps(some/target))'

Contributor guide