| ... | ... | @@ -67,7 +67,10 @@ fn fetch_deps(dir: []const u8, mpath: []const u8) anyerror!u.Module { |
| 67 | 67 | const pv = try u.concat(&[_][]const u8{dir, "/v/", try d.clean_path(), "/", d.version}); |
| 68 | 68 | u.print("fetch: {}: {}: {}", .{m.name, @tagName(d.type), d.path}); |
| 69 | 69 | switch (d.type) { |
| 70 | | .git => { |
| 70 | .git => blk: { |
| 71 | if (try u.does_file_exist(pv)) { |
| 72 | break :blk; |
| 73 | } |
| 71 | 74 | if (!try u.does_file_exist(p)) { |
| 72 | 75 | _ = try run_cmd(null, &[_][]const u8{"git", "clone", d.path, p}); |
| 73 | 76 | } |