srctree

Ian Johnson parent 96bc8f17 129de47a
Fix first-time package fetches

Closes #19557Closes #19561

Previously, build.zig was not being detected correctly bycomputeHash for packages where there is a containing root directory.

inlinesplit
src/Package/Fetch.zig added: 2, removed: 2, total 0
@@ -1447,7 +1447,7 @@ fn computeHash(
)),
};
 
if (std.mem.eql(u8, entry.path, Package.build_zig_basename))
if (std.mem.eql(u8, entry_pkg_path, Package.build_zig_basename))
f.has_build_zig = true;
 
const fs_path = try arena.dupe(u8, entry.path);