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

时间:2018-12-10 18:06:41

标签: perl6 zef

zef有一个--deps-only子命令的install标志,用于仅安装模块的依赖项。

zef install --deps-only .

这将安装dependsMETA6.json对象中引用的所有模块。在test-depends的{​​{1}}对象中是否有类似的标志来安装所有模块?

1 个答案:

答案 0 :(得分:4)

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

为方便起见,结尾处的--test-depends不是必需的。 --/depends跳过depends META6字段下的项目,而--/build-depends跳过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