Skip to content

Mirror a gem's platform builds through its artifacts #731

Closed

Description

@andrew

git-pkgs/registries#147 changes the RubyGems adapter's FetchVersions to list one version per number. Each platform build becomes an artifact with platform in its metadata, instead of a separate version such as 1.13.6-x86_64-linux.

When proxy bumps registries past that change, proxy mirror pkg:gem/nokogiri lists only 1.13.6. The generic path in internal/mirror/versions.go fetches that version through the built URL, so it gets nokogiri-1.13.6.gem and skips the platform builds it used to mirror.

Adding gem to fileEcosystems in internal/mirror/files.go would mirror each build from Version.Artifacts, with the platform qualifier selecting among them, the way conda's subdir does. That entry needs cacheKey to match how the gem handler caches a platform file, and variants/cachedVariants keyed on platform so a refresh mirrors the same platforms of a new version. This should land in the same change as the registries bump.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions