From 1407918c5ccd1ad185a946bb1b12a33af3719d24 Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Wed, 5 Jun 2024 12:29:30 -0400 Subject: [PATCH] fix require_stdlib fast path for loaded exts Revert "fix require_stdlib fast path for loaded exts" This reverts commit b4d38843db427543b833eca47006deb6d9b40758. Update loading.jl --- base/loading.jl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/base/loading.jl b/base/loading.jl index 0c537f8fc9a5f0..d1ca71f43a7b2c 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2504,6 +2504,9 @@ end function require_stdlib(uuidkey::PkgId, ext::Union{Nothing, String}=nothing) @lock require_lock begin if root_module_exists(uuidkey) + if ext isa String + uuidkey = PkgId(uuid5(uuidkey.uuid, ext), ext) + end return loaded_modules[uuidkey] end # first since this is a stdlib, try to look there directly first