in reply to cpanplus test suite seems to be a bit ruinous

I don't use cpanplus, but i know that the "normal" cpan uses CPAN::SQLite. Try installing that one.

PerlMonks XP is useless? Not anymore: XPD - Do more with your PerlMonks XP
Also check out my sisters artwork and my weekly webcomics
  • Comment on Re: cpanplus test suite seems to be a bit ruinous

Replies are listed 'Best First'.
Re^2: cpanplus test suite seems to be a bit ruinous
by Intrepid (Curate) on May 05, 2025 at 22:25 UTC

    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' },