@@ -562,7 +562,7 @@ function _artifact_str(__module__, artifacts_toml, name, path_tail, artifact_dic
562562 meta = artifact_meta (name, artifact_dict, artifacts_toml; platform)
563563 if meta != = nothing && get (meta, " lazy" , false )
564564 if LazyArtifacts isa Module && isdefined (LazyArtifacts, :ensure_artifact_installed )
565- if nameof (LazyArtifacts) in (:Pkg , :Artifacts )
565+ if nameof (LazyArtifacts) in (:Pkg , :Artifacts , :PkgArtifacts )
566566 Base. depwarn (" using Pkg instead of using LazyArtifacts is deprecated" , :var"@artifact_str" , force= true )
567567 end
568568 return jointail (LazyArtifacts. ensure_artifact_installed (string (name), meta, artifacts_toml; platform), path_tail)
@@ -697,7 +697,7 @@ macro artifact_str(name, platform=nothing)
697697 # Check if the user has provided `LazyArtifacts`, and thus supports lazy artifacts
698698 # If not, check to see if `Pkg` or `Pkg.Artifacts` has been imported.
699699 LazyArtifacts = nothing
700- for module_name in (:LazyArtifacts , :Pkg , :Artifacts )
700+ for module_name in (:LazyArtifacts , :Pkg , :Artifacts , :PkgArtifacts )
701701 if isdefined (__module__, module_name)
702702 LazyArtifacts = GlobalRef (__module__, module_name)
703703 break
0 commit comments