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"