我正在尝试使用纸箱作为部署容器.但我遇到了一个小问题.我不知道,如何安装私有模块.
创建了一个快速测试模块:
h2xs -AX Foo::Bar
tree Foo-Bar/
Foo-Bar/
??? Changes
??? lib
?   ??? Foo
?       ??? Bar.pm
??? Makefile.PL
??? MANIFEST
??? README
??? t
    ??? Foo-Bar.t
打包它:tar cvfz Foo-Bar-0.01.tar.gz Foo-Bar/
将包复制到vendor/cache目录.
ls vendor/cache/
Foo-Bar-0.01.tar.gz  Try-Tiny-0.18.tar.gz
cat cpanfile
requires 'Foo::Bar', '0.01';
requires 'Try::Tiny', '0.18';
carton install --cached
Installing modules using /home/donpedro/Garbage/Carton/cpanfile
! Couldn't find module or a distribution Foo::Bar (0.01)
Successfully installed Try-Tiny-0.18
! Installing the dependencies failed: Module 'Foo::Bar' is not installed
! Bailing out the installation for /home/donpedro/Garbage/Carton/.
1 distribution installed
Installing modules failed
尝试了一个Milla默认模块(教程示例,milla new Dist-Name),但没有结果.文档提到对于DarkPan模块,只需将模块放入供应商/缓存目录,我正在尝试这样做.官方CPAN模块可以直接放入vendor/cache目录中.
接下来要尝试什么或如何解决我的问题?:)
编辑: 
miyagawa和lejeunerenard在纸箱IRC频道给了我这个信息:为此目前工作,需要Carton 1.1(当前稳定1.0)和新的cpanfile开发版.cpanfile有新选项 
-dist => '/path/to/Foo-Bar.tar.gz' argument for the requires method
由于我懒得成为早期采用者,我会选择Carton for CPAN bundle和cpanm for private bundle.
感谢miyagawa和lejeunerenard.
carton IRC 频道中的 miyakawa 和 lejeunerenard 给了我这样的信息:目前,需要 Carton 1.1(当前稳定版 1.0)和新的 cpanfile dev 版本才能实现此功能。cpanfile 为 require 方法添加了新选项 -dist => '/path/to/Foo-Bar.tar.gz' 参数
截至目前(28.12),仍然没有 Carton 版本冲突,并且 git 1.1 分支已经存在 3 个月了。所以事情需要一点时间。Pinto 目前似乎正在积极开发中。