Skip to content

Commit

Permalink
make sure all Moose and Class::MOP classes are loaded from blib
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
karenetheridge committed Apr 6, 2016
1 parent 823c16e commit 14b3f4a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions author/doc-generator
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ use strict;
use warnings;
use autodie;

use Module::Runtime qw( use_module );
use Moose::Util qw( english_list find_meta );
use Path::Tiny qw( path );

# We want to make sure that when we load an exception class we're getting the
# version for the release-to-be, not the installed version.
use blib;

use Module::Runtime qw( use_module );
use Moose::Util qw( english_list find_meta );
use Path::Tiny qw( path );

sub main {
my $exception_dir = path(qw( lib Moose Exception ));

Expand Down

0 comments on commit 14b3f4a

Please sign in to comment.