| ... | @@ -61,6 +61,8 @@ pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectO | ... | @@ -61,6 +61,8 @@ pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectO |
| 61 | } | 61 | } |
| 62 | | 62 | |
| 63 | pub fn collect_deps(cachepath: string, mdir: std.fs.Dir, options: *CollectOptions) anyerror!zigmod.Module { | 63 | pub fn collect_deps(cachepath: string, mdir: std.fs.Dir, options: *CollectOptions) anyerror!zigmod.Module { |
| | 64 | try std.fs.cwd().makePath(cachepath); |
| | 65 | |
| 64 | const m = try zigmod.ModFile.from_dir(options.alloc, mdir); | 66 | const m = try zigmod.ModFile.from_dir(options.alloc, mdir); |
| 65 | var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc); | 67 | var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc); |
| 66 | defer moduledeps.deinit(); | 68 | defer moduledeps.deinit(); |