Skip to content

Commit

Permalink
ensure package callbacks are invoked when no valid precompile file ex…
Browse files Browse the repository at this point in the history
…ists 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.

(cherry picked from commit 3265387)
  • Loading branch information
KristofferC committed May 6, 2024
1 parent 1c25c49 commit 6fc6eb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base/loading.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2499,7 +2499,7 @@ function require_stdlib(uuidkey::PkgId, ext::Union{Nothing, String}=nothing)
run_package_callbacks(uuidkey)
else
# if the user deleted their bundled depot, next try to load it completely normally
newm = _require(uuidkey)
newm = _require_prelocked(uuidkey)
end
return newm
end
Expand Down

0 comments on commit 6fc6eb0

Please sign in to comment.