fix missing insertion of module to all_modules on first download

This commit is contained in:
DraagrenKirneh 2023-05-30 14:13:06 +02:00 committed by Andrew Kelley
parent 5c6f111379
commit 105078519a

View file

@ -582,6 +582,7 @@ fn fetchAndUnpack(
});
const mod = try createWithDir(gpa, global_cache_directory, pkg_dir_sub_path, build_zig_basename);
try all_modules.put(gpa, actual_hex, mod);
return .{
.mod = mod,
.found_existing = false,