JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
621 stars 261 forks source link

Simplify Pkg.Registry APIs. #3785

Closed GunnarFarneback closed 7 months ago

GunnarFarneback commented 7 months ago

From https://github.com/JuliaLang/Pkg.jl/pull/1358#issue-490784060:

ideally this should be added for the Pkg.Registry module as well but that might be a later project...

Well, here it is.

This is done without metaprogramming since there are only three functions and the method for interpreting a vector of named tuples as a vector of RegistrySpec is not included, and I'm not sure it's worth adding it for the Registry functions.