authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-20 13:05:37 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-20 13:05:37 -08:00
log51fde24c3fabeddb5a5de40ffe2b269c1e53383e
tree1f5c9d9016b358db540d939aac13838d5dade30d
parent6b900c97b80d9c419b2b6a1ff59ea71fc5200adc

use concat in more places


1 files changed, 2 insertions(+), 2 deletions(-)

src/cmd_fetch.zig+2-2
......@@ -63,7 +63,7 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {
6363 const m = try u.ModFile.init(gpa, mpath);
6464 const moduledeps = &std.ArrayList(u.Module).init(gpa);
6565 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()});
6767 u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path});
6868 switch (d.type) {
6969 .git => {
......@@ -92,7 +92,7 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {
9292 }
9393 break;
9494 }
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"}));
9696 dd.clean_path = try d.clean_path();
9797
9898 if (d.name.len > 0) dd.name = d.name;