Skip to content

Commit 302a0d0

Browse files
vchuravypull[bot]
authored andcommitted
Accept weakdeps as a source for UUIDS for Preferences
1 parent 834dc26 commit 302a0d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/loading.jl

+2-2
Original file line numberDiff line numberDiff line change
@@ -2494,7 +2494,7 @@ end
24942494

24952495
# Test to see if this UUID is mentioned in this `Project.toml`; either as
24962496
# the top-level UUID (e.g. that of the project itself), as a dependency,
2497-
# or as an extra for Preferences.
2497+
# or as an extra/weakdep for Preferences.
24982498
function get_uuid_name(project::Dict{String, Any}, uuid::UUID)
24992499
uuid_p = get(project, "uuid", nothing)::Union{Nothing, String}
25002500
name = get(project, "name", nothing)::Union{Nothing, String}
@@ -2509,7 +2509,7 @@ function get_uuid_name(project::Dict{String, Any}, uuid::UUID)
25092509
end
25102510
end
25112511
end
2512-
for subkey in ("deps", "extras")
2512+
for subkey in ("deps", "extras", "weakdeps")
25132513
subsection = get(project, subkey, nothing)::Union{Nothing, Dict{String, Any}}
25142514
if subsection !== nothing
25152515
for (k, v) in subsection

0 commit comments

Comments
 (0)