| ... | ... | @@ -235,7 +235,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO |
| 235 | 235 | var dd = try collect_deps(cachepath, moddir, options) catch |e| switch (e) { |
| 236 | 236 | error.FileNotFound => { |
| 237 | 237 | 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); |
| 239 | 239 | if (d.type != .local) mod_from.clean_path = u.trim_prefix(modpath, cachepath)[1..]; |
| 240 | 240 | if (mod_from.is_for_this()) return mod_from; |
| 241 | 241 | return null; |