From 6b2ac854f6578feed5f76c609f4190e46e1eec14 Mon Sep 17 00:00:00 2001 From: Dilum Aluthge Date: Thu, 12 Dec 2024 08:37:28 -0500 Subject: [PATCH] The issue with stdlib versions being fixed to 0.0.0 has been fixed in new versions of Julia --- test/runtests.jl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index cf47ac87..6fcede38 100755 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,7 +1,12 @@ -# The next two lines added as a workaround to -# https://github.com/JuliaLang/Pkg.jl/issues/3628 (Julia 1.6): import Pkg -Pkg.add(name="Statistics", version=VERSION) + +if Base.VERSION >= v"1.10-" + # The issue with stdlib versions being fixed to 0.0.0 has been fixed in new versions of Julia +else + # The next line added as a workaround to + # https://github.com/JuliaLang/Pkg.jl/issues/3628 (Julia 1.6): + Pkg.add(name="Statistics", version=VERSION, uuid="10745b16-79ce-11e8-11f9-7d13ad32a3b2") +end using Test, MLJModels