Skip to content

CC-2208: Upgrade Zig to 0.16#92

Merged
andy1li merged 1 commit into
mainfrom
andy/update-zig-0.16
May 10, 2026
Merged

CC-2208: Upgrade Zig to 0.16#92
andy1li merged 1 commit into
mainfrom
andy/update-zig-0.16

Conversation

@andy1li

@andy1li andy1li commented May 10, 2026

Copy link
Copy Markdown
Member

Note

Medium Risk
Medium risk because this upgrades the Zig toolchain and updates process/IO/HTTP usage to new 0.16 APIs, which can affect build/run behavior in CI and user environments.

Overview
Upgrades the Zig track to Zig 0.16 across starters and solutions (required version, build.zig.zon minimum version, and codecrafters.yml buildpack), and adds a new dockerfiles/zig-0.16.Dockerfile for the updated build environment.

Updates build/run scripts to rely on the default zig build output (zig-out/bin/main) instead of a custom --prefix install path.

Refactors src/main.zig to the Zig 0.16 entrypoint style (main(init: std.process.Init)), switching argument/env handling and IO types (std.Io, injected io for std.http.Client and stdout streaming writes) to match the new standard library APIs.

Reviewed by Cursor Bugbot for commit 9b8b0a3. Bugbot is set up for automated code reviews on this repo. Configure here.

@andy1li andy1li self-assigned this May 10, 2026
@linear-code

linear-code Bot commented May 10, 2026

Copy link
Copy Markdown

CC-2208

@andy1li
andy1li merged commit 123a2f6 into main May 10, 2026
18 checks passed
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