我正在开发一个食谱 ( my_cookbook
),它与另一个食谱 () 具有依赖关系,而另一个食谱 () 与另一个食谱 ( another_cookbook
) 具有依赖关系another_cookbook2
。为什么我需要在my_cookbook
Berksfile 中指定过渡依赖(意味着将another_cookbook2
依赖添加到 Berskfile)?如果Berksfileanother_cookbook2
中已经指定了依赖项?another_cookbook
$ 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 服务器之前,我正在尝试执行此操作。