Skip to content

Commit

Permalink
fix install bazel
Browse files Browse the repository at this point in the history
  • Loading branch information
chaokunyang committed Dec 12, 2024
1 parent 602e5be commit 896b9ec
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
6 changes: 0 additions & 6 deletions bazel/fury_deps_setup.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,6 @@ def setup_deps():
"https://github.com/bazelbuild/bazel-skylib/releases/download/1.3.0/bazel-skylib-1.3.0.tar.gz",
],
)
http_archive(
name = "rules_cc",
urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.17/rules_cc-0.0.17.tar.gz"],
sha256 = "abc605dd850f813bb37004b77db20106a19311a96b2da1c92b789da529d28fe1",
strip_prefix = "rules_cc-0.0.17",
)
http_archive(
name = "rules_python",
sha256 = "9fcf91dbcc31fde6d1edb15f117246d912c33c36f44cf681976bd886538deba6",
Expand Down
5 changes: 4 additions & 1 deletion ci/run_ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@


import argparse
import shutil
import subprocess
import platform
import urllib.request as ulib
Expand Down Expand Up @@ -132,7 +133,9 @@ def _install_bazel():
bazel_path = os.path.join(os.getcwd(), local_name)
_exec_cmd(f'setx path "%PATH%;{bazel_path}"')
else:
_exec_cmd(f"./{local_name} --user")
if shutil.which("bazel"):
os.remove(shutil.which("bazel"))
_exec_cmd(f"./run_ci.sh install_bazel")
os.remove(local_name)

# bazel install status check
Expand Down

0 comments on commit 896b9ec

Please sign in to comment.