Open eserte opened 7 years ago
That warning is required to prevent from unexpected performance degradation I think.
How about
warn "..failback to PP version" if ! exists $INC{"Test/NoWarnings.pm"}
A possible workaround, it could work in the particular case. However, there may be other modules which do the same like Test::NoWarnings, or users may simply build a custom check with $SIG{__WARN__}
in their test suites.
I wonder if there are other possibilities to make sure that the XS in the current version is there. E.g. WWW::Form::UrlEncode
's Makefile.PL could check if the XS is already is installed, and if it is, then add the XS dynamically to the PREREQ_PM
list with the appropriate version. So it's made sure that the XS is uptodate after a WWW::Form::UrlEncode
upgrade.
Currently there's a warning if
WWW::Form::UrlEncoded::XS
is older thanWWW::Form::UrlEncoded
:However, if
WWW::Form::UrlEncoded::XS
is not installed at all, then there's no warning. So it seems that the XS is not really needed to work properly, and so there should be no warning if it's too old. Or the warning could be optionally triggered, maybe using a new environment variable.The current behavior may cause failures in other modules' test suites, especially if something like
Test::NoWarnings
is used there. Currently I see such test failures for HORNBURG/Dancer2-Plugin-Auth-Extensible-0.621.tar.gz (@racke: FYI)