From 631b704054cdb92c6c3232d1f6a98eaf7256ca84 Mon Sep 17 00:00:00 2001 From: Kishore Kumar Date: Mon, 20 Apr 2026 13:18:44 +0530 Subject: [PATCH] ci(release): add fingerprint to verify-fetchable consumer zon MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- .github/workflows/release.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a8b19ab..0f68080 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -168,6 +168,8 @@ jobs: .{ .name = .fetch_test, .version = "0.0.1", + .fingerprint = 0x1c1c658521dd0fe1, + .minimum_zig_version = "0.16.0", .dependencies = .{ .posthog = .{ .url = "https://github.com/usezombie/posthog-zig/archive/refs/tags/$TAG.tar.gz",