We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 52231ef commit 112242bCopy full SHA for 112242b
crate_universe/private/crates_vendor.bzl
@@ -12,7 +12,13 @@ export RUNTIME_PWD="$(pwd)"
12
if [[ -z "${{BAZEL_REAL:-}}" ]]; then
13
BAZEL_REAL="$(which bazel || echo 'bazel')"
14
fi
15
-eval exec env - BAZEL_REAL="${{BAZEL_REAL}}" BUILD_WORKSPACE_DIRECTORY="${{BUILD_WORKSPACE_DIRECTORY}}" {env} \\
+
16
+# The path needs to be preserved to prevent bazel from starting with different
17
+# startup options (requiring a restart of bazel).
18
+# If you provide an empty path, bazel starts itself with
19
+# --default_system_javabase set to the empty string, but if you provide a path,
20
+# it may set it to a value (eg. "/usr/local/buildtools/java/jdk11").
21
+eval exec env - BAZEL_REAL="${{BAZEL_REAL}}" BUILD_WORKSPACE_DIRECTORY="${{BUILD_WORKSPACE_DIRECTORY}}" PATH="${{PATH}}" {env} \\
22
"{bin}" {args} "$@"
23
"""
24
0 commit comments