With the old-style git clone registry, I could find the latest version of a package by reading the
Versions.toml file in the unpacked registry directory structure:
function latest_version(pkgname::AbstractString) path = joinpath(DEPOT_PATH, "registries", "General", first(pkgname,1), pkgname, "Versions.toml") return maximum(VersionNumber.(keys(Pkg.TOML.parse(read(path, String))))) end
How would I extract the latest version of a package from a
Is there an existing function for this? Do I need to unpack the registry first or can I read the tarball directly?