Skip to content

Commit 0cbf731

Browse files
committed
fixup! Propagate preferences to .pkg/select_artifacts.jl
1 parent afac92a commit 0cbf731

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/artifacts.jl

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,13 @@ import Pkg.Artifacts: pack_platform!, unpack_platform, with_artifacts_directory,
66
using TOML, Dates
77
import Base: SHA1
88

9+
# Order-dependence in the tests, so we delay this until we need it
10+
if Base.find_package("Preferences") === nothing
11+
@info "Installing Preferences for Pkg tests"
12+
Pkg.add("Preferences") # Needed for sandbox and artifacts tests
13+
end
14+
using Preferences
15+
916
using ..Utils
1017

1118
# Helper function to create an artifact, then chmod() the whole thing to 0o644. This is
@@ -310,7 +317,6 @@ end
310317
end
311318
end
312319

313-
using Preferences
314320
@testset "Artifact Usage" begin
315321
# Don't use `temp_pkg_dir()` here because we need `Pkg.test()` to run in the
316322
# same package context as the one we're running in right now. Yes, this pollutes

0 commit comments

Comments
 (0)