Skip Menu |

This queue is for tickets about the Role-Tiny CPAN distribution.

Report information
The Basics
Id: 130247
Status: resolved
Priority: 0/
Queue: Role-Tiny

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

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



Subject: Role::Tiny 2.000007 breaks Moo roles that use Type::Tiny libraries
Date: Fri, 2 Aug 2019 13:44:42 +0100
To: bug-Role-Tiny [...] rt.cpan.org
From: Robert Rothenberg <rrwo [...] cpan.org>
I am working on a codebase with Moo::Role modules that use type tiny libraries, e.g.   use Moo::Role   use Types::Standard qw/ Str /; We get errors like  > Undefined subroutine &Types::Standard::Str called at .... The errors go away if we pin Role::Tiny to the previous version 2.000006. So I'm wondering if the change to "exclude all constant subs from method list" is breaking this. || ||
On 2019-08-02 08:51:47, RRWO wrote: Show quoted text
> I am working on a codebase with Moo::Role modules that use type tiny > libraries, e.g. > >   use Moo::Role > >   use Types::Standard qw/ Str /; > > We get errors like > >  > Undefined subroutine &Types::Standard::Str called at .... >
A similar fail report on CPAN Testers: http://www.cpantesters.org/cpan/report/ec38eea0-b532-11e9-9066-e374b0ba08e8 Show quoted text
> The errors go away if we pin Role::Tiny to the previous version 2.000006. > > So I'm wondering if the change to "exclude all constant subs from method > list" is breaking this.
RT-Send-CC: cromedome [...] cpan.org
On 2019-08-02 16:18:23, SREZIC wrote: Show quoted text
> On 2019-08-02 08:51:47, RRWO wrote:
> > I am working on a codebase with Moo::Role modules that use type tiny > > libraries, e.g. > > > >   use Moo::Role > > > >   use Types::Standard qw/ Str /; > > > > We get errors like > > > >  > Undefined subroutine &Types::Standard::Str called at .... > >
> > A similar fail report on CPAN Testers: > http://www.cpantesters.org/cpan/report/ec38eea0-b532-11e9-9066- > e374b0ba08e8
Another possble victim: Dancer2-0.208001 Sample fail report: http://www.cpantesters.org/cpan/report/861584d8-b723-11e9-9ac4-c17bf169214d
I've released Role::Tiny 2.000008, which reverts the changes from 2.000007. That should fix this for now. However, I plan on re-introducing the changes in a fixed form, so I'm leaving this open.
I've released 2.000_009, which includes proper fixes for the issues 2.000007 was meant to address, but doesn't have this bug. Stable release will be out soon.