我正在开发一个与另一个食谱(another_cookbook)有依赖关系的食谱(my_cookbook),它与另一个食谱(another_cookbook2)有依赖关系。为什么我需要在my_cookbook means文件中指定过渡依赖(意思是将another_cookbook2依赖添加到Berskfile中)?是否已经在another_cookbook Berksfile文件中指定了与another_cookbook2的依赖关系?
$ berks install
Resolving cookbook dependencies...
...
Unable to satisfy constraints on package another_cookbook2, which does not exist, due to solution constraint (another_cookbook = 0.0.1). Solution constraints that may result in a constraint on another_cookbook2: [(another_cookbook = 0.0.1) -> (another_cookbook2 >= 0.0.0)]
Missing artifacts: another_cookbook2
...在将我的食谱上传到Chef服务器之前,我正尝试这样做。
发布于 2015-03-19 03:29:55
你没有。
如果您共享您的Berskfile%s,我们可以向您展示最新动态。
依赖项列在metadata.rb文件中,而不是Berksfile中。Berksfile只是告诉Berks在哪里可以找到这些依赖项。
如果您的Berks文件中没有像样的Berks API端点,比如supermarket.chef.io,那么您可能必须列出相关食谱的位置。
与metadata.rb不同,be文件不是递归构建的,因此不会使用依赖食谱中的Berksfile。
https://stackoverflow.com/questions/29121569
复制相似问题