Skip to content

Commit 3e5f492

Browse files
committed
deps: pin sqlite3 to commit SHA + bump zigDepsHash (was drifting heads/main, broke CI)
build.zig.zon pinned .sqlite3 to allyourcodebase/sqlite3 refs/heads/main, a moving branch. Upstream bumped 3.51.0 -> 3.53.2, so the recorded .hash stopped matching and the validate-zig-deps fixed-output derivation failed -> every Garnix package/check on yolo failed. Not a code regression; a drifting unpinned dependency. Fix: - Pin .url to immutable commit 7a615f5af79009cd733e3480658586d9b0d28b35 and update .hash to sqlite3-3.53.2-DMxLWuAOAAA_Px0arJOIOaP4AKEu5prbsQgPMA35W1zz. - Bump flake.nix zigDepsHash to sha256-wbws7W8VYfb5gPyqXwr4N4MZV9phB505OH7UB8oIYUA= (the dep-tree FOD content changed with the sqlite bump). My first push fixed only build.zig.zon and built 'green' locally ONLY because the old FOD output was cached; Garnix, building clean, still hit the FOD hash mismatch on every platform. Forced re-derivation (fakeHash) to get the correct value. NOTE: zlib (build.zig.zon:59) and openmpt (:67) still track refs/heads/ main|master with the same latent drift risk; pin to SHAs in a follow-up.
1 parent 2740836 commit 3e5f492

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

build.zig.zon

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,10 @@
6060
.hash = "zlib-1.3.2-ZZQ7lc8NAAAHm9MDfplvwoesXvk4tVm6VCsiI8KnIbT0",
6161
},
6262
.sqlite3 = .{
63-
.url = "https://github.com/allyourcodebase/sqlite3/archive/refs/heads/main.tar.gz",
64-
.hash = "sqlite3-3.51.0-DMxLWuAOAABO27GnPH0iTeI57EkQPpGwqI7LTfiE4Pda",
63+
// Pinned to an immutable commit (was refs/heads/main, which drifted
64+
// 3.51.0 -> 3.53.2 and broke CI on 2026-06-05). Pin SHA, not a branch.
65+
.url = "https://github.com/allyourcodebase/sqlite3/archive/7a615f5af79009cd733e3480658586d9b0d28b35.tar.gz",
66+
.hash = "sqlite3-3.53.2-DMxLWuAOAAA_Px0arJOIOaP4AKEu5prbsQgPMA35W1zz",
6567
},
6668
.libopenmpt = .{
6769
.url = "https://github.com/pmarreck/openmpt/archive/refs/heads/master.tar.gz",

flake.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
# Pre-fetched Zig dependencies (fixed-output derivation)
3131
# This hash must be updated when build.zig.zon changes
32-
zigDepsHash = "sha256-mJ7ZwPArxCphgYKZe5Y5y93Zm3Hsh0oLfophTgDe3F4=";
32+
zigDepsHash = "sha256-wbws7W8VYfb5gPyqXwr4N4MZV9phB505OH7UB8oIYUA=";
3333
in {
3434
# Packages for Garnix/Nix builds
3535
packages = forBuildSystems (buildSystem:

0 commit comments

Comments
 (0)