If Berkshelf is enabled, when trying to find a cookbook that's not in the cookbook_path nor there is a Berksfile in the cwd, the error message becomes unclear.
e.g.: knife spork promote production nonexistent
with _skipberkshelf: true
ERROR: Chef::Exceptions::CookbookNotFound: Could not find cookbook 'nonexistent' in any of the sources!
If Berkshelf is enabled, when trying to find a cookbook that's not in the cookbook_path nor there is a Berksfile in the cwd, the error message becomes unclear.
e.g.:
knife spork promote production nonexistent
with _skipberkshelf: true
ERROR: Chef::Exceptions::CookbookNotFound: Could not find cookbook 'nonexistent' in any of the sources!
with _skipberkshelf: false
ERROR: Berkshelf::BerksfileNotFound: Berkshelf::BerksfileNotFound