Skip to content

Commit 3265387

Browse files
authored
ensure package callbacks are invoked when no valid precompile file exists for an "auto loaded" stdlib (#54248)
The `_require` call skips the logic for running package callbacks (and extension triggers) so if Pkg is loaded in the startup file and then REPL failed to load from `_require_search_from_serialized` (and instead loaded via `_require`) the REPL extension from Pkg would not load.
1 parent 6023ad6 commit 3265387

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/loading.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2547,7 +2547,7 @@ function require_stdlib(uuidkey::PkgId, ext::Union{Nothing, String}=nothing)
25472547
run_package_callbacks(uuidkey)
25482548
else
25492549
# if the user deleted their bundled depot, next try to load it completely normally
2550-
newm = _require(uuidkey)
2550+
newm = _require_prelocked(uuidkey)
25512551
end
25522552
return newm
25532553
end

0 commit comments

Comments
 (0)