Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion src/PkgDeps.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,16 @@ const GENERAL_REGISTRY = "General"

# borrowed from <https://github.com/JuliaRegistries/RegistryTools.jl/blob/77cae9ef6a075e1d6ec1592bc3e166234d3f01c8/src/builtin_pkgs.jl>
const stdlibs = isdefined(Pkg.Types, :stdlib) ? Pkg.Types.stdlib : Pkg.Types.stdlibs
const STDLIBS = stdlibs()
const STDLIBS = @static if VERSION >= v"1.8"
# As of v1.8, the dictionary that we get from Pkg maps the UUID of
# each standard library package to a (name, version) tuple.
Dict(uuid => name
for (uuid, (name, _)) in stdlibs())
else
# In earlier versions, the dictionary maps the UUID of each
# standard library package to its name.
stdlibs()
end


"""
Expand Down