-
Notifications
You must be signed in to change notification settings - Fork 18
Strainer::Error::CookbookNotFound - Could not find 'foo' in any of the sources. #37
Comments
This might sound like a silly question, but is that cookbook in the path? |
Doesn't it have to be? berkshelf itself finds my cookbook at that path or it would error. It's obviously not in berkshelf's cookbook directory as it's just referencing one on my local machine. for reference from berks install |
@akatz right - it defaults to looking in |
I've been bitten by this as well. It looks like Strainer can't work with "local" sources that are defined in the Berksfile with a path. The following will fail: cookbook 'my-cookbook', :path => '../my-cookbook' If you define the same cookbook as a remote source fetched via git, it worked just fine as this it will then be downloaded into the .berkshelf/cookbooks directory. For more details, see: berkshelf/berkshelf#227 |
You can bypass this issue with using ruby to fill the parent path in your Berksfile
You'll also need to have a valid .chef/knife.rb |
I am having the same problem with Strainer 3.4.0 and Berkshelf 3.3.0 with git repos. |
Using berkshelf, with a particular cookbook pointed at a local path, I get this errror when trying to
bundle exec strainer test foo -d
The text was updated successfully, but these errors were encountered: