Because currently when there is a "depends" defined in the metadata.rb and it's not uploaded before, the result is an error:
Restoring cookbook ["mycookbook"]
Uploading mycookbook [1.4.0]
ERROR: Cookbook mycookbook depends on cookbooks which are not currently
ERROR: being uploaded and cannot be found on the server.
ERROR: The missing cookbook(s) are: 'somedependencycookbook' version '>= 1.0.0'
This is annoying because there is no order in which the cookbooks are restored. So there's no telling if the dependency will be restored before or after you actually need it.
Because currently when there is a "depends" defined in the metadata.rb and it's not uploaded before, the result is an error:
Restoring cookbook ["mycookbook"] Uploading mycookbook [1.4.0] ERROR: Cookbook mycookbook depends on cookbooks which are not currently ERROR: being uploaded and cannot be found on the server. ERROR: The missing cookbook(s) are: 'somedependencycookbook' version '>= 1.0.0'
This is annoying because there is no order in which the cookbooks are restored. So there's no telling if the dependency will be restored before or after you actually need it.