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

Version range warning #260

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

mohawk2
Copy link
Member

@mohawk2 mohawk2 commented Mar 19, 2016

Fix #215.

my ($self) = @_;
my @eumm_versions = sort grep defined, map {
$_->{'ExtUtils::MakeMaker'}
} grep defined, @{$self}{@PREREQ_KEYS};
Copy link
Member

Choose a reason for hiding this comment

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

CONFIGURE_REQUIRES is the only place that is useful for the place this is being used, so checking all of the phases is incorrect. It's also possible to provide the configure requires only via META_ADD/META_MERGE, so this could result in spurious warnings.

@mohawk2 mohawk2 force-pushed the version-range-warning branch from 22954b9 to f367bec Compare March 19, 2016 23:26
} grep defined, @{$self}{qw(CONFIGURE_REQUIRES)};
return 0 unless @eumm_versions;
$eumm_versions[0];
}
Copy link
Member

Choose a reason for hiding this comment

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

$self->{CONFIGURE_REQUIRES} && $self->{CONFIGURE_REQUIRES}{'ExtUtils::MakeMaker'} || 0

@mohawk2 mohawk2 force-pushed the version-range-warning branch from f367bec to ffdfb87 Compare March 20, 2016 00:21
@haarg
Copy link
Member

haarg commented Mar 20, 2016

Based on discussion on IRC, I think we want to drop this idea.

@Leont
Copy link
Member

Leont commented Mar 20, 2016

Yes we do

@mohawk2
Copy link
Member Author

mohawk2 commented Mar 20, 2016

If we do actually do something like this, then:

  • @Leont is right there needs to be a bit more infrastructure
  • @haarg 's idea of doing it in / after META has been calculated is a great one as then one only need check for one thing
  • @karenetheridge is right that we'd also check for newer features like TEST_REQUIRES, arrayref-AUTHOR, etc

@karenetheridge
Copy link
Member

I'm very sorry for stirring up a hornet's nest. However it's good to know this nest is here so we don't step in it again, and maybe have some ideas for tidying it up in the future :)

@mohawk2 mohawk2 mentioned this pull request Mar 20, 2016
@haarg
Copy link
Member

haarg commented Mar 20, 2016

Another problem with this idea is that many Makefile.PL files will adjust how they call EUMM based on the EUMM version. So using a newer EUMM option without listing it in configure requires is perfectly fine. Adding these warnings would show false positives to users, and we can't detect users vs authors.

Arrayref AUTHOR doesn't make sense to warn about. AUTHOR isn't really relevant on the user side, and if it is "broken" it doesn't impact installation.

You are welcome to keep working on this if you want, but I don't think it's possible to do in a way that I will find acceptable.

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

Successfully merging this pull request may close these issues.

4 participants