Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rt 120862 no dot in default inc #6

Merged
merged 2 commits into from Apr 18, 2017

Conversation

jkeenan
Copy link
Contributor

@jkeenan jkeenan commented Apr 16, 2017

No description provided.

@nanis nanis merged commit f0b08d3 into nanis:master Apr 18, 2017
@nanis
Copy link
Owner

nanis commented Apr 18, 2017

Thanks for noticing my oversight. Much appreciated.

@@ -8,6 +8,7 @@ use ExtUtils::MakeMaker;
use File::Spec::Functions qw( catfile rel2abs );
use Getopt::Long qw( GetOptionsFromArray );

push @INC, '.';
unless( require( catfile qw(inc IO Interactive Tiny.pm) ) ) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Surely, the right thing to do here would be to augment the call to "require" to start with "./", as modifying @INC for the entirety of Makefile.PL is not actually necessary here.

@kentfredric
Copy link
Contributor

Honestly, both this and #5 are ... well. Weird. Especially given the more obvious, safe, and logical answer alternative is:

diff --git a/Makefile.PL b/Makefile.PL
index fcc3a7d..937789a 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -8,7 +8,8 @@ use Getopt::Long qw( GetOptionsFromArray );
 use Path::Class;
 use Try::Tiny;
 
-use inc::IO::Interactive::Tiny;
+use lib 'inc';
+use IO::Interactive::Tiny;
 
 caller
     or run(\@ARGV, [qw{ssl crypto ssl32 ssleay32 eay32 libeay32 z}]);
-- 
2.13.1

Why all the special tricks?

@pedrohenriquecordeiro
Copy link

Honestly, both this and #5 are ... well. Weird. Especially given the more obvious, safe, and logical answer alternative is:

diff --git a/Makefile.PL b/Makefile.PL
index fcc3a7d..937789a 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -8,7 +8,8 @@ use Getopt::Long qw( GetOptionsFromArray );
 use Path::Class;
 use Try::Tiny;
 
-use inc::IO::Interactive::Tiny;
+use lib 'inc';
+use IO::Interactive::Tiny;
 
 caller
     or run(\@ARGV, [qw{ssl crypto ssl32 ssleay32 eay32 libeay32 z}]);
-- 
2.13.1

Why all the special tricks?

this works for me, thanks

@jkeenan jkeenan deleted the rt-120862-no-dot-in-default-inc branch January 4, 2019 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants