den*_*iss 0 chef-infra berkshelf test-kitchen
我有2本当地的食谱.一个叫golang_app,另一个叫test_go_web_app.test_go_web_app取决于golang_app并golang_app::default通过include_recipe 'golang_app::default'在其default.rb....
我试图添加golang_app为test_go_web_app依赖...现在,test_go_web_appBerksfile看起来像:
source 'https://supermarket.chef.io'
cookbook 'golang_app', path: '../golang_app'
metadata
Run Code Online (Sandbox Code Playgroud)
但是,在跑步时kitchen converge,我得到:
Chef::Exceptions::CookbookNotFound
----------------------------------
Cookbook golang_app not found. If you're loading golang_app from another cookbook, make sure you configure the dependency in your metadata
Cookbook Trace:
---------------
/tmp/kitchen/cache/cookbooks/test_go_web_app/recipes/default.rb:1:in `from_file'
Relevant File Content:
----------------------
/tmp/kitchen/cache/cookbooks/test_go_web_app/recipes/default.rb:
1>> include_recipe 'golang_app::default'
2:
Run Code Online (Sandbox Code Playgroud)
有没有人能够让这个工作?
除了Berksfile行之外,还需要添加depends 'golang_app'到metadata.rbfor test_go_web_app.还要确保Berksfile正好位于文件夹结构中的Kitchen配置文件旁边.
| 归档时间: |
|
| 查看次数: |
594 次 |
| 最近记录: |