From c22adc04994518e198d840ae5da9ebd89bb41451 Mon Sep 17 00:00:00 2001 From: Kristoffer Carlsson Date: Wed, 20 Sep 2023 14:08:52 +0200 Subject: [PATCH] call Pkg precompile hook in latest world (#51397) Fixes https://github.com/JuliaLang/julia/issues/51280. --- base/loading.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 7cfd80b130da3..5ebb5dc120282 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -1961,7 +1961,7 @@ function _require(pkg::PkgId, env=nothing) pkg_precompile_attempted = true unlock(require_lock) try - PKG_PRECOMPILE_HOOK[](pkg.name, _from_loading = true) + @invokelatest PKG_PRECOMPILE_HOOK[](pkg.name, _from_loading = true) finally lock(require_lock) end