Use configurations from bazel cquery in bazel build #25354
Labels
team-Configurability
platforms, toolchains, cquery, select(), config transitions
type: feature request
untriaged
Description of the feature request:
I would like to run
bazel build
commands with certain configurations I get frombazel cquery
.For example in our project we use transitions on a very late target (which has a lot of dependencies) for passing configurations to all previous targets. There is no way to build one target from the dependencies of the transitioned target with the right configurations without building the entire transitioned target. If I could do something like:
bazel build --config=<hash> :foo
which would apply the configurations from the hash to the target foo.One of the reasons we moved to bazel was that we didn't have to build everything and that we could build just the target we want, but using transitions means that you can't do this and have to build everything.
Which category does this issue belong to?
No response
What underlying problem are you trying to solve with this feature?
Building targets with a transition without building the entire build graph again.
Which operating system are you running Bazel on?
linux
What is the output of
bazel info release
?release 7.4.1
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.No response
What's the output of
git remote get-url origin; git rev-parse HEAD
?Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: