authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-24 19:21:27 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-24 19:21:27 -08:00
log58ea4175f98b725c22eac691a41c0b03f9dcdebb
tree98117eb56c6f8f0b8f6064a27bc0debebc21b05d
parent871fced6184a0b08d52532c20554008e46b27834

fix for root_files too, cc #34


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

src/common.zig+2
...@@ -29,6 +29,8 @@ pub const CollectOptions = struct {...@@ -29,6 +29,8 @@ pub const CollectOptions = struct {
29};29};
3030
31pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectOptions) !zigmod.Module {31pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectOptions) !zigmod.Module {
32 try std.fs.cwd().makePath(cachepath);
33
32 const m = try zigmod.ModFile.from_dir(options.alloc, mdir);34 const m = try zigmod.ModFile.from_dir(options.alloc, mdir);
33 try options.init();35 try options.init();
34 var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc);36 var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc);