Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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 cpantesters.org: http://www.cpantesters.org/cpan/report/2cb2c1d6-819f-11e8-bf8d-c559fbf5efc5

Can't locate File/Slurp.pm 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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2018-09-25 00:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Eventually, "covfefe" will come to mean:













    Results (195 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!