Skip to content

Commit 2ecd43c

Browse files
[README.md] Mention tools/bazel.ps1 tools/bazel.bat (#504)
Co-authored-by: Yun Peng <pcloudy@google.com>
1 parent 6560097 commit 2ecd43c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,12 +172,18 @@ You can set `BAZELISK_CLEAN` to run `clean --expunge` between builds when migrat
172172
## tools/bazel
173173

174174
If `tools/bazel` exists in your workspace root and is executable, Bazelisk will run this file, instead of the Bazel version it downloaded.
175+
175176
It will set the environment variable `BAZEL_REAL` to the path of the downloaded Bazel binary.
176177
This can be useful, if you have a wrapper script that e.g. ensures that environment variables are set to known good values.
177178
This behavior can be disabled by setting the environment variable `BAZELISK_SKIP_WRAPPER` to any value (except the empty string) before launching Bazelisk.
178179

179180
You can control the user agent that Bazelisk sends in all HTTP requests by setting `BAZELISK_USER_AGENT` to the desired value.
180181

182+
On Windows, Bazelisk will also consider the following files in addition to `tools/bazel`:
183+
184+
* `tools/bazel.ps1` (PowerShell)
185+
* `tools/bazel.bat`
186+
181187
# .bazeliskrc configuration file
182188

183189
A `.bazeliskrc` file in the root directory of a workspace or the user home directory allows users to set environment variables persistently. (The Python implementation of Bazelisk doesn't check the user home directory yet, only the workspace directory.)

0 commit comments

Comments
 (0)