Skip to content

Commit

Permalink
This seems to be an issue related to Moo PP accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
tobyink committed Apr 14, 2021
1 parent 39dc69f commit 5196752
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Mom.pm
Expand Up @@ -71,12 +71,14 @@ sub import {
Carp::croak("Unrecognized syntax: $import");
}

$me->SUPER::import(
my @super_args = (
factory_package => $me,
type_library => "$me\::Types",
prefix => undef,
$kind => [ $caller => \%opts ],
);
$me->SUPER::import( @super_args );

($kind eq 'role' ? 'Moo::Role' : 'Moo')->_install_subs($caller);
'Scalar::Util'->import::into($caller, qw(blessed));
'Carp'->import::into($caller, qw(croak confess carp));
Expand Down
1 change: 1 addition & 0 deletions meta/makefile.pret
Expand Up @@ -8,6 +8,7 @@
:runtime-requirement [ :on "Import::Into"^^:CpanId ];
:runtime-requirement [ :on "Moo 2.004"^^:CpanId ];
:runtime-requirement [ :on "MooX::Press"^^:CpanId ];
:runtime-requirement [ :on "Class::XSAccessor"^^:CpanId ];
:runtime-requirement [ :on "Regexp::Common"^^:CpanId ];
:runtime-recommendation [ :on "Types::Path::Tiny"^^:CpanId ];
:runtime-recommendation [ :on "Path::Tiny"^^:CpanId ];
Expand Down

0 comments on commit 5196752

Please sign in to comment.