Skip to content

Commit

Permalink
Update ci_runner bundled bazelisk version (#8035)
Browse files Browse the repository at this point in the history
`v1.19.0` respects .bazelversion when MODULE.bazel is present.
  • Loading branch information
bduffany committed Dec 10, 2024
1 parent e8a04f9 commit 0560c48
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 24 deletions.
8 changes: 4 additions & 4 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,10 @@ http_file(
install_static_dependencies_ext = use_extension(":deps.bzl", "install_static_dependencies_ext")
use_repo(
install_static_dependencies_ext,
"com_github_bazelbuild_bazelisk-bazelisk-darwin-amd64",
"com_github_bazelbuild_bazelisk-bazelisk-darwin-arm64",
"com_github_bazelbuild_bazelisk-bazelisk-linux-amd64",
"com_github_bazelbuild_bazelisk-bazelisk-linux-arm64",
"com_github_buildbuddy_io_podman_static_podman-linux-amd64",
"com_github_buildbuddy_io_podman_static_podman-linux-arm64",
"com_github_buildbuddy_io_protoc_gen_protobufjs",
Expand Down Expand Up @@ -509,10 +513,6 @@ use_repo(
"io_bazel_bazel-6.5.0-linux-x86_64",
"io_bazel_bazel-7.1.0-darwin-x86_64",
"io_bazel_bazel-7.1.0-linux-x86_64",
"io_bazel_bazelisk-1.17.0-darwin-amd64",
"io_bazel_bazelisk-1.17.0-darwin-arm64",
"io_bazel_bazelisk-1.17.0-linux-amd64",
"io_bazel_bazelisk-1.17.0-linux-arm64",
"net_busybox_busybox-linux-amd64",
"net_busybox_busybox-linux-arm64",
"org_kernel_git_linux_kernel-vmlinux",
Expand Down
24 changes: 12 additions & 12 deletions deps.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -6518,28 +6518,28 @@ def install_static_dependencies(workspace_name = "buildbuddy"):
urls = ["https://github.com/bazelbuild/bazel/releases/download/7.1.0/bazel-7.1.0-linux-x86_64"],
)
http_file(
name = "io_bazel_bazelisk-1.17.0-darwin-amd64",
name = "com_github_bazelbuild_bazelisk-bazelisk-darwin-amd64",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-darwin-amd64"],
sha256 = "f2ba5f721a995b54bab68c6b76a340719888aa740310e634771086b6d1528ecd",
executable = True,
sha256 = "3cf03dab8f5ef7c29e354b8e9293c82098ace3634253f9c660c26168b9e34720",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-darwin-amd64"],
)
http_file(
name = "io_bazel_bazelisk-1.17.0-darwin-arm64",
name = "com_github_bazelbuild_bazelisk-bazelisk-darwin-arm64",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-darwin-arm64"],
sha256 = "69fa21cd2ccffc2f0970c21aa3615484ba89e3553ecce1233a9d8ad9570d170e",
executable = True,
sha256 = "2d4c66d428176b6c65e284ff74951b074846f15d324b099959483c175dec5728",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-darwin-arm64"],
)
http_file(
name = "io_bazel_bazelisk-1.17.0-linux-amd64",
name = "com_github_bazelbuild_bazelisk-bazelisk-linux-amd64",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-amd64"],
sha256 = "d28b588ac0916abd6bf02defb5433f6eddf7cba35ffa808eabb65a44aab226f7",
executable = True,
sha256 = "61699e22abb2a26304edfa1376f65ad24191f94a4ffed68a58d42b6fee01e124",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-amd64"],
)
http_file(
name = "io_bazel_bazelisk-1.17.0-linux-arm64",
name = "com_github_bazelbuild_bazelisk-bazelisk-linux-arm64",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.19.0/bazelisk-linux-arm64"],
sha256 = "861a16ba9979613e70bd3d2f9d9ab5e3b59fe79471c5753acdc9c431ab6c9d94",
executable = True,
sha256 = "a836972b8a7c34970fb9ecc44768ece172f184c5f7e2972c80033fcdcf8c1870",
urls = ["https://github.com/bazelbuild/bazelisk/releases/download/v1.17.0/bazelisk-linux-arm64"],
)
http_file(
name = "org_kernel_git_linux_kernel-vmlinux",
Expand Down
14 changes: 7 additions & 7 deletions server/util/bazelisk/BUILD
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")

genrule(
name = "bazelisk-1.17.0_crossplatform",
name = "bazelisk-crossplatform",
srcs = select({
"@bazel_tools//src/conditions:darwin_x86_64": ["@io_bazel_bazelisk-1.17.0-darwin-amd64//file:downloaded"],
"@bazel_tools//src/conditions:darwin_arm64": ["@io_bazel_bazelisk-1.17.0-darwin-arm64//file:downloaded"],
"@bazel_tools//src/conditions:linux_aarch64": ["@io_bazel_bazelisk-1.17.0-linux-arm64//file:downloaded"],
"//conditions:default": ["@io_bazel_bazelisk-1.17.0-linux-amd64//file:downloaded"],
"@bazel_tools//src/conditions:darwin_x86_64": ["@com_github_bazelbuild_bazelisk-bazelisk-darwin-amd64//file:downloaded"],
"@bazel_tools//src/conditions:darwin_arm64": ["@com_github_bazelbuild_bazelisk-bazelisk-darwin-arm64//file:downloaded"],
"@bazel_tools//src/conditions:linux_aarch64": ["@com_github_bazelbuild_bazelisk-bazelisk-linux-arm64//file:downloaded"],
"//conditions:default": ["@com_github_bazelbuild_bazelisk-bazelisk-linux-amd64//file:downloaded"],
}),
outs = ["bazelisk-1.17.0"],
outs = ["bazelisk-bin"],
cmd_bash = "cp $(SRCS) $@",
visibility = ["//visibility:public"],
)

go_library(
name = "bazelisk",
srcs = ["bazelisk.go"],
embedsrcs = [":bazelisk-1.17.0"], # keep
embedsrcs = [":bazelisk-bin"], # keep
importpath = "github.com/buildbuddy-io/buildbuddy/server/util/bazelisk",
visibility = ["//visibility:public"],
)
2 changes: 1 addition & 1 deletion server/util/bazelisk/bazelisk.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ import (
var embedFS embed.FS

func Open() (fs.File, error) {
return embedFS.Open("bazelisk-1.17.0")
return embedFS.Open("bazelisk-bin")
}

0 comments on commit 0560c48

Please sign in to comment.