-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
common
does not work with flag_alias
#20081
Comments
Which commands besides |
For our use case, none and I'm not sure where it might be useful in other commands. I was just basing this off of how |
The code that checks this is in The test makes it look like this is deliberate, and @gregestren added the check that it isn't supported for |
I'm also re-classifying this as a Feature Request instead of a Bug, since the behavior seems to be intentional. |
Thats fair, I was considering this a bug based on this: #3054 |
329b22a is the original change. The intention was to not allow flag alias definitions for subsets of
|
This is basically a lowest common ancestor problem. We can only apply flag alias definitions on nodes in |
Fixes bazelbuild#20081 Closes bazelbuild#20107. PiperOrigin-RevId: 581112821 Change-Id: I54941072faa8e9843adcdb7ff8d73ab7414dc86a
Fixes bazelbuild#20081 Closes bazelbuild#20107. PiperOrigin-RevId: 581112821 Change-Id: I54941072faa8e9843adcdb7ff8d73ab7414dc86a
Fixes bazelbuild#20081 Closes bazelbuild#20107. PiperOrigin-RevId: 581112821 Change-Id: I54941072faa8e9843adcdb7ff8d73ab7414dc86a
A fix for this issue has been included in Bazel 7.0.0 RC5. Please test out the release candidate and report any issues as soon as possible. Thanks! |
Description of the bug:
Using the new
common
in a .bazelrc withflag_alias
returns the following error:Which category does this issue belong to?
CLI, Configurability
What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
config_setting
common
commandWhich operating system are you running Bazel on?
macOS
What is the output of
bazel info release
?release 6.3.2
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 master; git rev-parse HEAD
?No response
Is this a regression? If yes, please try to identify the Bazel commit where the bug was introduced.
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
Not entirely sure if this is expected but it feels like its not given how
common
works for other flags.The text was updated successfully, but these errors were encountered: