From 9289cfc2bdacc0e72df4d454ed1f9df566fd358f Mon Sep 17 00:00:00 2001 From: KristofferC Date: Wed, 27 Dec 2023 11:10:06 +0100 Subject: [PATCH] fix finding bundled stdlibs even if they are e.g. devved in an environment higher in the load path --- base/loading.jl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/base/loading.jl b/base/loading.jl index 81778d41893c0..2f80d62986b35 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -955,7 +955,13 @@ function explicit_manifest_entry_path(manifest_file::String, pkg::PkgId, entry:: return path end hash = get(entry, "git-tree-sha1", nothing)::Union{Nothing, String} - hash === nothing && return nothing + if hash === nothing + mbypath = manifest_uuid_path(Sys.STDLIB, pkg) + if mbypath isa String + return entry_path(mbypath, pkg.name) + end + return nothing + end hash = SHA1(hash) # Keep the 4 since it used to be the default uuid = pkg.uuid::UUID # checked within `explicit_manifest_uuid_path`