| ... | ... | @@ -209,7 +209,7 @@ pub fn get_module_from_dep(d: *u.Dep, cachepath: []const u8, parent_name: []cons |
| 209 | 209 | } |
| 210 | 210 | } |
| 211 | 211 | const modpath = try get_modpath(cachepath, d.*, parent_name, options); |
| 212 | | const moddir = try std.fs.cwd().openDir(modpath, .{}); |
| 212 | 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, .{}); |
| 213 | 213 | |
| 214 | 214 | const nocache = d.type == .local or d.type == .system_lib; |
| 215 | 215 | if (!nocache) try options.already_fetched.append(modpath); |
| ... | ... | @@ -269,6 +269,7 @@ pub fn get_module_from_dep(d: *u.Dep, cachepath: []const u8, parent_name: []cons |
| 269 | 269 | if (d.only_os.len > 0) dd.only_os = d.only_os; |
| 270 | 270 | if (d.except_os.len > 0) dd.except_os = d.except_os; |
| 271 | 271 | if (d.type == .local) dd.main = try std.fs.path.join(gpa, &.{ d.main, save.main }); |
| 272 | if (std.mem.eql(u8, modpath, "files")) dd.clean_path = modpath; |
| 272 | 273 | if (dd.is_for_this()) return dd; |
| 273 | 274 | return null; |
| 274 | 275 | }, |