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 {
2929};
3030
3131pub fn collect_deps_deep(cachepath: string, mdir: std.fs.Dir, options: *CollectOptions) !zigmod.Module {
32 try std.fs.cwd().makePath(cachepath);
33
3234 const m = try zigmod.ModFile.from_dir(options.alloc, mdir);
3335 try options.init();
3436 var moduledeps = std.ArrayList(zigmod.Module).init(options.alloc);