JuliaEcosystem / PkgDeps.jl

More insights about your packages dependencies
MIT License
23 stars 6 forks source link

Fix lookup of stdlibs on Julia v1.8 #43

Open danielmatz opened 1 year ago

danielmatz commented 1 year ago

With Julia v1.8, there were Pkg API changes that caused this package to break. In particular, our method of determining whether a package is part of the standard library now fails.

With older versions of Julia, Pkg.Types.stdlibs() returns a dictionary mapping UUIDs to Strings, which are just the package names. As of Julia v1.8, Pkg.Types.stdlibs() returns a dictionary mapping UUIDs to Tuple{String, Union{Nothing, VersionNumber}}.

This commit reworks the dictionary returned by Pkg.Types.stdlibs() for Julia v1.8 and later, so that the rest of the existing code in this package will work without modification.

Fixes #41.