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