From 1497cf19f852a5b38bc3e2f3641a81a077ba8a32 Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Tue, 10 Nov 2026 11:30:01 -0300 Subject: zstbi: upstream's main, the fork pinned before being gone: Pivok7/zstbi (zig-gamedev/zstbi PR #16, the Zig 0.17 port the manifest waited on) is deleted and a fresh checkout could not fetch it, while upstream has since ported itself (6b9bea1f); its init takes no Io and can fail, and its resize can fail, so TerminalImages.start takes the allocator alone (a start refused leaves PNGs refused, as before one) and a resize that fails is an undecodable PNG; host_io.startWorkers and tape.replayMain lose the Io they only handed on; build.zig's patch of zstbi.c applies unchanged (the file is the same); test: kitty: a PNG longer than 1280 pixels on a side is kept at 1280 (the one path through zstbi, which no case walked: a 1300-pixel one-bit PNG built in the test, its row stored); kitty-test 45 of 45; the changelog says so --- build.zig.zon | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'build.zig.zon') diff --git a/build.zig.zon b/build.zig.zon index 360adbd9..6e0dc973 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -39,11 +39,11 @@ .hash = "uucode-0.2.0-ZZjBPoGFVgCiflJNFc6Io8xzC67B6PA5bUkk4LT0kCxg", .lazy = true, }, - // Pivok7's fork: zig-gamedev/zstbi PR #16, "Upgrade to zig 0.17.0" - // (two lines of build.zig). Back to upstream once it is merged. + // Upstream's main, which builds with Zig 0.17 since its own update + // (the fork pinned before, Pivok7's PR #16, is deleted). .zstbi = .{ - .url = "git+https://github.com/Pivok7/zstbi#bc96f28d341f9c7fb9cbc5dc65aa4c5cf0c8f007", - .hash = "zstbi-0.11.0-dev-L0Ea_3GWBwCpNHVwGU4MPR_oDd0FoQOYNrGodwvJ6Z45", + .url = "git+https://github.com/zig-gamedev/zstbi#6b9bea1fd13eb7c8299f23605b4c6b04fccd9aa7", + .hash = "zstbi-0.11.0-dev-L0Ea_wGXBwCvXIzUWRNZe-6FpofI_nz4uAOQ4O0Fuxko", .lazy = true, }, // SDL3 (castholm/SDL zig bindings, its release-3.4.x branch for Zig -- cgit v1.3