Hi Slaven,
The problem is currently:
1) those extra coercion modules like
Data::Sah::Coerce::perl::array::str_comma_sep are put separate
distributions that depend on Data::Sah::Coerce, and not the other way
around. Data::Sah does not depend on those modules.
2) Data::Sah::Coerce loads all coercion rule modules to know whether a
coercion rule should be enabled/included by default. It then complains when
a coercion module is too old (follows an older metadata version).
There are a couple of ways this can be resolved:
1) Data::Sah::Coerce does not warn old coercion modules.
2) coercion modules are put in two separate namespaces: coercion modules
that should be loaded by default in e.g. Data::Sah::CoerceDefault::*, while
optional coercion modules in Data::Sah::CoerceOptional::*. This will also
avoid Data::Sah having to load all coercion rule modules.
I plan to do no 2. Any comment is appreciated.
On Thu, Jan 17, 2019 at 3:29 AM Slaven_Rezic via RT <
bug-Data-Sah@rt.cpan.org> wrote:
Show quoted text> Wed Jan 16 15:29:44 2019: Request 128275 was acted upon.
> Transaction: Ticket created by SREZIC
> Queue: Data-Sah
> Subject: Coercion warnings
> Broken in: 0.895
> Severity: (no value)
> Owner: Nobody
> Requestors: SREZIC@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=128275 >
>
>
> On some systems there are coercion warnings while running the test suite
> --- maybe dependency versions have to increased?
>
> ...
> Only coercion rule module following metadata version 3 is supported, this
> rule module 'Data::Sah::Coerce::perl::array::str_comma_sep' follows
> metadata version 2 and will not be used at
> /opt/perl-5.26.0/lib/site_perl/5.26.0/Data/Sah/CoerceCommon.pm line 230.
> t/human-en_US.t ........... ok
> ... (etc) ...
>