From 01a1310788b56bb3cfd855fab9ea989d9c36ee3a Mon Sep 17 00:00:00 2001 From: Meghan Date: Tue, 17 Nov 2020 23:15:11 -0800 Subject: [PATCH] fetch: move print statement up above all types --- src/cmd_fetch.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd_fetch.zig b/src/cmd_fetch.zig index cb7d15d39973ab403bdad1d6d54204d56777fd7e..bfb6bb4ffa63607b215487c1d7c681f5b04047bb 100644 --- a/src/cmd_fetch.zig +++ b/src/cmd_fetch.zig @@ -60,9 +60,9 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module { const moduledeps = &std.ArrayList(u.Module).init(gpa); for (m.deps) |d| { const p = try std.fmt.allocPrint(gpa, "{}{}{}", .{dir, "/", try d.clean_path()}); + u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path}); switch (d.type) { .git => { - u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path}); if (!try u.does_file_exist(p)) { try run_cmd(null, &[_][]const u8{"git", "clone", d.path, p}); } -- 2.54.0