From d596b14e4846e6ace3c1d275546068af68244ce5 Mon Sep 17 00:00:00 2001 From: Fintan Halpenny Date: Wed, 18 Feb 2026 16:03:30 +0000 Subject: [PATCH] build: Pin Zig to 0.13.0 Control the version of Zig that is being downloaded rather than getting it via the Alpine Package Keeper. Version 0.13.0 is chosen so that it can correctly recognise MacOS TBD v4 which is required due to the introduction of the IOKit in the bundled `macos-sdk-11.3`. --- build/Dockerfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/build/Dockerfile b/build/Dockerfile index b53436d6..f965de4e 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -16,7 +16,16 @@ ARG GIT_HEAD # Copy cargo configuration we're going to use to specify compiler options. RUN mkdir -p .cargo && cp build/config.toml .cargo/config.toml # Install dependencies. -RUN apk update && apk add --no-cache git musl-dev xz asciidoctor zig +RUN apk update && apk add --no-cache git musl-dev xz asciidoctor + +# Install a pinned zig version with MacOS TBD v4 support +ARG ZIG_VERSION="0.13.0" +RUN wget -q https://ziglang.org/download/${ZIG_VERSION}/zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \ + tar -xf zig-linux-x86_64-${ZIG_VERSION}.tar.xz && \ + mv zig-linux-x86_64-${ZIG_VERSION} /usr/local/zig && \ + ln -s /usr/local/zig/zig /usr/local/bin/zig && \ + rm zig-linux-x86_64-${ZIG_VERSION}.tar.xz + # Build man pages and strip metadata. Removes all comments, since they include # non-reproducible information, such as version numbers. RUN asciidoctor --doctype manpage --backend manpage --destination-dir . *.1.adoc && \