Skip to content

Conversation

@danielmatz
Copy link

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.

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 `UUID`s to `String`s, which are just the package
names. As of Julia v1.8, `Pkg.Types.stdlibs()` returns a dictionary
mapping `UUID`s 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 JuliaEcosystem#41.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Method of looking up stdlibs fails on Julia 1.8

1 participant