Skip to content

Commit f51eeca

Browse files
committed
Artifacts: use a different way of getting the UUID of a module (#55218)
(cherry picked from commit 59074fa)
1 parent b39fd85 commit f51eeca

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

stdlib/Artifacts/src/Artifacts.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -545,10 +545,10 @@ function jointail(dir, tail)
545545
end
546546

547547
function _artifact_str(__module__, artifacts_toml, name, path_tail, artifact_dict, hash, platform, @nospecialize(lazyartifacts))
548-
moduleroot = Base.moduleroot(__module__)
549-
if haskey(Base.module_keys, moduleroot)
548+
pkg = Base.PkgId(__module__)
549+
if pkg.uuid !== nothing
550550
# Process overrides for this UUID, if we know what it is
551-
process_overrides(artifact_dict, Base.module_keys[moduleroot].uuid)
551+
process_overrides(artifact_dict, pkg.uuid)
552552
end
553553

554554
# If the artifact exists, we're in the happy path and we can immediately

0 commit comments

Comments
 (0)