Describe the bug
The Gathering metadata for bazel version... step calls bazel --ignore_all_rc_files help version via tools/bazel, which can fail depending on what tools/bazel does.
To Reproduce
Have a tools/bazel wrapper that adds --config flags to commands. Then run bb in such a way that it needs to collect metadata, e.g. by running a new command like bb version. The tools/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.
Describe the bug
The
Gathering metadata for bazel version...step callsbazel --ignore_all_rc_files help versionviatools/bazel, which can fail depending on whattools/bazeldoes.To Reproduce
Have a
tools/bazelwrapper that adds--configflags to commands. Then runbbin such a way that it needs to collect metadata, e.g. by running a new command likebb version. Thetools/bazelwrapper 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 versionWhich will fail because of
--ignore_all_rc_files.Expected behavior
This step probably shouldn't call into the wrapper.