Skip to content

Commit 9ba0a89

Browse files
Ailing Zhanggchanan
authored andcommitted
Overwrite bazel if /usr/bin/bazel already exists.
1 parent c164fbc commit 9ba0a89

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.jenkins/pytorch/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,7 @@ if [[ "${BUILD_ENVIRONMENT}" == *xla* ]]; then
259259
# XLA build requires Bazel
260260
# We use bazelisk to avoid updating Bazel version manually.
261261
sudo npm install -g @bazel/bazelisk
262-
sudo ln -s "$(command -v bazelisk)" /usr/bin/bazel
262+
sudo ln -sf "$(command -v bazelisk)" /usr/bin/bazel
263263

264264
# Install bazels3cache for cloud cache
265265
sudo npm install -g bazels3cache

0 commit comments

Comments
 (0)