Skip to content

Commit

Permalink
Update downstream_test.jl
Browse files Browse the repository at this point in the history
scoping
  • Loading branch information
wheeheee authored Nov 1, 2023
1 parent 3806082 commit 7dfb96e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/downstream_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7dfb96e

Please sign in to comment.