From ca58bba37eb761ba7fde415a2b0bee48dc392e7d Mon Sep 17 00:00:00 2001 From: Ian Butterworth Date: Wed, 11 Sep 2024 14:03:41 -0400 Subject: [PATCH] improve comments --- src/LazyArtifacts.jl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/LazyArtifacts.jl b/src/LazyArtifacts.jl index 9de45a8..eb9c5f7 100644 --- a/src/LazyArtifacts.jl +++ b/src/LazyArtifacts.jl @@ -13,9 +13,7 @@ using Base.BinaryPlatforms: AbstractPlatform, HostPlatform using Base: SHA1 # We are mimicking Pkg.Artifacts.ensure_artifact_installed here so that we can -# check if the artifact is already installed before loading Pkg. -# Then if we need to load Pkg we do it in a subprocess to avoid precompilation -# complexity. +# check if the artifact is already installed before loading Pkg, then load if needed. """ ensure_artifact_installed(name::String, artifacts_toml::String; @@ -54,7 +52,7 @@ function ensure_artifact_installed(name::String, meta::Dict, artifacts_toml::Str if !artifact_exists(hash) # loading Pkg is a bit slow, so we only do it if we need to if Base.generating_output() - # if precompiling load and use Pkg in a subprocess to avoid precompilation complexity + # if precompiling, load and use Pkg in a subprocess to avoid precompilation complexity code = """ Pkg = Base.require_stdlib($pkg_pkgid); Pkg.Artifacts.try_artifact_download_sources(