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
Skip ->dist if $skip_dist #48
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these changes aren't the way to get what you want, and disrupt the intent of the tool. You can turn off the checks that need to make the dist: release -k -V -t
. If that's not working for you, show me what's going on.
script/release
Outdated
@@ -762,7 +762,7 @@ $release->clean; | |||
$release->touch_all_in_manifest; | |||
$release->build_makefile; | |||
$release->make; | |||
$release->dist; | |||
$release->dist unless $skip_dist; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you are using -t, you should never reach this code.
script/release
Outdated
@@ -684,7 +684,7 @@ unless( $opts{T} // $release->config->skip_tests ) { | |||
if( $opts{t} // $release->config->dry_run ) { | |||
$release->_print("============ Cleaning up\n"); | |||
$release->_print( "This is a dry run, so stopping. Cleaning up.\n" ); | |||
$release->distclean; | |||
eval { $release->distclean }; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if I should change how run
works so it doesn't croak. It can return success or failure instead. But I think this issue is unrelated to the issue, and we'd still need to ensure it outputs the error message.
script/release
Outdated
@@ -595,7 +595,7 @@ unless( $opts{k} // $release->config->skip_kwalitee ) { | |||
$release->clean; | |||
$release->build_makefile; | |||
$release->make; | |||
$release->dist; | |||
$release->dist unless $skip_dist; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check_kwalitee
needs the local dist file to exist. Are you seeing something different? But, I would think if you are testing against 400 perls, you don't want to test kwalitee 400 times either, so you'd have release -k -t
.
script/release
Outdated
@@ -557,7 +557,7 @@ $release->_debug( "Will use HARNESS_OPTIONS '$ENV{HARNESS_OPTIONS}' during tests | |||
|
|||
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # | |||
# Check that this is a version later than the one of CPAN | |||
unless( $opts{V} // $release->config->skip_cpan_version_check ) { | |||
unless( $opts{V} // $skip_dist || $release->config->skip_cpan_version_check ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Version checking needs to make the dist too, but I don't think you'd want this check for what you are doing. Would release -V -t
work?
Heh, I've often found that I make mistakes that are only caught when I make the dists. :) I cherry-picked fde7964 for the Makefile.PL update for bug tracker and have released 2.133 so MetaCPAN can update. But, the |
Yes, I think that makes sense! I'll come up with a cut-down script (which will most likely be my style/layout) |
Maybe Feedback welcome |
This includes skipping cpan_version_check, as it depends on running dist When running "release -t" on 400 versions of perl, dist checks and mere annoying and certainly not helpful
Force pushed the tux branch as a complete rebase on master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a good start on release-test, but I think there is still some stuff you can prune. Not a big deal.
If you undo the changes to release, I'll merge this.
script/release-test
Outdated
} | ||
} | ||
|
||
$release->load_mixin ("Module::Release::Prereq"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't use *::Prereq, so you can delete this.
$release->clean; | ||
|
||
foreach my $mod (grep m/\S/ => split m/\s*,\s*/ => $required) { | ||
system "$perl -M$mod -e1 >/dev/null 2>&1"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check that $mod is a valid package name so there's no code injection
script/release-test
Outdated
|
||
$release->load_mixin ("Module::Release::Prereq"); | ||
|
||
my $skip_prereqs = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like you don't use these two variables.
This reverts commit 0918633.
This includes skipping
cpan_version_check
, as it depends on runningdist
When running
release -t
on 400 versions of perl, dist checks and mere annoying and certainly not helpful