Skip to content

Commit 1fb9f50

Browse files
committed
Disallow creating dist with extra author mode deps
1 parent d7e0e0e commit 1fb9f50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile.PL

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,14 @@ if ($Module::Install::AUTHOR && ! $args->{skip_author_deps}) {
104104
author_tests( 'xt' );
105105
readme_from( 'lib/DBIx/Class/Schema/Loader.pm' );
106106
realclean_files( qw[README MANIFEST lib/DBIx/Class/Schema/Loader/Optional/Dependencies.pod] );
107+
postamble <<EOP;
108+
create_distdir: author_stop_distdir_creation
109+
author_stop_distdir_creation:
110+
\t\$(NOECHO) \$(ECHO) Creation of dist with author mode deps not allowed
111+
\t\$(NOECHO) \$(ECHO) Please re-run Makefile.PL with --skip_author_deps
112+
\t\$(NOECHO) \$(FALSE)
113+
EOP
114+
107115
}
108116

109117
tests_recursive;

0 commit comments

Comments
 (0)