Subject: | 0.132962-TRIAL accidentally omits a "require File::Slurp" statement. |
elsif ( $self->location eq 'root' ) {
- require File::Slurp;
my $file = $self->zilla->root->file($filename);
if (-e $file) {
$self->log("Override $filename in root");
}
- File::Slurp::write_file("$file", {binmode => ':raw'}, $content);
+ my $encoded_content = encode($self->_get_source_encoding(),
+ $content);
+ File::Slurp::write_file("$file", {binmode => ':raw'}, $encoded_content);
}
Fallout:
[DZ] beginning to build Path-FindDev
[DZ] guessing dist's main_module is lib/Path/FindDev.pm
[@Author::KENTNL/Git::NextVersion] Bumping version from 0.4.1 to 0.4.2
[DZ] extracting distribution abstract from lib/Path/FindDev.pm
[@Author::KENTNL/ReadmeAnyFromPod] Override README.mkdn in root
Undefined subroutine &File::Slurp::write_file called at /home/travis/perl5/perlbrew/perls/5.19/lib/site_perl/5.19.0/Dist/Zilla/Plugin/ReadmeAnyFromPod.pm line 147.