authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 02:19:23 -08:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-12-02 02:19:23 -08:00
logdf9cbb33a9e539c9075751edefb51453fde9d6fd
tree93393e89e7c967a1ab42490ffdf2bedf059f54c5
parent59348111497cce95db695dd8c4aafe73affc5c8c

common/get_module_from_dep- was passing the wrong value to Module.from


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

src/common.zig+1-1
......@@ -235,7 +235,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO
235235 var dd = try collect_deps(cachepath, moddir, options) catch |e| switch (e) {
236236 error.FileNotFound => {
237237 if (d.main.len > 0 or d.c_include_dirs.len > 0 or d.c_source_files.len > 0 or d.keep) {
238 var mod_from = try zigmod.Module.from(options.alloc, d.*, cachepath, options);
238 var mod_from = try zigmod.Module.from(options.alloc, d.*, modpath, options);
239239 if (d.type != .local) mod_from.clean_path = u.trim_prefix(modpath, cachepath)[1..];
240240 if (mod_from.is_for_this()) return mod_from;
241241 return null;