-
Notifications
You must be signed in to change notification settings - Fork 170
With 'chef generate app', kitchen doesn't seem to find metada.rb #50
Comments
I think in the We should probably move the |
I moved the Berksfile and the Berksfile.lock to the root of the app, but it keeps giving errors (as expected, actually). I give you the info I got. Anything I can further do?
kitchen.log
#kitchen diagnose --all
|
Thanks @David-Gil for follow up. I think the issue is understood. My thoughts were about what should happen ideally within the code. The workaround for now would be to move the |
Just wasted my time with the same issue. |
+1 just spent the past two hours looking for something that would explain the issue, finally arrived here. please address || document behavior. |
placing .kitchen.yml in cookbooks worked for me only if I also add a Berksfile in cookbooks referencing the paths of my cookbooks e.g.:
|
Tried to reproduce in ChefDK 0.15.15, this now appears to work as intended:
Files in generated app:
Running Kitchen test:
|
@charlesjohnson Looking at your output and comparing to your ✝ ~/Development chef generate app mediaapp
Installing Cookbook Gems:
Compiling Cookbooks...
Recipe: code_generator::app
* directory[/Users/gdarends/Development/mediaapp] action create
- create new directory /Users/gdarends/Development/mediaapp
* template[/Users/gdarends/Development/mediaapp/.kitchen.yml] action create
- create new file /Users/gdarends/Development/mediaapp/.kitchen.yml
- update content in file /Users/gdarends/Development/mediaapp/.kitchen.yml from none to f5e488
(diff output suppressed by config)
* directory[/Users/gdarends/Development/mediaapp/test/integration/default/serverspec] action create
- create new directory /Users/gdarends/Development/mediaapp/test/integration/default/serverspec
* directory[/Users/gdarends/Development/mediaapp/test/integration/helpers/serverspec] action create
- create new directory /Users/gdarends/Development/mediaapp/test/integration/helpers/serverspec
* cookbook_file[/Users/gdarends/Development/mediaapp/test/integration/helpers/serverspec/spec_helper.rb] action create_if_missing
- create new file /Users/gdarends/Development/mediaapp/test/integration/helpers/serverspec/spec_helper.rb
- update content in file /Users/gdarends/Development/mediaapp/test/integration/helpers/serverspec/spec_helper.rb from none to a226b8
(diff output suppressed by config)
* template[/Users/gdarends/Development/mediaapp/test/integration/default/serverspec/default_spec.rb] action create_if_missing
- create new file /Users/gdarends/Development/mediaapp/test/integration/default/serverspec/default_spec.rb
- update content in file /Users/gdarends/Development/mediaapp/test/integration/default/serverspec/default_spec.rb from none to c10649
(diff output suppressed by config)
* template[/Users/gdarends/Development/mediaapp/README.md] action create
- create new file /Users/gdarends/Development/mediaapp/README.md
- update content in file /Users/gdarends/Development/mediaapp/README.md from none to 4e7808
(diff output suppressed by config)
* directory[/Users/gdarends/Development/mediaapp/cookbooks] action create
- create new directory /Users/gdarends/Development/mediaapp/cookbooks
* directory[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp] action create
- create new directory /Users/gdarends/Development/mediaapp/cookbooks/mediaapp
* template[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/metadata.rb] action create
- create new file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/metadata.rb
- update content in file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/metadata.rb from none to 774f5e
(diff output suppressed by config)
* cookbook_file[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/chefignore] action create
- create new file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/chefignore
- update content in file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/chefignore from none to e394e1
(diff output suppressed by config)
* cookbook_file[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/Berksfile] action create
- create new file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/Berksfile
- update content in file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/Berksfile from none to 5ec92e
(diff output suppressed by config)
* directory[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/recipes] action create
- create new directory /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/recipes
* template[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/recipes/default.rb] action create
- create new file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/recipes/default.rb
- update content in file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/recipes/default.rb from none to 035ab6
(diff output suppressed by config)
* directory[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/unit/recipes] action create
- create new directory /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/unit/recipes
* cookbook_file[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/spec_helper.rb] action create_if_missing
- create new file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/spec_helper.rb
- update content in file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/spec_helper.rb from none to 945e09
(diff output suppressed by config)
* template[/Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/unit/recipes/default_spec.rb] action create_if_missing
- create new file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/unit/recipes/default_spec.rb
- update content in file /Users/gdarends/Development/mediaapp/cookbooks/mediaapp/spec/unit/recipes/default_spec.rb from none to 2e0f1a
(diff output suppressed by config)
* execute[initialize-git] action run
- execute git init .
* cookbook_file[/Users/gdarends/Development/mediaapp/.gitignore] action create
- create new file /Users/gdarends/Development/mediaapp/.gitignore
- update content in file /Users/gdarends/Development/mediaapp/.gitignore from none to dd37b2
(diff output suppressed by config)
✝ ~/Development cd mediaapp
✝ ~/Development/mediaapp master± ls -la
total 24
drwxr-xr-x 8 gdarends staff 272 Jul 6 08:20 .
drwxr-xr-x 32 gdarends staff 1088 Jul 6 08:20 ..
drwxr-xr-x 9 gdarends staff 306 Jul 6 08:22 .git
-rw-r--r-- 1 gdarends staff 126 Jul 6 08:20 .gitignore
-rw-r--r-- 1 gdarends staff 350 Jul 6 08:20 .kitchen.yml
-rw-r--r-- 1 gdarends staff 56 Jul 6 08:20 README.md
drwxr-xr-x 3 gdarends staff 102 Jul 6 08:20 cookbooks
drwxr-xr-x 3 gdarends staff 102 Jul 6 08:20 test |
Just ran the generator with the default install, didn't move anything. |
As of ChefDK 1.1.16, I still see the same behavior as @moleculezz. With What exactly does the contents of this root-level metadata.rb need to look like? |
After I create an app cookbook with
$ chef generate app dtcat-joomla
I get the following tree:
The content of the files:
.kitchen.yml
metadata.rb
Berksfile
Error
When I do kitchen converge, I get the following error:
It seems that kitchen doesn't find the metada.rb file, which lies deep inside the tree (cookbooks/dtcat-joomla). I tried to run kitchen from cookbooks/dtcat-joomla, but then it doesn't find .kitchen.yml.
The text was updated successfully, but these errors were encountered: