******************************************************************************
*** ***
*** AUTHOR MODE: all optional test dependencies converted to hard requires ***
-*** ( to disable re-run Makefile.PL with --skip_author_deps ) ***
+*** ( to disable re-run Makefile.PL with --skip-author-deps ) ***
*** ***
******************************************************************************
******************************************************************************
# this will run after the Makefile is written and the main Makefile.PL terminates
#
END {
+ # shit already hit the fan
+ return if $?;
+
# Re-write META.yml at the end to _exclude_ all forced build-requires (we do not
# want to ship this) We are also not using M::I::AuthorRequires as this will be
# an extra dep, and deps in Makefile.PL still suck
my $meta = do { local @ARGV = 'META.yml'; local $/; <> };
# this is safe as there is a fatal check earlier in the main Makefile.PL
- # to make sure there are no duplicates (i.e. $opt_testdeps does not contain
+ # to make sure there are no duplicates (i.e. $opt_testdeps does not contain
# any real dependencies)
my @illegal_leftovers = grep
{ $meta =~ /^ \s+ \Q$_\E \: \s+ /mx }