metacpan / MetaCPAN-Client

Home of the official MetaCPAN Perl API client.
21 stars 23 forks source link

Reverse dependencies method misses some modules #91

Closed autarch closed 6 years ago

autarch commented 6 years ago

Here's some example code:

use v5.24;
use strict;
use warnings;

use MetaCPAN::Client;

my $rev = MetaCPAN::Client->new->rev_deps('Code-TidyAll');
my @deps;
while ( my $d = $rev->next ) {
    push @deps, $d->distribution;
}

say $_ for sort @deps;

This prints the following list:

App-CISetup
App-GHPT
Authen-OATH
Business-PayPal-API
Catmandu
Code-TidyAll
Code-TidyAll-Plugin-UniqueLines
Code-TidyAll-Plugin-YAMLFrontMatter
Code-TidyAll-Plugin-YAPF
Data-IEEE754
Database-Migrator
Database-Migrator-Pg
DateTime
DateTime-Format-Strptime
DateTime-Locale
DateTime-TimeZone
Dist-Zilla-Plugin-VersionFromMainModule
Dist-Zilla-PluginBundle-Author-IOANR
Dist-Zilla-PluginBundle-Author-OALDERS
Dist-Zilla-PluginBundle-DROLSKY
Dist-Zilla-PluginBundle-MAXMIND
Exception-Class
GeoIP2
Git-Helpers
HTML-FormFu-MultiForm
HTML-Restrict
HTTP-Cookies
LWP-ConsoleLogger
List-SomeUtils
List-SomeUtils-XS
Log-Dispatch
Mac-PopClip-Quick
Mojolicious-Plugin-Web-Auth-Site-Fitbit
Params-Validate
Params-ValidationCompiler
Specio
Task-FreecellSolver-Testing
TeamCity-Message
Test-Class-Moose
Test-WWW-Mechanize-PSGI
Test2-Plugin-NoWarnings
TestRail-API
WWW-Mechanize
WWW-Spotify
WebService-Fitbit
WebService-MinFraud
WebService-PayPal-NVP
WebService-PayPal-PaymentsAdvanced
WebService-SQLFormat
lazy

But if you look at https://metacpan.org/requires/module/Code::TidyAll?sort=[[0,0]] you'll see there's way more deps than in that list. An easy comparison is just to look at the ones starting with "Code-TidyAll"

autarch commented 6 years ago

Actually, some more testing suggests this is a problem with the MetaCPAN API, not the client. I'll close this.