Skip Menu |

This queue is for tickets about the Data-Sah CPAN distribution.

Report information
The Basics
Id: 128275
Status: resolved
Priority: 0/
Queue: Data-Sah

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.895
Fixed in: (no value)



Subject: Coercion warnings
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) ...
Subject: Re: [rt.cpan.org #128275] Coercion warnings
Date: Sat, 19 Jan 2019 07:54:53 +0700
To: bug-Data-Sah [...] rt.cpan.org
From: Perl Ancar <perlancar [...] gmail.com>
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) ... >
This ticket should now be closed because as of Data::Sah::Coerce 0.032, we are no longer listing + loading all Data::Sah::Coerce::* modules.