From e38052663ca729764c1de7d5f28794d4509d8b79 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 13 Sep 2026 18:26:52 -0700 Subject: [PATCH] std.Build.Cache: fix writing digest to wrong place --- lib/std/Build/Cache.zig | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/std/Build/Cache.zig b/lib/std/Build/Cache.zig index 354a4261620bf1d0041eb2a0088bb399665f8e04..799e2900450689ff3f8534a4345d1b33be8a069e 100644 --- a/lib/std/Build/Cache.zig +++ b/lib/std/Build/Cache.zig @@ -914,9 +914,8 @@ pub const Manifest = struct { m.hash.hasher = hasher_init; m.hash.hasher.update(input_digest); - for (m.files.keys(), 0..) |off, i| { + for (m.files.keys()) |off| { const file = off.get(contents); - log.warn("hashing {d} {s} = {x}", .{ i, off.path(contents), &file.digest }); m.hash.hasher.update(&file.digest); } } @@ -1395,7 +1394,7 @@ pub const Manifest = struct { switch (input_path.contents.unwrap()) { .requested => { const start = m.all_input_content.items.len; - hashFileAppend(io, opened_file, &input_file.digest, &m.all_input_content, gpa) catch |err| switch (err) { + hashFileAppend(io, opened_file, &disk_file.digest, &m.all_input_content, gpa) catch |err| switch (err) { error.Canceled, error.OutOfMemory => |e| return e, else => |e| return fail(&m.diagnostic, .{ .file_read = .{ .file_offset = file_off, -- 2.54.0