Subject: | dzil setup fails |
dzil setup fails trying to find the global configuration file for new
users. Also dies trying to find log_fatal if configuration exists.
mini% dzil setup
Can't locate object method "_config_root" via package "Dist::Zilla::App"
at /apps/perl5/lib/perl5/Dist/Zilla/App/Command/setup.pm line 28.
===
Raw 4.101811 code
mini% dzil nop
WARNING: No global configuration file was found in ~/.dzil -- this
limits the
ability of Dist::Zilla to perform some tasks. You can run "dzil setup" to
create a simple first-pass configuration file, or you can touch the file
~/.dzil/config.ini to suppress this message in the future.
no viable configuration could be found at
/usr/local/share/perl/5.10.1/Config/MVP/Reader/Finder.pm line 47
mini% mkdir ~/.dzil && touch ~/.dzil/config.ini
mini% dzil nop
no viable configuration could be found at
/usr/local/share/perl/5.10.1/Config/MVP/Reader/Finder.pm line 47
Config::MVP::Reader::Finder::_which_reader('Dist::Zilla::MVP::Reader::Finder=HASH(0x97a1f98)',
'Path::Class::File=HASH(0x977f590)') called at
/usr/local/share/perl/5.10.1/Config/MVP/Reader/Finder.pm line 73
mini% dzil setup
Can't locate object method "_config_root" via package "Dist::Zilla::App"
at /apps/perl5/lib/perl5/Dist/Zilla/App/Command/setup.pm line 28.
===
new user after patch:
mini% dzil nop
WARNING: No global configuration file was found in ~/.dzil -- this
limits the
ability of Dist::Zilla to perform some tasks. You can run "dzil setup" to
create a simple first-pass configuration file, or you can touch the file
~/.dzil/config.ini to suppress this message in the future.
no viable configuration could be found at
/usr/local/share/perl/5.10.1/Config/MVP/Reader/Finder.pm line 47
mini% mkdir ~/.dzil; touch ~/.dzil/config.ini
mini% dzil nop
no viable configuration could be found at
/usr/local/share/perl/5.10.1/Config/MVP/Reader/Finder.pm line 47
Config::MVP::Reader::Finder::_which_reader('Dist::Zilla::MVP::Reader::Finder=HASH(0xb394800)',
'Path::Class::File=HASH(0xb36a758)') called at
/usr/local/share/perl/5.10.1/Config/MVP/Reader/Finder.pm line 73
...
mini% dzil setup
per-user configuration files already exist in /home/dwzl/.dzil:
/home/dwzl/.dzil/config.ini at
/apps/perl5/lib/perl5/Dist/Zilla/App/Command/setup.pm line 35
mini% rm ~/.dzil/config.ini
mini% dzil setup
... works as expected, creates config.ini file.