Skip to content

Commit 129de47

Browse files
ianprime0509kubkon
authored andcommitted
Fix first-time package fetches
Closes #19557 Closes #19561 Previously, `build.zig` was not being detected correctly by `computeHash` for packages where there is a containing root directory.
1 parent 96bc8f1 commit 129de47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Package/Fetch.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1447,7 +1447,7 @@ fn computeHash(
14471447
)),
14481448
};
14491449

1450-
if (std.mem.eql(u8, entry.path, Package.build_zig_basename))
1450+
if (std.mem.eql(u8, entry_pkg_path, Package.build_zig_basename))
14511451
f.has_build_zig = true;
14521452

14531453
const fs_path = try arena.dupe(u8, entry.path);

0 commit comments

Comments
 (0)