pause icon indicating copy to clipboard operation
pause copied to clipboard

indexing error if package name is changed v.v. upper/lowercase name

Open markwilkinson opened this issue 9 years ago • 1 comments

What I believe I did:

1: uploaded the gz of my modules to Pause 2: decided to change the modulename, where the difference was only to switch to 'studlycaps' 3: uploaded the next release to Pause

result is below:

User: MARKW (Mark D Wilkinson) Distribution file: FAIR-Data-0.3.tar.gz Number of files: 51 *.pm files: 11 README: FAIR-Data-0.3/README META-File: FAIR-Data-0.3/META.yml META-Parser: Parse::CPAN::Meta 1.4414 META-driven index: no Timestamp of file: Wed Feb 17 08:40:23 2016 UTC Time of this run: Wed Feb 17 08:42:04 2016 UTC

Status of this distro: Permission missing

The following packages (grouped by status) have been found in the distro:

Status: Permission missing

 module : FAIR::Profile::SerializableProperty
 version: 0.3
 in file: FAIR-Data-0.3/lib/FAIR/Profile/SerializableProperty.pm
 status : Not indexed because of case mismatch.

Status: Successfully indexed

 module : FAIR::Accessor
 version: 0.3
 in file: FAIR-Data-0.3/lib/FAIR/Accessor.pm
 status : indexed

 module : FAIR::AccessorBase
 version: 0.3
 in file: FAIR-Data-0.3/lib/FAIR/AccessorBase.pm
 status : indexed

... ... ... ...

markwilkinson avatar Feb 18 '16 11:02 markwilkinson

This behavior was originally an implementation detail, but was intentionally left in place before being deployed, as a means to discourage changing case, because it breaks prerequisite chains.

That is, if you release AwesomeThing and people depend on it, but then later you "rename" it to Awesomething, the case change will cause their prereqs to fail to resolve.

rjbs avatar Mar 05 '16 23:03 rjbs