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

Use configurations from bazel cquery in bazel build #25354

Open
lior10r opened this issue Feb 21, 2025 · 0 comments
Open

Use configurations from bazel cquery in bazel build #25354

lior10r opened this issue Feb 21, 2025 · 0 comments
Labels
team-Configurability platforms, toolchains, cquery, select(), config transitions type: feature request untriaged

Comments

@lior10r
Copy link
Contributor

lior10r commented Feb 21, 2025

Description of the feature request:

I would like to run bazel build commands with certain configurations I get from bazel 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 returns development 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

@sgowroji sgowroji added the team-Configurability platforms, toolchains, cquery, select(), config transitions label Feb 21, 2025
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 type: feature request untriaged
Projects
None yet
Development

No branches or pull requests

4 participants