Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Dist-Zilla CPAN distribution.

Report information
The Basics
Id: 69479
Status: resolved
Priority: 0/
Queue: Dist-Zilla

Owner: Nobody in particular
Requestors: jakob.voss [...]

Bug Information
Severity: Normal
Broken in: 4.200009
Fixed in: 4.200009

Subject: dzil breaks without notice if dist.ini has a Unicode BOM
Download (untitled) / with headers
text/plain 2.3k
If you get this error message: [DZ] building test distribution under .build/UIcrQxTaoF Attribute name must be provided before calling reader at /usr/local/share/perl/5.10.1/MooseX/LazyRequire/Meta/Attribute/Trait/Laz line 40 MooseX::LazyRequire::Meta::Attribute::Trait::LazyRequire::__ANON__('Dist ::Zilla::Dist::Builder=HASH(0x9e4e368)') called at /usr/local/lib/perl/5.10.1/Class/MOP/Mixin/ line 45 Class::MOP::Mixin::AttributeCore::default('Moose::Meta::Class::__ANON__: :SERIAL::7=HASH(0x9bb78b0)', 'Dist::Zilla::Dist::Builder=HASH(0x9e4e368)') called at accessor Dist::Zilla::name (defined at lib/Dist/ line 60) line 6 Dist::Zilla::name('Dist::Zilla::Dist::Builder=HASH(0x9e4e368)') called at lib/Dist/Zilla/Dist/ line 292 Dist::Zilla::Dist::Builder::build_in('Dist::Zilla::Dist::Builder=HASH(0x 9e4e368)', 'Path::Class::Dir=HASH(0x9e4dd38)') called at lib/Dist/Zilla/Dist/ line 362 Dist::Zilla::Dist::Builder::ensure_built_in('Dist::Zilla::Dist::Builder= HASH(0x9e4e368)', 'Path::Class::Dir=HASH(0x9e4dd38)') called at lib/Dist/Zilla/Dist/ line 551 Dist::Zilla::Dist::Builder::test('Dist::Zilla::Dist::Builder=HASH(0x9e4e 368)') called at lib/Dist/Zilla/App/Command/ line 63 Dist::Zilla::App::Command::smoke::execute('Dist::Zilla::App::Command::sm oke=HASH(0x97e0df0)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x986c158)', 'ARRAY(0x8c7dbd8)') called at /usr/local/share/perl/5.10.1/App/ line 231 App::Cmd::execute_command('Dist::Zilla::App=HASH(0x97d6d98)', 'Dist::Zilla::App::Command::smoke=HASH(0x97e0df0)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x986c158)') called at /usr/local/share/perl/5.10.1/App/ line 170 App::Cmd::run('Dist::Zilla::App') called at bin/dzil line 12 You will search for hours until you may finally find the reason: dzil breaks if your dist.ini has a Byte Order Mark (BOM). You can reproduce the error the following way: $ vim dist.ini :set bomb :wq $ dzil smoke
Download (untitled) / with headers
text/plain 176b
I'm not keen to add a BOM detector. I'm not sure what the best way to deal with this is. Something like "better error messages" if we have not enough configuraiton. -- rjbs
Download (untitled) / with headers
text/plain 284b
This should now be addressed. The new Config::INI and Mixin::Linewise will always start by reading config as UTF-8 encoded. If the first character is a UTF-8 BOM, it will throw an exception. The only acceptable format for config.ini and dist.ini is now UTF-8 without BOM. -- rjbs

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to