Skip to content

Commit

Permalink
[workspace] Upgrade bazelisk to latest release v1.21.0 (RobotLocomoti…
Browse files Browse the repository at this point in the history
  • Loading branch information
mwoehlke-kitware authored Sep 10, 2024
1 parent 71d4a9a commit cbafcb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion third_party/com_github_bazelbuild_bazelisk/bazelisk.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ def decide_which_bazel_version_to_use():
bazelversion_path = os.path.join(workspace_root, ".bazelversion")
if os.path.exists(bazelversion_path):
with open(bazelversion_path, "r") as f:
return f.read().strip()
for ln in f.readlines():
ln = ln.strip()
if ln:
return ln

return "latest"

Expand Down
4 changes: 2 additions & 2 deletions tools/workspace/bazelisk/repository.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def bazelisk_repository(
bazel-drake/external/bazelisk/LICENSE \\
bazel-drake/external/bazelisk/bazelisk.py
""",
commit = "v1.20.0",
sha256 = "3c2303d45562cf7a9bc64ad41b670f38c2634bf8ba5b3acffa2997577955b3e0", # noqa
commit = "v1.21.0",
sha256 = "0b7b5b74cb5d79ba814b4413e59adb826f3891e1b14dfd1485eae2078f531253", # noqa
build_file = ":package.BUILD.bazel",
patches = [
":patches/pull494.patch",
Expand Down

0 comments on commit cbafcb5

Please sign in to comment.