Skip to content

Add repology version links to the MetaCPAN distribution and module sidebars #2874

Open
@ferki

Description

@ferki

Describe the feature

I propose displaying a link the version page link on repology (for example Rex versions) for CPAN distributions and modules (in their sidebars).

Which problem does it solve?

As a CPAN author, it is useful to check the version (and sometimes the history) pages from repology for things like:

  • if a downstream distribution lagging behind on packaging, then the author may reach out to the package maintainers directly to lend a hand and ask for feedback (or even find distro-specific patches to merge upstream!)

  • when choosing a new dependency for their projects, they can check its packaging status across various downstream distributions to judge how much extra effort it might impose on downstream packagers (depending on availability, current versions, etc.)

The latter sounds helpful for the consumers of CPAN distributions as well (not just their authors), to decide between candidates for new dependencies.

Expected behavior

  1. A link in the dist sidebar on MetaCPAN to the given distributions's version page on repology.
  2. A link in the module sidebar on MetaCPAN to the same.

Volunteering

I would love to, though I have to admit I have no clue about where to even start.

The only reference I've seen to repology in this repo is a single

<a href="[% $author.links.repology %]">Repology</a>

line, and I have no idea where exactly I should start in order to add similar functionality.

I would be up to a pair programming session with someone more knowledgeable about the project as part of my open source office hours to both implement this and as a learning opportunity for myself.

Given detailed guidance on the major steps for this change, I can also try to follow that on my own (for example (go to this repo, add a test here, change these two files to include the links, generate link in this other file, etc.).

Additional context

This issue is a follow-up from the original reddit thread.

In general, Perl distribution names seem to be converted to lowercase and then prefixed with perl: on repology. The prefix is not always added on repology, so it might be either something to fix there, or requires understanding of the exact mapping logic from there.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions