| ... | ... | @@ -10,17 +10,17 @@ const common = @import("./../common.zig"); |
| 10 | 10 | pub fn execute(args: [][]u8) !void { |
| 11 | 11 | _ = args; |
| 12 | 12 | |
| 13 | | const dir = try std.fs.path.join(gpa, &.{ ".zigmod", "deps" }); |
| 13 | const cachepath = try std.fs.path.join(gpa, &.{ ".zigmod", "deps" }); |
| 14 | 14 | |
| 15 | 15 | var options = common.CollectOptions{ |
| 16 | 16 | .log = true, |
| 17 | 17 | .update = false, |
| 18 | 18 | .lock = try common.parse_lockfile("zigmod.lock"), |
| 19 | 19 | }; |
| 20 | | const top_module = try common.collect_deps_deep(dir, "zig.mod", &options); |
| 20 | const top_module = try common.collect_deps_deep(cachepath, "zig.mod", &options); |
| 21 | 21 | |
| 22 | | const list = &std.ArrayList(u.Module).init(gpa); |
| 23 | | try common.collect_pkgs(top_module, list); |
| 22 | var list = std.ArrayList(u.Module).init(gpa); |
| 23 | try common.collect_pkgs(top_module, &list); |
| 24 | 24 | |
| 25 | | try @import("./fetch.zig").create_depszig(dir, top_module, list); |
| 25 | try @import("./fetch.zig").create_depszig(cachepath, top_module, &list); |
| 26 | 26 | } |