Skip to content

Commit

Permalink
Merge pull request #535 from wheeheee/patch-1
Browse files Browse the repository at this point in the history
Update downstream_test.jl
  • Loading branch information
jheinen authored Nov 1, 2023
2 parents ed45662 + 7dfb96e commit 9f4a04e
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions test/downstream_test.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,17 @@ Plots_jl = joinpath(mkpath(tempname()), "Plots.jl")
Plots_toml = joinpath(Plots_jl, "Project.toml")

# clone and checkout the latest stable version of Plots
depot = joinpath(first(DEPOT_PATH), "registries", "General", "P", "Plots", "Versions.toml")
stable = maximum(VersionNumber.(keys(TOML.parse(read(depot, String)))))
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
maximum(keys(Plots_version_info))
catch
depot = joinpath(first(DEPOT_PATH), "registries", "General", "P", "Plots", "Versions.toml")
maximum(VersionNumber.(keys(TOML.parse(read(depot, String)))))
end

for i 1:6
try
global repo = Pkg.GitTools.ensure_clone(stdout, Plots_jl, "https://github.com/JuliaPlots/Plots.jl")
Expand Down

0 comments on commit 9f4a04e

Please sign in to comment.