Skip to content

Commit

Permalink
meep
Browse files Browse the repository at this point in the history
  • Loading branch information
wchristian committed Feb 23, 2024
1 parent e989aed commit b85d722
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions xt/DepReqs.pm
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,8 @@ sub run { # synch with dependent-modules.t
|RPerl
)$/x
};
{ no warnings 'redefine'; *MetaCPAN::Client::fetch = $old_fetch; }

# test early that all modules don't have an author that crashes tests later
Test::DependentModules::_load_cpan;
for my $name (@deps) {
my $mod = $name;
$mod =~ s/-/::/g;
next unless #
my $dist = Test::DependentModules::_get_distro($mod);
$dist->author->id;
}
{ no warnings 'redefine'; *MetaCPAN::Client::fetch = $old_fetch; }

my $c = MetaCPAN::Client->new;
my @reqs;
Expand All @@ -66,5 +57,17 @@ sub run { # synch with dependent-modules.t

say "debug printing file";
say io("xt/cpanfile")->all;

# test early that all modules don't have an author that crashes tests later
# !!! careful, this changes CWD !!!
Test::DependentModules::_load_cpan;
for my $name (@deps) {
my $mod = $name;
$mod =~ s/-/::/g;
next unless #
my $dist = Test::DependentModules::_get_distro($mod);
$dist->author->id;
}

say "done";
}

0 comments on commit b85d722

Please sign in to comment.