Skip Menu |

This queue is for tickets about the Test-CPANfile CPAN distribution.

Report information
The Basics
Id: 127924
Status: resolved
Priority: 0/
Queue: Test-CPANfile

People
Owner: Nobody in particular
Requestors: aaron.trevena [...] godaddy.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: "aaron [...] aarontrevena.co.uk" <aaron [...] aarontrevena.co.uk>
Subject: Need a way to skip local modules being used
Date: Wed, 5 Dec 2018 13:58:43 +0000
To: "bug-Test-CPANfile [...] rt.cpan.org" <bug-Test-CPANfile [...] rt.cpan.org>
From: "aaron.trevena [...] godaddy.com" <aaron.trevena [...] godaddy.com>
manual changes I've applied in a local version : skip argument is arrayref of qr// sub cpanfile_has_all_used_modules { .. my $skip_regexps = $args{skip}; .. for my $module (sort $req->required_modules) { if ($skip_regexps) { my $skip = 0; foreach my $regexp (@$skip_regexps) { if ( $module =~ /$regexp/ ) { warn "skipping module $module"; $skip++; last; } } next if ($skip); } ....
On Wed Dec 05 22:58:56 2018, aaron.trevena@godaddy.com wrote: Show quoted text
> manual changes I've applied in a local version : > > > skip argument is arrayref of qr// > > > sub cpanfile_has_all_used_modules { > > .. > > my $skip_regexps = $args{skip}; > > .. > > > > > > for my $module (sort $req->required_modules) { > if ($skip_regexps) { > my $skip = 0; > foreach my $regexp (@$skip_regexps) { > if ( $module =~ /$regexp/ ) { > warn "skipping module $module"; > $skip++; last; > } > } > next if ($skip); > } > > ....
Test::CPANfile 0.03 and Perl::PrereqScanner::NotQuiteLite 0.9902, which has ignore and ignore_re options to skip specific paths to parse. Hope these helps. Thanks.
Subject: Re: [rt.cpan.org #127924] Need a way to skip local modules being used
Date: Wed, 5 Dec 2018 17:25:12 +0000
To: "bug-Test-CPANfile [...] rt.cpan.org" <bug-Test-CPANfile [...] rt.cpan.org>
From: "aaron.trevena [...] godaddy.com" <aaron.trevena [...] godaddy.com>
Close, but no cigar ;) I don't want to ignore paths, I want to ignore dependancies. Obviously darkpan modules will be "used" but not feature in cpanfile. Ideally most commonly skipped modules would be in the path being searched and the scanning could track which packages are defined in files it's scanned and exclude them from being looked for in cpanfile but that was too much work for me to do when I could quickly just dump them using regexp matches Show quoted text
________________________________ From: Kenichi Ishigaki via RT <bug-Test-CPANfile@rt.cpan.org> Sent: 05 December 2018 16:55:12 To: Aaron Trevena (Contractor) Subject: [rt.cpan.org #127924] Need a way to skip local modules being used <URL: https://rt.cpan.org/Ticket/Display.html?id=127924 > On Wed Dec 05 22:58:56 2018, aaron.trevena@godaddy.com wrote:
> manual changes I've applied in a local version : > > > skip argument is arrayref of qr// > > > sub cpanfile_has_all_used_modules { > > .. > > my $skip_regexps = $args{skip}; > > .. > > > > > > for my $module (sort $req->required_modules) { > if ($skip_regexps) { > my $skip = 0; > foreach my $regexp (@$skip_regexps) { > if ( $module =~ /$regexp/ ) { > warn "skipping module $module"; > $skip++; last; > } > } > next if ($skip); > } > > ....
Test::CPANfile 0.03 and Perl::PrereqScanner::NotQuiteLite 0.9902, which has ignore and ignore_re options to skip specific paths to parse. Hope these helps. Thanks.