Allow 1-to-0 transitions #19752
Labels
P3
We're not considering working on this, but happy to review a PR. (No assignee)
team-Configurability
platforms, toolchains, cquery, select(), config transitions
type: feature request
Description of the feature request:
Bazel supports 1-to-N transitions, but not if
N == 0
. Let me show an example:If we run
bazel build //:three
, then the result will be as desired:But if we run
bazel build //:zero
, then the result will be surprising:Which category does this issue belong to?
Configurability
What underlying problem are you trying to solve with this feature?
I want to make a 1-to-N transition, but N may occasionally be zero.
What is the output of
bazel info release
?release 6.1.0
Any other information, logs, or outputs that you want to share?
Code for this proposal: https://github.com/alexander-shiryaev/bazel_issue/tree/main/feature_request/allow_1_to_0_transition
The text was updated successfully, but these errors were encountered: