| ... | ... | @@ -63,7 +63,7 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module { |
| 63 | 63 | const m = try u.ModFile.init(gpa, mpath); |
| 64 | 64 | const moduledeps = &std.ArrayList(u.Module).init(gpa); |
| 65 | 65 | for (m.deps) |d| { |
| 66 | | const p = try std.fmt.allocPrint(gpa, "{}{}{}", .{dir, "/", try d.clean_path()}); |
| 66 | const p = try u.concat(&[_][]const u8{dir, "/", try d.clean_path()}); |
| 67 | 67 | u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path}); |
| 68 | 68 | switch (d.type) { |
| 69 | 69 | .git => { |
| ... | ... | @@ -92,7 +92,7 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module { |
| 92 | 92 | } |
| 93 | 93 | break; |
| 94 | 94 | } |
| 95 | | var dd = try fetch_deps(dir, try std.fmt.allocPrint(gpa, "{}{}", .{p, "/zig.mod"})); |
| 95 | var dd = try fetch_deps(dir, try u.concat(&[_][]const u8{p, "/zig.mod"})); |
| 96 | 96 | dd.clean_path = try d.clean_path(); |
| 97 | 97 | |
| 98 | 98 | if (d.name.len > 0) dd.name = d.name; |