authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-24 18:46:31 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-24 18:46:31 -08:00
loge3bc7fc544599b66c05313e69ca5df83dd98d7af
treec7cca9e9e3a80ee734f623b38add932188d40d61
parent1995ca2face963c0bc23cf2dfb7f1e8db1b26c9c

make sure cachepath exists, fixes #34


1 files changed, 2 insertions(+), 0 deletions(-)

src/common.zig+2
......@@ -61,6 +61,8 @@ pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectO
6161}
6262
6363pub fn collect_deps(cachepath: string, mdir: std.fs.Dir, options: *CollectOptions) anyerror!zigmod.Module {
64 try std.fs.cwd().makePath(cachepath);
65
6466 const m = try zigmod.ModFile.from_dir(options.alloc, mdir);
6567 var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc);
6668 defer moduledeps.deinit();