Skip to content

Commit 35e5b57

Browse files
authored
fix(linux / windows): Use GitHub mirror to download Bazel (#1055)
* fix(linux): Use github mirror for Bazel download The default `releases.bazel.build` is offline due to a TLS certificate expiring * fix(windows): Use github mirror for Bazel download The default `releases.bazel.build` is offline due to a TLS certificate expiring * fix(linux): Add missing spaces (oops)
1 parent 0c7f207 commit 35e5b57

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

linux/Dockerfile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,11 @@ RUN ln -s /usr/local/bin/bazelisk /usr/local/bin/bazel
358358
# Verify Bazelisk properly bootstraps Bazel - this also preinstalls Bazel ${TEST_BAZEL_VERSION}
359359
ARG TEST_BAZEL_VERSION
360360
RUN readlink -f "$(command -v bazel)" | tee /dev/stderr | grep -Fqx /usr/local/bin/bazelisk
361-
RUN BAZELISK_HOME=/tmp/bazelisk USE_BAZEL_VERSION=${TEST_BAZEL_VERSION} bazel --version | tee /dev/stderr | grep -Fqx "bazel ${TEST_BAZEL_VERSION}"
361+
RUN BAZELISK_HOME=/tmp/bazelisk \
362+
USE_BAZEL_VERSION=${TEST_BAZEL_VERSION} \
363+
# TODO(incident-47542): Remove this once `releases.bazel.build` is back online
364+
BAZELISK_BASE_URL=https://github.com/bazelbuild/bazel/releases/download \
365+
bazel --version | tee /dev/stderr | grep -Fqx "bazel ${TEST_BAZEL_VERSION}"
362366

363367
# Go
364368
COPY --from=go_builder /usr/local/go /usr/local/go

windows/helpers/phase3/install_bazelisk.ps1

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ try {
3434
$output = & {
3535
$env:BAZELISK_HOME = "$bazeliskHome"
3636
$env:USE_BAZEL_VERSION = '7.6.1'
37+
# TODO(incident-47542): Remove this once `releases.bazel.build` is back online
38+
$env:BAZELISK_BASE_URL = 'https://github.com/bazelbuild/bazel/releases/download'
3739
bazel --version
3840
}
3941
if ($output -ne 'bazel 7.6.1') {

0 commit comments

Comments
 (0)