[rt.cpan.org #119737] Problems with detecting DateTime::Format::Natural dependencies

[email protected] ("Roderich Schupp via RT")
Newsgroups perl.par
Message-ID <[email protected]>
Thu Jan 12 14:33:31 2017: Request 119737 was acted upon.
Transaction: Correspondence added by RSCHUPP
       Queue: Module-ScanDeps
     Subject: Problems with detecting DateTime::Format::Natural dependencies
   Broken in: (no value)
    Severity: (no value)
       Owner: RSCHUPP
  Requestors: [email protected]
      Status: open
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=119737 >


On 2017-01-11 16:51:38, [email protected] wrote:

> >> Anyway, I'm adding an explicit rule for DateTime::Format::Natural to 
> >> Module::ScanDeps
> >> that should make it work "out of the box".

> I just updated PAR (1.014), PAR::Packer (1.036) and Module::ScanDeps 
> (1.23). However, that did not fix the issue for me. I guess, the fix did 
> not make it into the official cpan repository,yet. Is there a way for me 
> to test the fixed version already now or should I just wait for the next 

Yes, the fix isn't released yet, but I've pushed it to github...
Or just apply the one-line patch below.

Cheers, Roderich


diff --git a/lib/Module/ScanDeps.pm b/lib/Module/ScanDeps.pm
index 86b0c73..afcff46 100644
--- a/lib/Module/ScanDeps.pm
+++ b/lib/Module/ScanDeps.pm
@@ -281,6 +281,7 @@ my %Preload = (
                 _glob_in_inc('Date/Manip/Offset', 1));
     },
     'DateTime/Format/Builder/Parser.pm' => 'sub',
+    'DateTime/Format/Natural.pm'        => 'sub',
     'DateTime/Locale.pm'                => 'sub',
     'DateTime/TimeZone.pm'              => 'sub',
     'DBI.pm'                            => sub {
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.