From: Dagfinn Ilmari Mannsåker Date: Thu, 16 Nov 2017 13:57:10 +0000 (+0000) Subject: Make sure '.' is last in @INC, not first X-Git-Tag: 0.07048~6 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-Schema-Loader.git;a=commitdiff_plain;h=b97f3990a6d984919bfb19ad70b1b660f8812cb5 Make sure '.' is last in @INC, not first Otherwise Module::Install breaks in author mode --- diff --git a/Makefile.PL b/Makefile.PL index 8f296f1..9d79c14 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,7 +2,7 @@ use warnings; use strict; use 5.008001; -use lib '.'; +BEGIN { unshift @INC, '.' unless $INC[-1] eq '.'; } use inc::Module::Install 1.00; use Getopt::Long();