Subject: | 'dzil build' throws 'Could not decode UTF-8 t/tap-archive-1.tgz' exception |
Today I tried to build Tapper-TAP-Harness on Ubuntu Linux 18.04 LTS against perl-5.28.0. I ran 'dzil authordeps | cpanm' and it appeared to run successfully. I then called 'dzil test' and got exceptions. I decided to step back a minute and called 'dzil build'. I got the same exceptions:
#####
$ dzil build
[DZ] beginning to build Tapper-TAP-Harness
[@TAPPER/Git::NextVersion] Bumping version from 5.0.7 to 5.0.8
[DZ] guessing dist's main_module is lib/Tapper/TAP/Harness.pm
[@TAPPER/ExtraTests] rewriting author test xt/author/pod-syntax.t
[@TAPPER/ExtraTests] rewriting author test xt/author/no-tabs.t
[@TAPPER/ExtraTests] rewriting author test xt/author/pod-coverage.t
[@TAPPER/ExtraTests] rewriting author test xt/author/eol.t
Could not decode UTF-8 t/tap-archive-1.tgz; filename set by GatherDir (Dist::Zilla::Plugin::GatherDir line 225); encoded_content added by @TAPPER/GatherDir (Dist::Zilla::Plugin::GatherDir line 226); error was: UTF-8 "\x8B" does not map to Unicode at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/5.28.0/x86_64-linux/Encode.pm line 228.
; maybe you need the [Encoding] plugin to specify an encoding at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Role/File.pm line 169.
Dist::Zilla::Role::File::_throw(Dist::Zilla::File::OnDisk=HASH(0x5576e52ab5d0), "decode UTF-8", "UTF-8 \"\\x8B\" does not map to Unicode at /home/jkeenan/perl5/p"...) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Role/File.pm line 146
Dist::Zilla::Role::File::catch {...} ("UTF-8 \"\\x8B\" does not map to Unicode at /home/jkeenan/perl5/p"...) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Try/Tiny.pm line 123
Try::Tiny::try(CODE(0x5576e8bb36f0), Try::Tiny::Catch=REF(0x5576e8b205f0)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Role/File.pm line 146
Dist::Zilla::Role::File::_decode(Dist::Zilla::File::OnDisk=HASH(0x5576e52ab5d0), "\x{1f}\x{8b}\x{8}\x{0}}\x{f4}[M\x{0}\x{3}\x{ed}\x{98}\x{dd}o\x{9b}0\x{10}\x{c0}\x{f3}\x{9c}\x{bf}\x{e2}\x{a4}\x{be}\x{b4}Z\x{d}\x{b6}1\x{86}\x{b0}\x{97}u]\x{d5}MZ\x{ba}\x{aa}K\x{b4}\x{87}i\x{8a}H\x{e2}&\x{a8}|\x{9}\x{cc}\x{da}\x{ee}\x{af}\x{9f}\x{81}D\x{a1}\x{f9}\x{94}&"...) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Role/MutableFile.pm line 54
Dist::Zilla::Role::MutableFile::content(Dist::Zilla::File::OnDisk=HASH(0x5576e52ab5d0)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Role/PrereqScanner.pm line 108
Dist::Zilla::Role::PrereqScanner::scan_prereqs(Dist::Zilla::Plugin::AutoPrereqs=HASH(0x5576e6426960)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Plugin/AutoPrereqs.pm line 148
Dist::Zilla::Plugin::AutoPrereqs::register_prereqs(Dist::Zilla::Plugin::AutoPrereqs=HASH(0x5576e6426960)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Dist/Builder.pm line 357
Dist::Zilla::Dist::Builder::build_in(Dist::Zilla::Dist::Builder=HASH(0x5576e3f9ec18), undef) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Dist/Builder.pm line 422
Dist::Zilla::Dist::Builder::ensure_built_in(Dist::Zilla::Dist::Builder=HASH(0x5576e3f9ec18)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Dist/Builder.pm line 411
Dist::Zilla::Dist::Builder::ensure_built(Dist::Zilla::Dist::Builder=HASH(0x5576e3f9ec18)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/Dist/Builder.pm line 476
Dist::Zilla::Dist::Builder::build_archive(Dist::Zilla::Dist::Builder=HASH(0x5576e3f9ec18)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/Dist/Zilla/App/Command/build.pm line 107
Dist::Zilla::App::Command::build::execute(Dist::Zilla::App::Command::build=HASH(0x5576e1c8ba18), Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x5576e1a20fa8), ARRAY(0x5576e19b8de0)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/App/Cmd.pm line 468
App::Cmd::execute_command(Dist::Zilla::App=HASH(0x5576e186c828), Dist::Zilla::App::Command::build=HASH(0x5576e1c8ba18), Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x5576e1a20fa8)) called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/lib/site_perl/5.28.0/App/Cmd.pm line 321
App::Cmd::run("Dist::Zilla::App") called at /home/jkeenan/perl5/perlbrew/perls/perl-5.28.0/bin/dzil line 12
#####
I confirmed that I have Dist::Zilla::Plugin::Encoding installed and re-ran the command, but got the same errors. Please advise.
Thank you very much.
Jim Keenan