| ... | ... | @@ -250,7 +250,7 @@ pub fn get_module_from_dep(d: *zigmod.Dep, cachepath: string, options: *CollectO |
| 250 | 250 | } |
| 251 | 251 | const moddirO = try std.fs.cwd().openDir(modpath, .{}); |
| 252 | 252 | const tryname = try u.detect_pkgname(options.alloc, d.name, modpath); |
| 253 | | const trymain = u.detct_mainfile(options.alloc, d.main, moddirO, tryname) catch |err| switch (err) { |
| 253 | const trymain: ?string = u.detct_mainfile(options.alloc, d.main, moddirO, tryname) catch |err| switch (err) { |
| 254 | 254 | error.CantFindMain => null, |
| 255 | 255 | else => |ee| return ee, |
| 256 | 256 | }; |