Difference between include_recipe and depends


What’s the difference between using include_recipe and using depends in metadata.rb


A depends in metadata declares a “dependency” which means that all the resources, libraries, and recipes are accessible to any cookbook that includes another cookbook - it doesn’t _run antyhing, only make them available.

include_recipe actually runs a recipe that has been depended on - so an include_recipe requires a depends but not the other way around.