authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-11-15 23:11:41 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-11-15 23:11:41 -08:00
logc465724e52eb9e3b61637d6eba2119e3c8f42025
treecaedf79f1b6d3d9e5ca2eb39e2a2b6a11da309dd
parentfd01da118ba52286a4775b6f0b2cad5445a56ba9

fix `only_os`/etc regression, fixes #39


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

src/common.zig+1
...@@ -210,6 +210,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO...@@ -210,6 +210,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO
210 }210 }
211 }211 }
212 }212 }
213 if (!d.is_for_this()) return null;
213 const modpath = try get_modpath(cachepath, d.*, options);214 const modpath = try get_modpath(cachepath, d.*, options);
214 const moddir = if (std.mem.eql(u8, modpath, "files") or modpath.len == 0) try std.fs.cwd().openDir(cachepath, .{}) else try std.fs.cwd().openDir(modpath, .{});215 const moddir = if (std.mem.eql(u8, modpath, "files") or modpath.len == 0) try std.fs.cwd().openDir(cachepath, .{}) else try std.fs.cwd().openDir(modpath, .{});
215216