metacpan / metacpan-web

Web interface for MetaCPAN
http://metacpan.org
Other
412 stars 234 forks source link

Spurious "provides" section #1734

Open ribasushi opened 8 years ago

ribasushi commented 8 years ago

The release page of DBIC shows DBIx::Class::Optional::Dependencies as a lone provides. There is nothing mentioning provides in META, and the module itself is a regular .pm/.pod split just like many others. Yet DBIx::Class::Optional::Dependencies is the only one displayed incorrectly.

This is reminiscent of https://github.com/CPAN-API/metacpan-web/issues/724 but the failure mode is different.

haarg commented 8 years ago

What metacpan shows as "Provides" has little to do with CPAN::Meta::Spec's provides. Is that the failure you are concerned about, or are you more concerned with the UI being bad or misleading?

ribasushi commented 8 years ago

I am concerned with the latter. The UI singles out the module as if there is something special about it.

I mentioned META provides as part of "I looked there too" pre-diagnostic.

nwellnhof commented 7 years ago

You can hide the .pm file from the Provides section on MetaCPAN by adding it to no_index. That said, I also find it irritating that modules with external .pod files are listed a second time in the Provides section. I think the logic should be like:

Except for the second case, this should already match current MetaCPAN behavior.

nwellnhof commented 7 years ago

And after the change described above, the "Provides" section could be renamed to "Undocumented Modules" which would also fix #1152.

oalders commented 5 years ago

Closing as the latest release does not show a provides section at all.

nwellnhof commented 5 years ago

This might be fixed for DBIx::Class, but my CommonMark distro still has the same issue: https://metacpan.org/release/CommonMark

oalders commented 5 years ago

Ok, thanks. Re-opening.