authorgravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-17 23:15:11 -08:00
committergravatar for hello@nektro.netMeghan <hello@nektro.net> 2020-11-17 23:15:11 -08:00
log01a1310788b56bb3cfd855fab9ea989d9c36ee3a
tree121a8118bf68c82746a0c65f84c72ea6ed86fd76
parent1788561fa7d3570b07e06b4cb52bacd2d5e120f6

fetch: move print statement up above all types


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

src/cmd_fetch.zig+1-1
...@@ -60,9 +60,9 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {...@@ -60,9 +60,9 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module {
60 const moduledeps = &std.ArrayList(u.Module).init(gpa);60 const moduledeps = &std.ArrayList(u.Module).init(gpa);
61 for (m.deps) |d| {61 for (m.deps) |d| {
62 const p = try std.fmt.allocPrint(gpa, "{}{}{}", .{dir, "/", try d.clean_path()});62 const p = try std.fmt.allocPrint(gpa, "{}{}{}", .{dir, "/", try d.clean_path()});
63 u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path});
63 switch (d.type) {64 switch (d.type) {
64 .git => {65 .git => {
65 u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path});
66 if (!try u.does_file_exist(p)) {66 if (!try u.does_file_exist(p)) {
67 try run_cmd(null, &[_][]const u8{"git", "clone", d.path, p});67 try run_cmd(null, &[_][]const u8{"git", "clone", d.path, p});
68 }68 }