From b5b02b04ca36f0c9c57b5370160a8360d5db8bfc Mon Sep 17 00:00:00 2001 From: Tom McLaughlin Date: Mon, 28 Nov 2022 23:01:13 -0700 Subject: [PATCH] Starting support for select_artifacts.jl --- extract_artifacts.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extract_artifacts.jl b/extract_artifacts.jl index ee3340d..8ebdeea 100755 --- a/extract_artifacts.jl +++ b/extract_artifacts.jl @@ -16,6 +16,15 @@ artifact_dict = Pkg.Artifacts.load_artifacts_toml(artifacts_toml) platform = platform_key_abi() +# Check for a select_artifacts.jl. +# See https://pkgdocs.julialang.org/v1/artifacts/#Extending-Platform-Selection +selectArtifactsJl = joinpath([built, ".pkg", "select_artifacts.jl"]) +if isfile(selectArtifactsJl) + include(selectArtifactsJl) + extraMetas = augment_platform!(platform) + # TODO: add these extra artifacts to artifact_dict so they get processed below +end + # It's possible for the artifacts to have multiple entries with the same sha1, # so group by that first sha1_to_meta = Dict{String, Vector{Tuple{String, Any}}}()