Skip Menu |

This queue is for tickets about the Module-Release CPAN distribution.

Report information
The Basics
Id: 133679
Status: open
Priority: 0/
Queue: Module-Release

People
Owner: Nobody in particular
Requestors: HMBRAND [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Skip perl version if prereq's are not met
Having a wide range of perls to test on, like --8<--- .releaserc cpan_user HMBRAND automated_testing 1 skip_kwalitee 1 skip_manifest 1 skip_prereqs 1 skip_dist 1 allow_glob_in_perls 1 perls /pro/bin/perl\ :/usr/bin/perl\ :/media/Tux/perls/bin/perl5.1[2468].*\ :/media/Tux/perls/bin/perl5.[23][02468].*\ :/media/Tux/perls/bin/perl5.33.*\ :/media/Tux/perls/bin/tperl5.6.2\ :/media/Tux/perls/bin/tperl5.8.*\ :/media/Tux/perls/bin/tperl5.1[2468].*\ :/media/Tux/perls/bin/tperl5.[23][02468].*\ :/media/Tux/perls/bin/tperl5.33.* -->8--- (at the moment of writing this results in 116 perl versions to test with) I'd like to have an option to *skip* perl versions that do *not* meet the (correct) list of prereqquired modules at their prereq version.
I'm not against this idea, but I don't have time to do it. I think the best way would be to provide some hook that would filter the list. That way Module::Release doesn't have to know all sorts of things about filtering. Have that callback in _process_configuration. Maybe something like: if( $self->config->perls ) { my @paths = split /:/, $self->config->perls; foreach my $path ( @paths ) { next if $self->skip_perl( $path ); $self->add_a_perl( $path ); } } Some plugin would override the basic skip_perl method which always returns false. Alternately, I might think about producing the config dynamically so only appropriate perls show up in it.