From 9ce88eda3ffd892c23b7d5cf8566a7456f211c2c Mon Sep 17 00:00:00 2001 From: Lorenz Leutgeb Date: Tue, 13 Oct 2026 23:28:08 +0200 Subject: [PATCH] =?UTF-8?q?build/zig:=200.16.0=20=E2=86=92=200.17.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit a87e0bd1c8262444e63e2f2d0f982f526c145bf1, which changed from downloading Zig to installing it via `apk`. The reason to do this back then was because the download failed after the version bump in 8d50b75826fc3cc348233c7131885143c400a438. However, the reason for the download to fail was that the file name pattern for the tarballs changed, see and that no indirection via was done. Now, as 0.17.0 is released, and the package in the Alpine repositories is taking time to be updated, we revert the change, and rewrite the download step to be more resilient. --- build/Dockerfile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/build/Dockerfile b/build/Dockerfile index f1d4e87a1..e24cdfb05 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -19,10 +19,21 @@ RUN mkdir -p .cargo && cp build/config.toml .cargo/config.toml # Install dependencies. RUN apk update && apk add --no-cache \ asciidoctor \ + curl \ git \ + jq \ musl-dev \ - xz \ - zig=0.16.0-r1 + xz + +# Install a version of Zig that supports macOS TBD v4 +ARG ZIG_VERSION="0.17.0" +RUN mkdir -p /usr/local/zig && \ + ZIG_URL=$(\ + curl -fsSL https://ziglang.org/download/index.json | \ + jq -er --arg version "$ZIG_VERSION" '.[$version]["x86_64-linux"].tarball' \ + ) && \ + curl -fsSL "$ZIG_URL" | tar -xJ -C /usr/local/zig --strip-components=1 && \ + ln -s /usr/local/zig/zig /usr/local/bin/zig # Build man pages and strip metadata. Removes all comments, since they include # non-reproducible information, such as version numbers.