You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To do this, recognize new tools/bazel.<OSNAME>-<ARCH> and tools/bazel.<ARCH>
names for the wrapper, and favor those over tools/bazel if they are present.
Copy file name to clipboardExpand all lines: README.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -213,18 +213,19 @@ You can set `BAZELISK_CLEAN` to run `clean --expunge` between builds when migrat
213
213
214
214
## tools/bazel
215
215
216
-
If `tools/bazel` exists in your workspace root and is executable, Bazelisk will run this file, instead of the Bazel version it downloaded.
216
+
Bazelisk will try to run a Bazel wrapper from the `tools` directory if present, instead of the Bazel version it downloaded. The environment variable `BAZEL_REAL`, unconditionally set by Bazelisk, can be used by the wrapper to execute the downloaded Bazel binary.
217
217
218
-
It will set the environment variable `BAZEL_REAL` to the path of the downloaded Bazel binary.
219
-
This can be useful, if you have a wrapper script that e.g. ensures that environment variables are set to known good values.
220
-
This behavior can be disabled by setting the environment variable `BAZELISK_SKIP_WRAPPER` to any value (except the empty string) before launching Bazelisk.
218
+
Bazelisk looks for the following wrappers, in order:
221
219
222
-
You can control the user agent that Bazelisk sends in all HTTP requests by setting `BAZELISK_USER_AGENT` to the desired value.
220
+
*`tools/bazel.<OSNAME>-<ARCH>`: An executable that's OS- and platform-specific.
221
+
*`tools/bazel.<ARCH>`: An executable that's platform-specific (for cases where your project only supports one operating system anyway).
222
+
*`tools/bazel`: An executable or shell script.
223
+
*`tools/bazel.ps1`: A PowerShell script on Windows.
224
+
*`tools/bazel.bat`: A batch file on Windows.
223
225
224
-
On Windows, Bazelisk will also consider the following files in addition to `tools/bazel`:
226
+
This behavior can be disabled by setting the environment variable `BAZELISK_SKIP_WRAPPER`to any value (except the empty string) before launching Bazelisk.
225
227
226
-
*`tools/bazel.ps1` (PowerShell)
227
-
*`tools/bazel.bat`
228
+
You can control the user agent that Bazelisk sends in all HTTP requests by setting `BAZELISK_USER_AGENT` to the desired value.
0 commit comments