Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 895 Bytes

use_cpanm_with_carton.md

File metadata and controls

33 lines (21 loc) · 895 Bytes

Use cpanm with carton

Sometimes a distribution might prove difficult to install using carton (via your cpanfile)

So if we have a cpanfile looking like the following:

requires 'Your::TroubleSome::Distribution';

And the installation will not go through using carton:

$ carton

You can use cpanm with the -l parameter:

$ cpanm -l local/ Your::TroubleSome::Distribution

Note that the -l parameter, just points to a directory and local/, is just the default installation point for carton.

This does hold a minor issue and that is that the cpanfile.snapshot is not updated as part of the carton run - do not dispair.

$ carton install

This additional step will update your cpanfile.snapshot accordingly and everything will be in sync.

Source: MetaCPAN