This commit is contained in:
Khitiara
2026-03-05 11:48:42 -05:00
committed by Andrew Kelley
parent aa2f318935
commit 30c8a75997
+1
View File
@@ -803,6 +803,7 @@ fn unpackInner(tar_bytes: []u8) !void {
if (std.mem.endsWith(u8, tar_file.name, ".zig")) {
log.debug("found file: '{s}'", .{tar_file.name});
const file_name = try gpa.dupe(u8, tar_file.name);
std.mem.replaceScalar(u8, file_name, '\\', '/');
if (std.mem.indexOfScalar(u8, file_name, '/')) |pkg_name_end| {
const pkg_name = file_name[0..pkg_name_end];
const gop = try Walk.modules.getOrPut(gpa, pkg_name);