-
Notifications
You must be signed in to change notification settings - Fork 6.8k
build: prevent bazel from logging warning on each invocation #19298
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
Conversation
Each time ibazel is run, it logs something like: ``` INFO: Build completed successfully, 14 total actions ################################################################################ # Did you know iBazel can invoke programs like Gazelle, buildozer, and # # other BUILD file generators for you automatically based on bazel output? # # Documentation at: https://github.com/bazelbuild/bazel-watcher#output-runner # ################################################################################ iBazel [3:24PM]: Use default regex ``` These changes avoid the annoying banner by adding a `.bazel_fix_commands.json` file according to https://github.com/bazelbuild/bazel-watcher#output-runner. Note that we it seems like we should be able to do the same by passing the `--run_output=false` flag, but I wasn't able to get it to work through the `.bazelrc`.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Should we submit an issue upstream? I assume a comment in the file would be nice, but it's not JSON5 so we cannot right?
I don't know whether we should file an issue, because it's documented which makes me think that it works this way on purpose. |
I don't think we should file an issue for the feature they are advertising for, but rather we should file an issue for the "ad banner" that is undesired in some Bazel projects. A way to reasonably disable the advertisement is not documented either. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Each time ibazel is run, it logs something like:
These changes avoid the annoying banner by adding a
.bazel_fix_commands.json
file according to https://github.com/bazelbuild/bazel-watcher#output-runner. Note that we it seems like we should be able to do the same by passing the--run_output=false
flag, but I wasn't able to get it to work through the.bazelrc
.