-
Notifications
You must be signed in to change notification settings - Fork 95
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
[CLI] Gathering metadata for bazel version...
breaks with some tools/bazel
wrappers
#6466
Comments
Currently, I think the order of execution is like this
In If you are injecting With that said, I wonder if we could add a config flag somewhere that would let you opt-in to disabling |
@brentleyjones Is it possible for you to implement your feature as a Then inside |
Maybe. But I'm classifying this as a bug because it prevents the CLI from being out of the box with |
@brentleyjones Are you planning to use the Tentatively, I have a proposed fix for this here: master...cli-toolsbazel The patch makes sure that we call Pros:
Cons:
|
We would use
Sadly lots of wrappers do this, so the ship has sailed there. |
Describe the bug
The
Gathering metadata for bazel version...
step callsbazel --ignore_all_rc_files help version
viatools/bazel
, which can fail depending on whattools/bazel
does.To Reproduce
Have a
tools/bazel
wrapper that adds--config
flags to commands. Then runbb
in such a way that it needs to collect metadata, e.g. by running a new command likebb version
. Thetools/bazel
wrapper will end up calling something like this:/Users/brentley.jones/Library/Caches/bazelisk/downloads/sha256/dae351f491ead382bfc7c14d8957b9c8d735300c566c2161e34035eab994c1f2/bin/bazel --ignore_all_rc_files help --config=buildbuddy_cache version
Which will fail because of
--ignore_all_rc_files
.Expected behavior
This step probably shouldn't call into the wrapper.
The text was updated successfully, but these errors were encountered: