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

People
Owner: Nobody in particular
Requestors: xenoterracide [...] gmail.com
Cc:
AdminCc:

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



Subject: dzil new create basic directories
all good modules should have a lib/ and t/ right? so have dzil new create them so I don't have to run mkdir afterwards.
As I'm sure you saw when you tried it, it already creates lib, into which it puts your new module. Creating an empty "t" will only lead to annoyances with Git. I suggest making a stock starter test file if you want something like that to exist in your new dists. -- rjbs
On Wed Jun 09 07:43:47 2010, RJBS wrote: Show quoted text
> As I'm sure you saw when you tried it, it already creates lib, into > which it puts your new module. > > Creating an empty "t" will only lead to annoyances with Git. I > suggest making a stock starter > test file if you want something like that to exist in your new dists.
no it did not. not if you haven't configured ~/.dzil/config.ini
If you have *nothing* in ~/.dzil you get a reasonable failure: [DZ] making directory ./foo [DZ] writing files to /Users/rjbs/.dzil/foo [DZ] guessing dist's main_module is lib/foo.pm [DZ] no license data in config, no %Rights stash, couldn't make a good guess at license from Pod; giving up at /Users/rjbs/perl5/perlbrew/perls/perl-5.12.1/lib/site_perl/5.12.1/darwin- 2level/Moose/Meta/Method/Delegation.pm line 108 If you add *only* %Rights to it, you get: ~/.dzil$ dzil new Foo [DZ] making directory ./Foo [DZ] writing files to /Users/rjbs/.dzil/Foo [DZ] dist minted in ./Foo ~/.dzil$ ls Foo/ dist.ini lib/ ~/.dzil$ cat Foo/dist.ini name = Foo author = Ricardo Signes license = Perl_5 copyright_holder = Ricardo Signes copyright_year = 2010 In other words, the presence of .dzil/config.ini has nothing to do with the default directories created. -- rjbs