Skip to content

build: migrate Architect to Zig 0.16.0 - #376

Draft
forketyfork wants to merge 7 commits into
mainfrom
feat/zig-0-16
Draft

build: migrate Architect to Zig 0.16.0#376
forketyfork wants to merge 7 commits into
mainfrom
feat/zig-0-16

Conversation

@forketyfork

@forketyfork forketyfork commented Sep 1, 2026

Copy link
Copy Markdown
Owner

Issue

Architect must move from Zig 0.15.2 to Zig 0.16.0, including the dependency pins and build-script APIs that gate the migration.

Solution

This PR spans Tasks 6-15 of the Zig 0.16.0 migration plan. Task 6 flips the flake toolchain pin and minimum Zig version, updates the four verified dependency hashes, renames the build graph environment map, and migrates build.zig SDK probing to std.Io and std.process.run.

Context

CI is EXPECTED TO FAIL from this commit through Task 12, by design, because the codebase cannot build on both toolchains simultaneously mid-flip. The true green gate is Task 13. The remaining commits on this branch will complete Tasks 7-15 before this PR is merged.

Test plan

  • PASS: direct Zig 0.16.0 zig build --help
  • PASS: build script format check with Zig 0.16.0
  • EXPECTED FAIL: direct Zig 0.16.0 zig build baseline, with 6 source error diagnostics captured in .tmp/flip-errors.txt
  • PASS: dependency resolution reached Architect source without ghostty, libxev, toml, or zwanzig dependency diagnostics
  • DO NOT expect CI to be green until Task 13; do not poll CI for green at this intermediate task

ghostty moves to a main-branch commit because 1.3.2-dev is the first line
requiring 0.16.0 and no v1.3.2 tag exists yet; libxev follows ghostty's pin;
zig-toml moves to its zig-0.16 branch. zwanzig v0.15.1 already supports
0.16.0 through its compat layer and needs no version change.

src/ does not compile yet; the following commits on this branch complete
the migration.
env, clock, and proc now take the io context that Zig 0.16 requires.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant