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

Use the RegistryInstances package #42

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

Conversation

danielmatz
Copy link

The Pkg API often changes with each Julia release. Some of the capability of Pkg had been duplicated in this package, but it lacked some of the new capabilities of Pkg. With this change, we now leverage RegistryInstances, which makes it easier for us to support multiple versions of Julia.

There are a few differences between the old implementation that was in this package and the implementation provided by RegistryInstances:

  • The old RegistryInstance had a pkgs field containing a dictionary mapping package names to PkgEntrys. The RegistryInstances version of RegistryInstance has a pkgs field, too, but it is a dictionary mapping UUIDs to PkgEntrys.
  • The old PkgEntry had a repo field. The RegistryInstances version does not. Instead, it has a lazily initialized info field, which should be accessed using RegistryInstances.registry_info.

Another benefit of using RegistryInstances is that it supports both uncompressed registries as well as registries stored in compressed tarballs. Thus, this fixes #37.

The Pkg API often changes with each Julia release. Some of the
capability of Pkg had been duplicated in this package, but it lacked
some of the new capabilities of Pkg. With this change, we now leverage
RegistryInstances, which makes it easier for us to support multiple
versions of Julia.

There are a few differences between the old implementation that was in
this package and the implementation provided by RegistryInstances:
- The old `RegistryInstance` had a `pkgs` field containing a
dictionary mapping package names to `PkgEntry`s. The RegistryInstances
version of `RegistryInstance` has a `pkgs` field, too, but it is a
dictionary mapping `UUID`s to `PkgEntry`s.
- The old `PkgEntry` had a `repo` field. The RegistryInstances
version does not. Instead, it has a lazily initialized `info` field,
which should be accessed using `RegistryInstances.registry_info`.

Another benefit of using RegistryInstances is that it supports both
uncompressed registries as well as registries stored in compressed
tarballs. Thus, this fixes JuliaEcosystem#37.
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.

reachable_registries doesn't find the General registry
1 participant