SineSwiper / Dist-Zilla-PluginBundle-Prereqs

Useful Prereqs modules in a Dist::Zilla bundle
http://metacpan.org/release/Dist-Zilla-PluginBundle-Prereqs/
1 stars 5 forks source link

Smartmatch is experimental at .../Dist/Zilla/Plugin/PrereqsClean.pm line 186 #3

Open Lx opened 9 years ago

Lx commented 9 years ago

My distribution Dist::Zilla::PluginBundle::Author::LXP uses both Dist::Zilla::Plugin::PrereqsClean and Dist::Zilla::Plugin::Test::Compile.

When Dist::Zilla::Plugin::PrereqsClean is loaded (under Perl v5.20.1 at least), this warning is generated:

Smartmatch is experimental at .../Dist/Zilla/Plugin/PrereqsClean.pm line 186

Because I also use Dist::Zilla::Plugin::Test::Compile, I have a t/00-compile.t test which fails due to the above warning being generated. As a result, I can't get all my tests to pass.

What would be the best way to get around this? I suppose Dist::Zilla::Plugin::PrereqsClean probably shouldn't be causing that warning to be generated. I guess it could either disable the warning:

no warnings 'experimental::smartmatch';

or forgo the use of smartmatch altogether, but there might be other, more preferable solutions.

SineSwiper commented 9 years ago

Sigh, this is probably Moose re-activating the warnings from another module. Although, I have use sanity before all of the other Moose stuff, so I could just move that down.

I'll do that, and also remove the smartmatch, since I'm just needing an "IN" operator here.

preaction commented 7 years ago

This still seems to be a problem. I'm also getting when is experimental.