This repository was archived by the owner on Apr 2, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.1.9 2021-01-08
2
+
3
+ * If the distro name starts with "Dist-Zilla", then the distro's lib dir will
4
+ be included in ` @INC ` (via ` dzil -I lib ` ) when running `dzil build.
5
+
6
+
1
7
## 0.1.8 2021-01-08
2
8
3
9
* If a distro has a script named ` dev-bin/install-xt-tools.sh ` we now run this
Original file line number Diff line number Diff line change @@ -48,6 +48,17 @@ sub run {
48
48
sub _build_dzil {
49
49
my $self = shift ;
50
50
51
+ my $content = path(' dist.ini' )-> slurp_utf8;
52
+ my ($distro ) = $content =~ / name\s *=\s *(\S +)/ ;
53
+
54
+ my @i ;
55
+
56
+ # This assumes that any dzil-related module will use itself during dzil
57
+ # build.
58
+ if ( $distro && $distro =~ / \A Dist-Zilla/ ) {
59
+ @i = ( ' -I' , ' lib' );
60
+ }
61
+
51
62
# The working dir might be something like '~/project` and pushd can't
52
63
# handle the '~', apparently.
53
64
my $dir = $self -> _pushd( $self -> checkout_dir );
@@ -57,6 +68,7 @@ sub _build_dzil {
57
68
$self -> _system(
58
69
$self -> _brewed_perl( $self -> tools_perl ),
59
70
$self -> _perl_local_script( $self -> tools_perl, ' dzil' ),
71
+ @i ,
60
72
' build' ,
61
73
);
62
74
},
You can’t perform that action at this time.
0 commit comments