Perl-Toolchain-Gang / Perl-Toolchain-Gang/Module-Metadata

Module::Metadata can't parse MLEHMANN/common-sense

Open
#27 5 comments 0 reactions 0 assignees View on GitHub

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_directory ignores .PL files (package and $VERSION are declared in sense.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 $VERSION was declared. With some exceptions, the first $VERSION definition is used with all packages in the parsed file ($VERSION is declared in main, not in common::sense).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.