| ... | @@ -26,12 +26,12 @@ pub const Module = struct { | ... | @@ -26,12 +26,12 @@ pub const Module = struct { |
| 26 | clean_path: string, | 26 | clean_path: string, |
| 27 | dep: ?zigmod.Dep, | 27 | dep: ?zigmod.Dep, |
| 28 | | 28 | |
| 29 | pub fn from(alloc: *std.mem.Allocator, dep: zigmod.Dep, dir: string, options: *common.CollectOptions) !Module { | 29 | pub fn from(alloc: *std.mem.Allocator, dep: zigmod.Dep, modpath: string, options: *common.CollectOptions) !Module { |
| 30 | var moddeps = std.ArrayList(Module).init(alloc); | 30 | var moddeps = std.ArrayList(Module).init(alloc); |
| 31 | defer moddeps.deinit(); | 31 | defer moddeps.deinit(); |
| 32 | | 32 | |
| 33 | for (dep.deps) |*d| { | 33 | for (dep.deps) |*d| { |
| 34 | if (try common.get_module_from_dep(d, dir, options)) |founddep| { | 34 | if (try common.get_module_from_dep(d, modpath, options)) |founddep| { |
| 35 | try moddeps.append(founddep); | 35 | try moddeps.append(founddep); |
| 36 | } | 36 | } |
| 37 | } | 37 | } |