Closed abraxxa closed 6 years ago
Can you try running tests again with PERL_USE_UNSAFE_INC=1
?
Still fails:
[alex@alex-pc:~/.cpanm/work/1514716561.11624/Dist-Zilla-6.010$ ]$ env | grep PERL_USE_UNSAFE_INC
PERL_USE_UNSAFE_INC=1
[alex@alex-pc:~/.cpanm/work/1514716561.11624/Dist-Zilla-6.010$ ]$ prove -vl t/plugins/filefinders.t
t/plugins/filefinders.t ..
not ok 1 - GatherDir gathers all files in the source dir
ok 2 - all files found were in manifest
ok 3 - all files in manifest were on disk
ok 4 - InstallModules finds all modules
not ok 5 - IncModules finds all modules
# Failed test 'GatherDir gathers all files in the source dir'
# at t/plugins/filefinders.t line 52.
# Comparing $data as a Bag
# Missing: 'bin/another_perl_script', 'bin/test.bash', 'bin/test.pl', 'inc/Foo.pm', 'inc/Foo/Bar.pm', 'share/my_data.dat'
# Failed test 'IncModules finds all modules'
# at t/plugins/filefinders.t line 86.
# Comparing $data as a Bag
# Missing: 'inc/Foo.pm', 'inc/Foo/Bar.pm'
ok 6 - TestFiles finds all files
ok 7 - ExtraTestFiles finds all files in xt
not ok 8 - ExecFiles finds all files
# Failed test 'ExecFiles finds all files'
# at t/plugins/filefinders.t line 113.
# Comparing $data as a Bag
# Missing: 'bin/another_perl_script', 'bin/test.bash', 'bin/test.pl'
not ok 9 - PerlExecFiles finds exec files that are perl
# Failed test 'PerlExecFiles finds exec files that are perl'
# at t/plugins/filefinders.t line 124.
# Comparing $data as a Bag
# Missing: 'bin/another_perl_script', 'bin/test.pl'
not ok 10 - ShareFiles finds all files
# Failed test 'ShareFiles finds all files'
# at t/plugins/filefinders.t line 134.
# Comparing $data as a Bag
# Missing: 'share/my_data.dat'
ok 11 - :AllFiles finds all files
ok 12 - :NoFiles finds no files
1..12
# Looks like you failed 5 tests of 12.
Dubious, test returned 5 (wstat 1280, 0x500)
Failed 5/12 subtests
Test Summary Report
-------------------
t/plugins/filefinders.t (Wstat: 1280 Tests: 12 Failed: 5)
Failed tests: 1, 5, 8-10
Non-zero exit status: 5
Files=1, Tests=12, 0 wallclock secs ( 0.01 usr 0.00 sys + 0.47 cusr 0.03 csys = 0.51 CPU)
Result: FAIL
I'm afraid you'll probably have to diagnose the cause yourself -- it would be difficult to do this without being able to reproduce it locally. It might be due to a recent change in another cpan module that is used as a dependency?
I didn't have time to figure out what is happening, and would love a hint. :)
(I had the same issue on OpenBSD using a perlbrew created Perl 5.26.1)
I was able to get it to build by changing several lines of filefinders.t. Namely:
24 root => '../corpus/dist/DZT_Inc',
to:
24 root => '../../../corpus/dist/DZT_Inc',
And similar relative path changes on lines 28 (DZT_Bin) and 32 (DZT_Share).
It also worked if I used absolute paths there.
It seems like it is building this path relative to the temp directory set up during the test run.
Found it. File::Copy::Recursive 0.38 worked fine. 0.39 (released last month) doesn't.
Temporary workaround if anyone gets bit by this (and anyone installing Dist::Zilla without F::C::R already installed will get bit by it) is to install File::Copy::Recursive 0.38 until this gets fixed there.
I put an issue in F::C::R's bug tracker: https://github.com/drmuey/p5-File-Copy-Recursive/issues/5
Thank you very much for your efforts to debug this!
I've also now submitted a PR to fix the issue in the upstream module: https://github.com/drmuey/p5-File-Copy-Recursive/pull/6
File::Copy::Recursive merged the PR mentioned above. I believe, if F::C::R is updated, this issue is solved for anyone experiencing it.
I can confirm that the Dist::Zilla 6.010 tests pass with File::Copy::Recursive 0.40.
From the
cpanplus i Dist::Zilla
output:Output of
perl -V
: