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: 80114
Status: resolved
Priority: 0/
Queue: Dist-Zilla

Owner: Nobody in particular
Requestors: KENTNL [...]

Bug Information
Severity: Normal
Broken in: 4.300025
Fixed in: (no value)

Subject: config.ini.old considered an "existing configuration" by dzil setup
  move config.ini to config.ini.old

 Expectation: config.ini.old should be ignored.


Show quoted text
>dzil setup -v
per-user configuration files already exist in C:\Users\KentF\.dzil: C:\Users\KentF\.dzil\config.ini.old at C:/strawberry/perl/site/lib/Dist/Zilla/App/Command/ line 34.

Apparently, this is interpreting 'config.ini.old' as {   basename => 'config' , extension => 'ini.old' }  when by convention, periods are not part of the file extension, and by convention, I believe it should be interpreted as { 'basename' => 'config.ini', extension => 'old' }

I can't recall where this is handled, perhaps Config::MVP , but the problem is only apparent to 'dzil setup' , because other commands are probably going 'oh right, I have no handler for the extension 'ini.old' , so we'll just silently pretend theres no config file'

Download (untitled) / with headers
text/plain 499b
Not much of a mystery here if you look at the code from which the error came: my $config_root = Dist::Zilla::Util->_global_config_root; if ( -d $config_root and my @files = grep { -f and $_->basename =~ /\Aconfig\./ } $config_root->children ) { $chrome->logger->log_fatal([ "per-user configuration files already exist in %s: %s", "$config_root", join(q{, }, @files), ]); Fixed by: [master f3a8cf9] require that the extension is dotless -- rjbs

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

Please report any issues with to