Skip to content

Distribution name should be treated case insensitively #1107

Open
@neilb

Description

@neilb

If someone changes the case of a module, and that module is used as the basis of the distribution name, then PAUSE handles it largely correctly. MetaCPAN will treat them as different distributions:

Screenshot 2023-05-11 at 12 03 53

I first released this with the module called Acme::NameChangeTest. This resulted in this line in 06perms.txt:

Acme::NameChangeTest,NEILB,f

And in 02packages.details.txt:

Acme::NameChangeTest              undef  N/NE/NEILB/Acme-NameChangeTest-0.003.tar.gz

I then changed it to Acme::NameChangeTEST, and those two entries became:

Acme::NameChangeTEST,NEILB,f
Acme::NameChangeTEST              undef  N/NE/NEILB/Acme-NameChangeTEST-0.004.tar.gz

I came across this while working on sorting out historical problems with changes of case. Historical cases like this resulted in multiple entries in the CPAN Index, but PAUSE doesn't do that now.

Guessing you're using CPAN::DistnameInfo to pull the dist name from the filename, but not then canonicalising the name.

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