When I and a Github resource to my Berksfile like:
cookbook "cookbook-node", github: "opscode/openldap", tag: "v1.12.4"
Berkshelf duly downloads the cookbook into my directory, but it appends the reference number to the cookbook instead of the tag, so it ends up looking something like
So when this first happened I thought it would be OK, but when it comes to provisioning a machine in Virtual Box that uses this cookbook I get the error that the cookbook cannot be found.
The only way I have been able to work around this is to manually rename the directory that has been created so that it has the tag number on it instead of the reference number.
This does not feel right. I must be missing something here as I am sure there would be more issues logged if this was a problem. It might be that my understanding is off; if so please advise what I am doing wrong.
My versions are as follows:
OS: MacOS X 10.8.x
Thanks in advance, Russell
@russellseymour are you using the Vagrant-berkshelf plugin?
Yes. Sorry I forgot to mention that in my post.
I am using version 1.3.3.
@russellseymour if you're using the vagrant-berkshelf plugin then this cookbook should be copied into the mounted cookbooks share for the vagrant instance and be named the proper thing. What are you seeing?
I'm seeing the same issue and can reproduce it with Berkshelf only.
I can do a berks install that completes without errors and stores git cookbooks with the latest ref appended to the directory name.
Then I do berks list and it complains that it can't find a match for the git cookbook.
This has been fixed in the master branch.