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

People
Owner: Nobody in particular
Requestors: daxim [...] cpan.org
Cc:
AdminCc:

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



Subject: better error message if no plugins
Show quoted text
> cat dist.ini
name = PostScript-Barcode author = Lars Dɪᴇᴄᴋᴏᴡ <daxim@cpan.org> copyright_holder = Lars Dɪᴇᴄᴋᴏᴡ <daxim@cpan.org> Show quoted text
> dzil nop
[DZ] Unable to find main_module in dist at /home/daxim/local/lib/perl5/site_perl/5.10.1/x86_64-linux-thread-multi- ld/Moose/Meta/Method/Delegation.pm line 108 <rjbs> Oh, you have no plugins loaded. <rjbs> So dzil isn't looking in lib. <daxim> is it okay to have no plugins loaded? <rjbs> Not if you want to do anything. <rjbs> If you specified main_module in dist.ini, that error woudl not occur. <daxim> then the error message could be better <rjbs> but "dzil build" would do nothing <rjbs> yeah, that error message could be better. <rjbs> The right error message is something like: "no main module could be found under gathered files in ./lib, set main_module in your config files"
these days you'd get: [DZ] Unable to find main_module in the distribution [DZ] We tried to guess 'lib/Dist/Zilla.pm' but no file like that existed [DZ] Upon further inspection we didn't find any files in your dist, did you add any? [DZ] Cannot continue without a main_module [DZ] Unable to find main_module in the distribution [DZ] We tried to guess 'lib/Dist/Zilla.pm' but no file like that existed [DZ] Upon further inspection we didn't find any files in your dist, did you add any? [DZ] Cannot continue without a main_module at /Users/rjbs/.perlbrew/libs/19.2@std/lib/perl5/darwin-2level/Moose/Meta/Method/Delegation.pm line 110. -- rjbs