Skip to content

ci(release): fix verify-fetchable fingerprint error#10

Merged
indykish merged 1 commit into
mainfrom
fix/zon-fingerprint-0-16
Apr 20, 2026
Merged

ci(release): fix verify-fetchable fingerprint error#10
indykish merged 1 commit into
mainfrom
fix/zon-fingerprint-0-16

Conversation

@indykish

@indykish indykish commented Apr 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Adds fingerprint (and minimum_zig_version) to the synthetic fetch_test build.zig.zon that verify-fetchable writes at runtime.
  • Fixes the v0.2.0 release pipeline, which failed at verify-fetchable with missing top-level 'fingerprint' field; suggested value: 0x1c1c658521dd0fe1 — that value is for fetch_test, not our real package. Our own build.zig.zon was never the problem.

Test plan

  • Re-run the release pipeline by re-cutting v0.2.0 after merge; confirm verify-fetchable is green.

🤖 Generated with Claude Code

Greptile Summary

The verify-fetchable job now writes a valid Zig 0.16.0 build.zig.zon for the synthetic fetch_test workspace by including the .fingerprint (0x1c1c658521dd0fe1) and .minimum_zig_version fields that Zig 0.16.0 requires. The real build.zig.zon (fingerprint 0xa5fe060596d90b43) was never touched — this is a targeted, correct fix for the CI failure reported in the PR description.

Confidence Score: 5/5

Safe to merge — single-file CI fix with no logic changes outside the synthetic test workspace.

The change is narrowly scoped: two fields added to a heredoc that writes a throw-away build.zig.zon. The fingerprint value matches the value Zig 0.16.0 itself suggested in the error, confirming correctness.

No files require special attention.

Important Files Changed

Filename Overview
.github/workflows/release.yml Adds .fingerprint and .minimum_zig_version to the synthetic fetch_test build.zig.zon written at runtime by the verify-fetchable job, fixing the Zig 0.16.0 required-field error that broke the v0.2.0 release pipeline.

Reviews (1): Last reviewed commit: "ci(release): add fingerprint to verify-f..." | Re-trigger Greptile

Zig 0.16 requires every build.zig.zon to declare a fingerprint. The
synthetic consumer package that verify-fetchable writes into a temp dir
was missing one, which caused `zig fetch --save` to fail with "missing
top-level 'fingerprint' field" — misattributed in the v0.2.0 release run
because the error points at `build.zig.zon:1:2` without naming the file.

The suggested value (0x1c1c658521dd0fe1) encodes crc32("fetch_test") in
the upper 32 bits + a pinned random id in the lower 32; it is unrelated
to our real package fingerprint in /build.zig.zon.

Also pin `minimum_zig_version` on the consumer so the check fails loudly
if CI ever drifts off 0.16.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@indykish indykish merged commit 9dc1225 into main Apr 20, 2026
9 checks passed
@codecov

codecov Bot commented Apr 20, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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