From 7dfb96e852f34672c5fbb3e7515ed83dfedb60e7 Mon Sep 17 00:00:00 2001 From: wheeheee <104880306+wheeheee@users.noreply.github.com> Date: Wed, 1 Nov 2023 21:12:21 +0800 Subject: [PATCH] Update downstream_test.jl scoping --- test/downstream_test.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/downstream_test.jl b/test/downstream_test.jl index a800a90..23da99b 100644 --- a/test/downstream_test.jl +++ b/test/downstream_test.jl @@ -7,15 +7,15 @@ Plots_jl = joinpath(mkpath(tempname()), "Plots.jl") Plots_toml = joinpath(Plots_jl, "Project.toml") # clone and checkout the latest stable version of Plots -try +stable = try rg = first(Pkg.Registry.reachable_registries()) Plots_UUID = first(Pkg.Registry.uuids_from_name(rg, "Plots")) Plots_PkgEntry = rg.pkgs[Plots_UUID] Plots_version_info = Pkg.Registry.registry_info(Plots_PkgEntry).version_info - stable = maximum(keys(Plots_version_info)) + maximum(keys(Plots_version_info)) catch depot = joinpath(first(DEPOT_PATH), "registries", "General", "P", "Plots", "Versions.toml") - stable = maximum(VersionNumber.(keys(TOML.parse(read(depot, String))))) + maximum(VersionNumber.(keys(TOML.parse(read(depot, String))))) end for i ∈ 1:6