perl6 – 如何仅使用Zef安装测试依赖项

前端之家收集整理的这篇文章主要介绍了perl6 – 如何仅使用Zef安装测试依赖项前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
zef在install子命令中只有–deps-only标志,只能安装模块的依赖项.

zef install --deps-only .

这将安装Meta6.json中depends对象中引用的所有模块.是否有类似的标志来安装Meta6.json中test-depends对象中的所有模块?

解决方法

zef install . --deps-only --/depends --/build-depends --test-depends

最后–test-depends不需要,但为了简洁起见. – / depends跳过依赖Meta6字段下的项目,– / build-depends跳过依赖于构建的Meta6字段下的项目.

来自zef –help的相关位:

FLAGS
    --deps-only             Install only the dependency chains of the requested distributions

    --/depends              Do not fetch runtime dependencies
    --/test-depends         Do not fetch test dependencies
    --/build-depends        Do not fetch build dependencies

猜你在找的Perl相关文章