Skip to content

Commit 1050785

Browse files
DraagrenKirnehandrewrk
authored andcommitted
fix missing insertion of module to all_modules on first download
1 parent 5c6f111 commit 1050785

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Package.zig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,7 @@ fn fetchAndUnpack(
582582
});
583583

584584
const mod = try createWithDir(gpa, global_cache_directory, pkg_dir_sub_path, build_zig_basename);
585+
try all_modules.put(gpa, actual_hex, mod);
585586
return .{
586587
.mod = mod,
587588
.found_existing = false,

0 commit comments

Comments
 (0)