Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix lookup of stdlibs on Julia v1.8 #43

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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