-
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
WARNING: info command does not support starlark options #13473
Comments
Why not just By "clean" do you mean #12808? I'm open to not having the warnings if they're not helpful, but we'd want a broader consensus on that. I'd suggest the stderr redirect in the interim if it's simply a matter of shell script parsing. |
@gregestren I'm also wondering why this is a warning. Is it possible to have an option apply to all I also read through #12808 and it seems like the cleanup that removes the implicit inheritance of |
You can also filter warnings:
|
Here's the history: 2ec58f6 I'm guessing the warning is because I'm not sure if any of this could apply to Starlark flags. But that's a reason for caution. |
To add insult to injury, it doesn't even properly detect Starlark flags. It warns for Either info should accept Starlark flags, or there should be a way to pass them to |
CC @aranguyen who's been looking into these subtle quirks with |
@pauldraper this commit should have fixed the issue you mentioned f6cccae . The change is in this release https://github.com/bazelbuild/bazel/releases/tag/6.0.0-pre.20220328.1 . Please let me know if you're still seeing the same issue. |
@aranguyen still see the same issue:
|
@daixiang0 it is by the current design that the command |
From the end-user perspective, he/she provides a flag in .bazelrc file for the build command. As a side-effect, for some reason, those flags are even propagated to clean and info. He/she gets a WARNING that is not very useful as there is no way for the end-user to fix this. You are going to be surprised how many people are still searching for "WARNING" in their logs and fail tests due to that. |
Description of the problem / feature request:
The bazel
info
command prints a WARNING if the .bazelrc file contains starlark options:The options are config settings, e.g.
string_flag
, 'bool_flag', etc. rules.Feature requests: what underlying problem are you trying to solve with this feature?
I use
bazel info
in some shell scripts and this warning message causes problems. The warning itself is not useful anyway.Bugs: what's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
Should happen for any project with e.g. config setting params in
.bazelrc
.What operating system are you running Bazel on?
MacOS 11.3.1
What's the output of
bazel info release
?;)
What's the output of
git remote get-url origin ; git rev-parse master ; git rev-parse HEAD
?Have you found anything relevant by searching the web?
Yes, there are a number of bazel issues addressing more or less the same problem, but for the
bazel clean
command.The text was updated successfully, but these errors were encountered: