Perl-Toolchain-Gang / Module-Metadata

Gather package and POD information from perl module files
http://metacpan.org/release/Module-Metadata/
Other
8 stars 16 forks source link

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

Open xenu opened 7 years ago

xenu commented 7 years ago

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:

xenu commented 7 years ago

See also https://rt.cpan.org/Public/Bug/Display.html?id=77249

karenetheridge commented 7 years ago

If the shipped distribution deliberately obfuscates the code before installation, then we can't do much -- Module::Metadata will properly parse the installed code however.

haarg commented 7 years ago

It isn't obfuscation. It's generating a module because it has platform specific data in it. PAUSE has intentional support for extracting version information from a .PL file that is used to generate a module.

Leont commented 7 years ago

I'm not sure in what context this is a problem…

shadowcat-mst commented 7 years ago

@leont Dist::Metadata uses Module::Metadata to index dists, which means that both metacpan and my App::opan end up with confused results indexing dists. We should probably do something about this, whether it's adding an extra API designed for indexing source rather than an installed tree or just adding support for it to the existing API