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

missing configure-requires prereq declaration #166

Open
karenetheridge opened this issue Mar 7, 2015 · 5 comments
Open

missing configure-requires prereq declaration #166

karenetheridge opened this issue Mar 7, 2015 · 5 comments

Comments

@karenetheridge
Copy link
Contributor

I got this while installing into a virgin 5.20.0 build:

Configuring PPI-1.220
Running Makefile.PL
Can't locate IO/All.pm in @INC (you may need to install the IO::All module) (@INC contains: inc /Volumes/amaretto/Users/ether/.perlbrew/libs/20.0@std/lib/perl5/darwin-2level /Volumes/amaretto/Users/ether/.perlbrew/libs/20.0@std/lib/perl5 /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/site_perl/5.20.0/darwin-2level /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/site_perl/5.20.0 /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/5.20.0/darwin-2level /Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/5.20.0 .) at inc/Module/Install/ReadmeFromPod.pm line 8.
BEGIN failed--compilation aborted at inc/Module/Install/ReadmeFromPod.pm line 8.
Compilation failed in require at inc/Module/Install.pm line 307.

But does this plugin even need to be run for the user's installation? You would have already made a README when preparing the distribution for upload. You shouldn't need to have a huge dependency chain just to run Makefile.PL for the user.

@adamkennedy
Copy link
Collaborator

It shouldn't be required
On Mar 6, 2015 7:14 PM, "Karen Etheridge" notifications@github.com wrote:

I got this while installing into a virgin 5.20.0 build:

Configuring PPI-1.220
Running Makefile.PL
Can't locate IO/All.pm in @inc https://github.com/INC (you may need to
install the IO::All module) (@inc https://github.com/INC contains: inc
/Volumes/amaretto/Users/ether/.perlbrew/libs/20.0@std/lib/perl5/darwin-2level
/Volumes/amaretto/Users/ether/.perlbrew/libs/20.0@std/lib/perl5
/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/site_perl/5.20.0/darwin-2level
/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/site_perl/5.20.0
/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/5.20.0/darwin-2level
/Volumes/amaretto/Users/ether/perl5/perlbrew/perls/20.0/lib/5.20.0 .) at
inc/Module/Install/ReadmeFromPod.pm line 8.
BEGIN failed--compilation aborted at inc/Module/Install/ReadmeFromPod.pm
line 8.
Compilation failed in require at inc/Module/Install.pm line 307.

But does this plugin even need to be run for the user's installation? You
would have already made a README when preparing the distribution for
upload. You shouldn't need to have a huge dependency chain just to run
Makefile.PL for the user.


Reply to this email directly or view it on GitHub
#166.

@karenetheridge
Copy link
Contributor Author

This line: https://metacpan.org/source/MITHALDU/PPI-1.220/Makefile.PL#L10

should be changed to something like if (-d '.git') to ensure it only runs for authors.

@karenetheridge
Copy link
Contributor Author

Ah, no, it is the use inc::Module::Install line earlier that is causing issues - apparently it is loading the ReadmeFromPod plugin at line 307. So, just leaving that plugin out of inc will work. You may still want to do the -d '.git' check though (without the eval) to ensure that authors can't accidentally ship the dist without updating the readme.

@adamkennedy
Copy link
Collaborator

Module install should already have author detection.

Even if we did that. Something else is broken.

Adam
On Mar 6, 2015 8:40 PM, "Karen Etheridge" notifications@github.com wrote:

This line: https://metacpan.org/source/MITHALDU/PPI-1.220/Makefile.PL#L10

should be changed to something like if (-d .git) to ensure it only runs
for authors.


Reply to this email directly or view it on GitHub
#166 (comment).

@mjgardner
Copy link
Member

I ran into this issue too while running tests generated by Dist::Zilla::Plugin::Test::LocalBrew, which are release tests. So @adamkennedy may be right and author/release tests are somehow incorrectly being enabled. (Although DZP::Test::LocalBrew does delete @ENV{qw/AUTHOR_TESTING RELEASE_TESTING PERL5LIB/};, so I'm a little confused why this is still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants