I have a perl distribution that I built with Dist :: Zilla , and therefore I do not need to infect the Perl lib installed with the dependencies, I used Carton to manage them.
Everything works fine in development, but when I run dzil test or dzil release and the tests run, the dependencies are not detected and the tests fail because the modules cannot be loaded.
I tried carton exec -- dzil test and PERL5LIB=local/lib/perl5 dzil test , but I think it means that I need to put all Dist :: Zilla divisions in a cpanfile, which seems wrong (I have Dist :: Zilla and the depots that I need installed in my perl lib path).
Is there a better way?
source share