-
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
"bazel clean" failure when Starlark options present in "build" lines in .bazelrc #12808
Comments
Only sending to configurability because of command line parsing, but I think any team could do this. |
Looks like this was previously fixed in #11506 (and I think I remember it working correctly). /cc @juliexxia @katre |
I've just checked, and Bazel does indeed display a warning when using |
(Context: I'm moving on from Bazel on friday and spending some time triaging all bugs assigned to me before unassigning myself) Just tried the repro with release bazel and got the described error, but tried with bazel built at head and got the expected warning. I haven't tried to figure out what change resulted in that but I'd request trying this again when the new release comes out and see if it's still an issue. |
Status: let's wait until the next Bazel release to verify the issue, as @juliexxia suggested. After that point if anyone still sees the problem please ping this thread. |
This fails for me with bazel 4.1.0. I'll look further. |
Dug in and I'm confused. :( This works for me with bazel@head. But not bazel 4.1.0.
What would be different between 4.1.0 and head, then? Something is not adding up here. |
bazel/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java Lines 133 to 135 in c4975ef
And I don't see any interesting changes to the file since: https://github.com/bazelbuild/bazel/commits/master/src/main/java/com/google/devtools/build/lib/runtime/commands/CleanCommand.java |
|
Closing this bug, now that it's been cherrypick-requested for 4.2.0. |
Still get a warning message of this for bazel 5.1.0 |
Description of the problem / feature request:
When I use a label-typed Bazel option on a
build
line in a.bazelrc
file, Bazel fails with an error:This is quite problematic for us, because we offer this option in a library, and developers are expected to be able to override the option in their own workspaces.
Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
What operating system are you running Bazel on?
Debian
What's the output of
bazel info release
?release 3.7.2
The text was updated successfully, but these errors were encountered: