JuliaLang / Pkg.jl

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

FR: public API for list of stdlibs #4081

Open fonsp opened 1 day ago

fonsp commented 1 day ago

Hi! 👋

It would be really nice to have public API to get the list of standard libraries. Currently this is a private function Pkg.Types.stdlibs(). Getting the list of former stdlibs would also be very useful, e.g. Pkg.stdlibs(; include_former=true).

KristofferC commented 1 day ago

Should not be a need to depend on a full package manager for this. Just because Pkg needs this information doesn't mean it should be the one providing it to others.

fonsp commented 1 day ago

I see, thanks! So should it be in Base, or in a new package?

KristofferC commented 1 day ago

You can just read the stdlib folder using Sys.STDLIB, or?