From 302a0d05239b6f094b521e0eebc94c94b37ec0c9 Mon Sep 17 00:00:00 2001 From: Valentin Churavy Date: Sun, 26 Feb 2023 07:01:21 -0500 Subject: [PATCH] Accept weakdeps as a source for UUIDS for Preferences --- base/loading.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/loading.jl b/base/loading.jl index 374f4ccbed4fb..8b104af41aec5 100644 --- a/base/loading.jl +++ b/base/loading.jl @@ -2494,7 +2494,7 @@ end # Test to see if this UUID is mentioned in this `Project.toml`; either as # the top-level UUID (e.g. that of the project itself), as a dependency, -# or as an extra for Preferences. +# or as an extra/weakdep for Preferences. function get_uuid_name(project::Dict{String, Any}, uuid::UUID) uuid_p = get(project, "uuid", nothing)::Union{Nothing, String} name = get(project, "name", nothing)::Union{Nothing, String} @@ -2509,7 +2509,7 @@ function get_uuid_name(project::Dict{String, Any}, uuid::UUID) end end end - for subkey in ("deps", "extras") + for subkey in ("deps", "extras", "weakdeps") subsection = get(project, subkey, nothing)::Union{Nothing, Dict{String, Any}} if subsection !== nothing for (k, v) in subsection