DEV Community

Discussion on: Install CPAN modules from different sources with cpanminus

grinnz profile image
Dan Book

The other problem with cpanm from git aside from your disclaimer is that the source code as present in the git repo is not necessarily ready to be installed. The make dist step in your examples is required to form the install-ready distribution, or depending on the authoring tool in use one might use other commands like mbtiny dist or dzil build.

I use Dist::Zilla and have it maintain the generated installer and metadata files in the repository, which allows installing with cpanm without building, but this is mainly only so my CI doesn't have to run dzil.