Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

CPAN testers and META.yml

by coppit (Beadle)
on Jul 08, 2018 at 14:18 UTC ( #1218116=perlquestion: print w/replies, xml ) Need Help??
coppit has asked for the wisdom of the Perl Monks concerning the following question:

Greetings Monks!

I'm trying to figure out this failure from

Can't locate File/ in @INC (you may need to install the File::Slurp module)

But my Makefile.PL (based on Module::Install) says:

test_requires( 'Test::Compile' => 0, 'File::Slurp' => 0, 'Test::More' => 0, 'File::Find' => 0, 'File::Spec::Functions' => 0, 'Cwd' => 0, );

According to the documentation, test_requires is currently an alias for build_requires. Sure enough, in my META.yml I see:

build_requires: Cwd: 0 ExtUtils::MakeMaker: 6.36 File::Find: 0 File::Slurp: 0 File::Spec::Functions: 0 Test::Compile: 0 Test::More: 0 UNIVERSAL::require: 0

Does anyone know why CPAN testers seems to be ignoring this requirement? Should I specify an explicit version number?

Replies are listed 'Best First'.
Re: CPAN testers and META.yml
by tinita (Parson) on Jul 08, 2018 at 21:35 UTC
    You can see that the test you linked to is for 5.22.3, but the error message shows that 5.26.1 is called: /usr/local/lib/x86_64-linux-gnu/perl/5.26.1
    So at some point your code is calling /usr/bin/perl, probably by invoking a script directly instead of via $^X

      Well spotted.

      I think it might be the shebang line in the file "yagg".

Re: CPAN testers and META.yml
by tobyink (Abbot) on Jul 08, 2018 at 16:11 UTC

    The bottom of the report includes the following:

    Module Need Have --------------------- ----- -------- Cwd 0 3.74 ExtUtils::MakeMaker 6.36 7.35_03 File::Find 0 1.29 File::Slurp 0 9999.19 File::Spec::Functions 0 3.74 Test::Compile 0 v1.3.0 Test::More 0 1.302137 UNIVERSAL::require 0 0.18 URI::Escape 0 3.31

    So they do have File::Slurp installed. Unless you're seeing this same error with a lot of testers, it might have just been a one-off problem on that particular person's computer, like a corrupt hard drive or something.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1218116]
Approved by LanX
Front-paged by haukex
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2018-12-14 07:16 GMT
Find Nodes?
    Voting Booth?
    How many stories does it take before you've heard them all?

    Results (64 votes). Check out past polls.