Perl-Toolchain-Gang / Perl-Toolchain-Gang/Module-Metadata
Module::Metadata can't parse MLEHMANN/common-sense
Open
Nobody has claimed this yet.
- Dominant language
- Perl
- Stars
- 8
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
Module::Metadata can't handle MLEHMANN/common-sense. It's a very unusual distribution, looks like its author tried really hard to abuse PAUSE indexer as much as possible.
There are following problems:
->package_versions_from_directoryignores.PLfiles (package and$VERSIONare declared insense.pm.PL).- stuff in
__DATA__is ignored (that's where package is declared in that distribution). - As opposed to
Module::Metadata, PAUSE indexer doesn't really care in which package$VERSIONwas declared. With some exceptions, the first$VERSIONdefinition is used with all packages in the parsed file ($VERSIONis declared inmain, not incommon::sense).
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with ->package_versions_from_directory and trace how Module::Metadata handles sense.pm.PL, DATA, package declarations, and $VERSION definitions. Reproduce the MLEHMANN/common-sense case, then compare the parsed packages and versions with the behavior described in the issue; done means all three listed cases are handled correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- perl
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100