Closed pghmcfc closed 10 years ago
Of course, if I don't set AUTHOR_TESTING then the Pod-Spell build succeeds but it doesn't look good with the warnings anyway ;-)
Now that Path::FindDev uses Class::Tiny as well, it's producing warnings too:
$ ./Build test
t/00-compile.t ...................... ok
#
#
# Generated by Dist::Zilla::Plugin::ReportVersions::Tiny v1.09
# perl: 5.018001 (wanted 5.006) on linux from /usr/bin/perl
#
# Carp => 1.32 (want any version)
# Dist::Zilla::PluginBundle::Author::KENTNL => module not found. (want v1.8.3)
# Dist::Zilla::PluginBundle::Author::KENTNL::Lite => module not found. (want v1.3.0)
# File::ShareDir => 1.03 (want any version)
# FindBin => 1.51 (want any version)
# IO::Handle => 1.34 (want any version)
# IPC::Open3 => 1.13 (want any version)
# Module::Build => 0.4007 (want 0.4007)
# Path::Class::Dir => 0.32 (want any version)
# Path::Class::File => 0.32 (want any version)
# Path::FindDev => 0.3.0 (want any version)
# Path::IsDev => 0.3.1 (want any version)
# Path::Tiny => 0.033 (want any version)
# Pod::Coverage::TrustPod => module not found. (want any version)
# Sub::Exporter => 0.986 (want any version)
# Test::CPAN::Changes => module not found. (want 0.19)
# Test::CPAN::Meta => module not found. (want any version)
# Test::Kwalitee => module not found. (want 1.08)
# Test::More => 0.9805 (want 0.98)
# Test::Pod => module not found. (want 1.41)
# Test::Pod::Coverage => module not found. (want 1.08)
# lib => 0.63 (want any version)
# strict => 1.07 (want any version)
# version => 0.9904 (want 0.9901)
# warnings => 1.18 (want any version)
#
# Thanks for using my code. I hope it works for you.
# If not, please try and include this output in the bug report.
# That will help me reproduce the issue and solve your problem.
#
t/000-report-versions-tiny.t ........ ok
Name "Path::IsDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
Name "Path::FindDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
t/01_devel.t ........................ ok
Name "Path::IsDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
Name "Path::FindDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
t/02_installed_only.t ............... ok
Name "Path::FindDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
Name "Path::IsDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
t/03_installed_and_dev_different.t .. ok
Name "Path::FindDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
Name "Path::IsDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
t/04_developing_installed.t ......... ok
Name "Path::IsDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
Name "Path::FindDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
t/05_devel_spec.t ................... ok
Name "Path::IsDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
Name "Path::FindDev::Object::DEMOLISH" used only once: possible typo at /usr/share/perl5/vendor_perl/Class/Tiny.pm line 93.
t/06_distname.t ..................... ok
All tests successful.
Files=8, Tests=10, 1 wallclock secs ( 0.04 usr 0.01 sys + 0.78 cusr 0.08 csys = 0.91 CPU)
Result: PASS
Thanks for the bug report.
I'd imaging thats Class::Tiny
's fault, but hard to know.
So two questions,
PERL5OPT='-MCarp::Always'
to get a bigger backtrace0.009
) Class::Tiny
to rule out anything it might have fixed?I mean, I don't do anything directly with DEMOLISH
, so I'm just going to go straight to reporting this bug there when I get a better backtrace =)
Actually, I think I have an idea ... its probably that you're using one of those annoying versions of something in the testing stack that turns additional warnings on globally, even for things that didn't ask for it.
Its still a bug, ... just working out where and what the right solution is is the hard part.
I'm afraid I'm already using Class::Tiny 0.009 and when I used Carp::Always I got exactly the same diagnostics, nothing extra. Sorry about that.
Fixed in Class::Tiny 0.010 being shipped to CPAN now.
Works for me, thanks.
Fixed dependencies should exist for anyone who uses IsDev>=0.3.2 or FindDev>=0.3.1.
Thanks for reporting.
Not sure if this is a bug in F:S:P or further down, but I see this when running the test suite:
After installing the dist anyway and then trying to build Pod::Spell, which has just introduced use of F:S:P, the test suite now fails (didn't with F:S:P 0.4.4):