Subject: | 'dzil new DIST' fails out of the box |
With a fresh install of Dist::Zilla (either 2.101040 or installing from a dist built from the
github HEAD), 'dzil new Test' fails with the following error:
$ dzil new Test -v
[DZ] reading configuration using Dist::Zilla::Config::Finder
no viable configuration could be found at /opt/perl/perls/perl-
5.12.0/lib/site_perl/5.12.0/Config/MVP/Reader/Finder.pm line 38
Config::MVP::Reader::Finder::_which_plugin('Dist::Zilla::Config::Finder=HASH(0x102020e80)',
'HASH(0x102020fb8)') called at /opt/perl/perls/perl-
5.12.0/lib/site_perl/5.12.0/Config/MVP/Reader/Finder.pm line 47
Config::MVP::Reader::Finder::read_config('Dist::Zilla::Config::Finder=HASH(0x102020e80)',
'HASH(0x102020fb8)') called at /opt/perl/perls/perl-
5.12.0/lib/site_perl/5.12.0/Dist/Zilla.pm line 455
Dist::Zilla::_load_config('Dist::Zilla', 'HASH(0x102010058)') called at
/opt/perl/perls/perl-5.12.0/lib/site_perl/5.12.0/Dist/Zilla.pm line 331
Dist::Zilla::from_config('Dist::Zilla', 'HASH(0x100dff660)') called at /opt/perl/perls/perl-
5.12.0/lib/site_perl/5.12.0/Dist/Zilla/App.pm line 84
Dist::Zilla::App::zilla('Dist::Zilla::App=HASH(0x100bf7f80)') called at
/opt/perl/perls/perl-5.12.0/lib/site_perl/5.12.0/Dist/Zilla/App/Command.pm line 13
Dist::Zilla::App::Command::zilla('Dist::Zilla::App::Command::new=HASH(0x100dcfde0)')
called at /opt/perl/perls/perl-5.12.0/lib/site_perl/5.12.0/Dist/Zilla/App/Command.pm line
24
Dist::Zilla::App::Command::log('Dist::Zilla::App::Command::new=HASH(0x100dcfde0)',
'ARRAY(0x100df96b8)') called at /opt/perl/perls/perl-
5.12.0/lib/site_perl/5.12.0/Dist/Zilla/App/Command/new.pm line 46
Dist::Zilla::App::Command::new::validate_args('Dist::Zilla::App::Command::new=HASH(0x100
dcfde0)', 'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x100dfa138)',
'ARRAY(0x1008b1a28)') called at /opt/perl/perls/perl-
5.12.0/lib/site_perl/5.12.0/App/Cmd.pm line 375
App::Cmd::execute_command('Dist::Zilla::App=HASH(0x100bf7f80)',
'Dist::Zilla::App::Command::new=HASH(0x100dcfde0)',
'Getopt::Long::Descriptive::Opts::__OPT__::2=HASH(0x100dfa138)', 'Test') called at
/opt/perl/perls/perl-5.12.0/lib/site_perl/5.12.0/App/Cmd.pm line 267
App::Cmd::run('Dist::Zilla::App') called at /opt/perl/perls/current/bin/dzil line 9
Things that do not fix this problem:
1) having a '~/.dzil' file with the contents from the Dist::Zilla::App::Command::new
'CONFIGURATION' section
2) having a '~/.dzil/config.ini' file with the contents from the Dist::Zilla::App::Command::new
'CONFIGURATION' section
3) having an empty 'dist.ini' file in the current working directory
Things that sort of work around this problem:
Having a mostly-complete 'dist.ini' file in the current working directory and running 'dzil new
.' *does* regenerate the dist.ini file, using the values from ~/.dzil/config.ini (if that exists)