Skip to content

'module' entry reports wrong module #534

Open
@xsawyerx

Description

@xsawyerx

The way the module endpoint works is wrong, probably because of the underlying structure treating modules as files. Instead of giving you the definite and authoritative module, it gives you a result of a module it finds[1].

Example:
https://v1.metacpan.org/module/warnings

This leads to Apache::Test instead of warnings.

You can see it here as well:

$ perl -MMetaCPAN::Client -E'say MetaCPAN::Client->new->module("warnings")->distribution'
Apache-Test

[1] I don't know if it's the first it finds, the first it indexed, or what other metric it uses to pick one out of many.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions