fix(zig): add curl and ca-certificates packages to zig-0.15.2 Dockerfile - #22
Open
mal1k-me wants to merge 1 commit into
Open
fix(zig): add curl and ca-certificates packages to zig-0.15.2 Dockerfile#22mal1k-me wants to merge 1 commit into
mal1k-me wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The
zig-0.15.2.Dockerfilefails during Docker build becausecurlandca-certificatesare not installed, but the RUN command on line 15 uses curl to download the Zig compiler over HTTPS.Error Output
After adding curl alone:
Root Cause
When the Dockerfile was updated from Alpine to Debian Trixie in commit 6288895, the
curlandca-certificatespackages were inadvertently omitted. Alpine includes these by default, but Debian requires explicit installation.Solution
Add
curlandca-certificatesto the apt-get install command with pinned versions:ca-certificates=20250419(latest for Debian Trixie)curl=8.14.1-2+deb13u2(matches other pinned package versions)Testing
Tested locally with a CodeCrafters shell challenge:
zig versionreturns0.15.2Impact
This fix enables all Zig 0.15.2 users to successfully build their CodeCrafters projects without manual Dockerfile modifications.
Note: This issue was discovered while building a local testing tool for CodeCrafters challenges, with assistance from a coding agent during real-world Zig project testing.