Skip to content

Commit 80d2e75

Browse files
authored
Export PkgArtifacts from itself under the name Artifacts for compat (#4230)
1 parent 244b421 commit 80d2e75

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Artifacts.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import Artifacts: artifact_names, ARTIFACTS_DIR_OVERRIDE, ARTIFACT_OVERRIDES, ar
1414
query_override, with_artifacts_directory, load_overrides
1515
import ..Types: write_env_usage, parse_toml
1616

17-
18-
export create_artifact, artifact_exists, artifact_path, remove_artifact, verify_artifact,
17+
const Artifacts = PkgArtifacts # This is to preserve compatability for folks who depend on the internals of this module
18+
export Artifacts, create_artifact, artifact_exists, artifact_path, remove_artifact, verify_artifact,
1919
artifact_meta, artifact_hash, bind_artifact!, unbind_artifact!, download_artifact,
2020
find_artifacts_toml, ensure_artifact_installed, @artifact_str, archive_artifact,
2121
select_downloadable_artifacts, ArtifactDownloadInfo
@@ -328,7 +328,7 @@ function download_artifact(
328328
io::IO=stderr_f(),
329329
progress::Union{Function, Nothing} = nothing,
330330
)
331-
_artifact_paths = Artifacts.artifact_paths(tree_hash)
331+
_artifact_paths = artifact_paths(tree_hash)
332332
pidfile = _artifact_paths[1] * ".pid"
333333
mkpath(dirname(pidfile))
334334
t_wait_msg = Timer(2) do t

0 commit comments

Comments
 (0)