Chef infra 厨师试图在过程中加载自己的食谱

Chef infra 厨师试图在过程中加载自己的食谱,chef-infra,test-kitchen,Chef Infra,Test Kitchen,我正在帮助Kitchen.CI为Magento编写一本食谱 我正在使用Library Chef进行依赖关系管理,自从我安装了它之后,当我尝试收敛时,我遇到了以下错误: ERROR: Cookbook magentochef not found. If you're loading magentochef from another cookbook, make sure you configure the dependency in your metadata 事情是这样的,magentoche

我正在帮助Kitchen.CI为Magento编写一本食谱

我正在使用Library Chef进行依赖关系管理,自从我安装了它之后,当我尝试收敛时,我遇到了以下错误:

ERROR: Cookbook magentochef not found. If you're loading magentochef from another cookbook, make sure you configure the dependency in your metadata
事情是这样的,magentochef是我正在创建的烹饪书的名字,所以我不知道为什么它试图将其作为依赖项加载。实际上,它试图将自身作为对自身的依赖来加载,这确实很奇怪

我对Chef and Kitchen.CI还不熟悉,所以我可能误解了一些事情,但发生这种情况似乎很奇怪。只有在我安装了
Library chef
并尝试运行
kitchen converge

这是我的metadata.rb

name "magentochef"
version "0.0.1"
这是我的厨房

---
driver:
  name: vagrant

provisioner:
  name: chef_solo

platforms:
  - name: ubuntu-12.04
  - name: ubuntu-14.04

suites:
  - name: default
    run_list:
      - recipe[magentochef::default]
    attributes:
最后,是我的支票

#!/usr/bin/env ruby
#^syntax detection

site 'https://supermarket.getchef.com/api/v1'

cookbook 'composer', '~> 1.0.5'

您需要将
cookbook'magentochef',路径:'.
添加到您的Cheffile中。Berkshelf在这方面更为常见,它包括一个助手(
元数据)

感谢您的帮助。我会在早上测试,让你知道它是如何进行的!