Skip to content

Conversation

@andy1li
Copy link
Member

@andy1li andy1li commented Oct 27, 2025

Upgrade Zig to 0.15.2


Note

Upgrade Zig to 0.15.2 across configs and add a Dockerfile to build with caching.

  • Build/Tooling:
    • Upgrade Zig version from zig-0.15 to zig-0.15.2 in compiled_starters/zig/codecrafters.yml and solutions/zig/01-gg4/code/codecrafters.yml.
    • Add dockerfiles/zig-0.15.2.Dockerfile to install Zig 0.15.2, set PATH and dependency env, run .codecrafters/compile.sh, and cache .zig-cache.

Written by Cursor Bugbot for commit 3874ba1. This will update automatically on new commits. Configure here.

rm -rf /var/lib/apt/lists/*

# Download and install Zig
RUN curl -O https://ziglang.org/download/0.15.2/zig-x86_64-linux-0.15.2.tar.xz \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Missing Curl Causes Build Failure

The Dockerfile uses curl to download the Zig tarball on line 10, but curl is not installed in the image. The apt-get install command on lines 4-5 only installs xz-utils, and the debian:bookworm base image does not include curl by default. This will cause the Docker build to fail with a "curl: command not found" error. The curl package needs to be added to the apt-get install command.

Fix in Cursor Fix in Web

@andy1li andy1li merged commit bbb9a4b into main Oct 27, 2025
20 of 21 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.

2 participants