Can't upload mycookbook

52 Views Asked by At

I'm currently working on chef for deployment automation, i' building a cookbook that depends on another cookbook that i have already downloaded from the chef supermarket (the cookbook is database 6.1.1), and i did the depends and include_recipe parts, but still when i upload my-cookbook this error came up

(the same thing happened when i tried to upload the database cookbook which apparently depends on another cookbook Postgresql which means i'm stuck in a loop of dependencies ) I appreciate the help !

enter image description here

1

There are 1 best solutions below

2
Tom Weiss On

Depending on the version of Chef you are using, I suggest the --include-dependencies option when uploading.

(https://docs.chef.io/knife_cookbook.html)

-d, --include-dependencies Ensure that when a cookbook has a dependency on one (or more) cookbooks, those cookbooks are also uploaded.