我一直在将 Dist::Zilla 用于工作中的项目,并且我已经在该部分中声明了我的所有依赖[Prereqs / Requires]
项。到目前为止很好。
现在我发现我的一个依赖项的最新版本破坏了向后兼容性,所以我想限制我依赖的版本范围。类似于支持的东西cpanm
:
# from perldoc cpanm
cpanm Plack~">= 1.0000, < 2.0000" # latest of 1.xxxx
cpanm Plack@0.9990 # specific version. same as Plack~"== 0.9990"
或者Module::Build
:
'Other::Module' => '>= 1.2, != 1.5, < 2.0',
一般来说,我如何使用 Dist::Zilla 声明这种类型的依赖关系?