a73x

5266bcdb

build: the pinned zig is vendored at deps/zig, not ~/Downloads

a73x   2026-08-24 11:32

Commit message
build: the pinned zig is vendored at deps/zig, not ~/Downloads

A toolchain in a downloads folder is invisible to any sandboxed builder
and to a fresh checkout. deps/zig is gitignored like deps/quic's output;
copy the 0.15.2 tarball there once.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

.gitignore
Old New
@@ -10,3 +10,6 @@ dist/
10 # Cross-version gate artifacts: two versions built static, per version. 10 # Cross-version gate artifacts: two versions built static, per version.
11 .xversion/ 11 .xversion/
12 .release/ 12 .release/
13
14 # Pinned toolchain, vendored (380MB): deps/zig/zig is what the Makefile runs.
15 deps/zig/
CLAUDE.md
Old New
@@ -6,7 +6,7 @@ in the client. Attach = one snapshot, then row deltas. Zig, Linux only, prototyp
6 ## Toolchain (pinned — system zig will NOT build this) 6 ## Toolchain (pinned — system zig will NOT build this)
7 7
8 ```sh 8 ```sh
9 ZIG=$HOME/Downloads/zig-x86_64-linux-0.15.2/zig # ghostty pin, 0.15.x only 9 ZIG=deps/zig/zig # vendored 0.15.2 (ghostty pin); copy the toolchain here, gitignored
10 make build test e2e # Makefile already points at it 10 make build test e2e # Makefile already points at it
11 make check # fmt + unit tests + shell syntax + comment-claim refs — pre-commit gate 11 make check # fmt + unit tests + shell syntax + comment-claim refs — pre-commit gate
12 make ci # check + e2e + agent + throughput — the delivery gate 12 make ci # check + e2e + agent + throughput — the delivery gate
Makefile
Old New
@@ -1,6 +1,6 @@
1 # ghostty (pinned in build.zig.zon) hard-requires Zig 0.15.x; the system 1 # ghostty (pinned in build.zig.zon) hard-requires Zig 0.15.x; the system
2 # default zig is 0.17-dev. Override with ZIG=... if yours lives elsewhere. 2 # default zig is 0.17-dev. Override with ZIG=... if yours lives elsewhere.
3 ZIG ?= $(HOME)/Downloads/zig-x86_64-linux-0.15.2/zig 3 ZIG ?= $(CURDIR)/deps/zig/zig
4 4
5 .PHONY: build check ci test e2e soak bench agent throughput coverage deps clean clean-deps xversion xversion-build install release 5 .PHONY: build check ci test e2e soak bench agent throughput coverage deps clean clean-deps xversion xversion-build install release
6 6
test/wan.sh
Old New
@@ -92,7 +92,7 @@ USAGE
92 [ -n "${MUX_WAN_HOST:-}" ] || usage 92 [ -n "${MUX_WAN_HOST:-}" ] || usage
93 93
94 ROOT="$(cd "$(dirname "$0")/.." && pwd)" 94 ROOT="$(cd "$(dirname "$0")/.." && pwd)"
95 ZIG="${ZIG:-$HOME/Downloads/zig-x86_64-linux-0.15.2/zig}" 95 ZIG="${ZIG:-$(dirname "$0")/../deps/zig/zig}"
96 MUX="$ROOT/zig-out/bin/mux" 96 MUX="$ROOT/zig-out/bin/mux"
97 REPS_ECHO="${MUX_WAN_REPS_ECHO:-20}" 97 REPS_ECHO="${MUX_WAN_REPS_ECHO:-20}"
98 REPS_BASE="${MUX_WAN_REPS_BASE:-20}" 98 REPS_BASE="${MUX_WAN_REPS_BASE:-20}"