Skip to content

Commit 14b3f4a

Browse files
make sure all Moose and Class::MOP classes are loaded from blib
This error was exposed by the last commit, that fixed the VERSION mismatch check that in turn was (invisibly) broken ever since $VERSION assignment was moved outside the BEGIN block.
1 parent 823c16e commit 14b3f4a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

author/doc-generator

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ use strict;
44
use warnings;
55
use autodie;
66

7-
use Module::Runtime qw( use_module );
8-
use Moose::Util qw( english_list find_meta );
9-
use Path::Tiny qw( path );
10-
117
# We want to make sure that when we load an exception class we're getting the
128
# version for the release-to-be, not the installed version.
139
use blib;
1410

11+
use Module::Runtime qw( use_module );
12+
use Moose::Util qw( english_list find_meta );
13+
use Path::Tiny qw( path );
14+
1515
sub main {
1616
my $exception_dir = path(qw( lib Moose Exception ));
1717

0 commit comments

Comments
 (0)