Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: cpanplus test suite seems to be a bit ruinous

by Intrepid (Curate)
on May 05, 2025 at 22:25 UTC ( [id://11164955]=note: print w/replies, xml ) Need Help??


in reply to Re: cpanplus test suite seems to be a bit ruinous
in thread cpanplus test suite seems to be a bit ruinous

I forgot that CPAN-cpan uses CPAN::SQLite, cavac, but CPANPLUS-cpan appears not to:

$ perl -w -MCPANPLUS -le'print "$/$_" for values %INC' | grep CPANPLUS + | xargs -l grep SQLite 'DBD::SQLite' => '0.0', eq 'CPANPLUS::Internals::Source::SQLite'

As you see above I did a quick-and-dirty grep peek into CPANPLUS and it uses DBD::SQLite.

Edit

May 06, 2025 at 17:45 UTC

I've done a bit more poking around in the code to see if I can get cpanplus to use SQLite. I discovered that the line found above by grep, 'DBD::SQLite' => '0.0',, is preceded by the line containing 'DBIx::Simple' => '0.0',. I installed DBIx::Simple and the result is that when I make test on CPANPLUS it seems happy to use SQLite. Here's a part of the code I'm talking about, in /CPANPLUS/Selfupdate.pm:

sqlite_backend => [ { 'DBIx::Simple' => '0.0', 'DBD::SQLite' => '0.0', }, sub { my $cb = shift; my $conf = $cb->configure_object; return $conf->get_conf('source_engine') eq 'CPANPLUS::Internals::Source::SQLite' },

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11164955]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (2)
As of 2025-07-15 00:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.