littlechef icon indicating copy to clipboard operation
littlechef copied to clipboard

Better handle recipes not present in metadata

Open tobami opened this issue 12 years ago • 2 comments

If a recipe is not declared in the metadata LittleChef fails building the node data bag.

There could be a fallback to looking for the file on disk, and then either erroring out with a more useful error message ("you need to declare the recipe in metadata.rb") or even continuing.

tobami avatar Jun 15 '12 10:06 tobami

This is probably the same or similar issue as when the default recipes are not found if not named the same in the cookbook meta and run_list.

e.g. 'run_list[ "cookbook::default" ]' with meta having 'recipe "cookbook", "desc"' would throw error, but if meta was defined with ::default it would run fine, or if run_list was defined without the ::default it would also run fine.

cburyta avatar Sep 13 '12 13:09 cburyta

http://berkshelf.com is handling this issue.. different approach of managing cookbooks.

jverdeyen avatar Jun 07 '13 12:06 jverdeyen