add . to @INC in Makefile.PL
Graham Knop [Sat, 15 Apr 2017 21:16:27 +0000 (23:16 +0200)]
perl 5.26 does not include . in @INC by default, so we need to add it in
Makefile.PL for Module::Install to work properly.

Makefile.PL
share/Makefile.PL.tt

index a66eb59..87ef0ad 100644 (file)
@@ -1,5 +1,6 @@
 use strict;
 use warnings;
+use lib '.';
 use inc::Module::Install 0.91;
 use Module::Install::AuthorRequires;
 use Module::Install::AuthorTests;
index 5aab86a..3b8b109 100644 (file)
@@ -1,6 +1,7 @@
 [% startperl %]
 # IMPORTANT: if you delete this file your app will not work as
 # expected.  You have been warned.
+use lib '.';
 use inc::Module::Install 1.02;
 use Module::Install::Catalyst; # Complain loudly if you don't have
                                # Catalyst::Devel installed or haven't said