Library cookbook from Github #910

Closed
russellseymour opened this Issue Nov 15, 2013 · 5 comments

Projects

None yet

4 participants

@russellseymour

Hello,

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

openldap-66542c27b0594a5de435d5f171d074fdba1caf9f

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
Berskhelf: 2.0.10
VirtualBox: 4.2.18
Vagrant: 1.3.5

Thanks in advance, Russell

@sethvargo
Contributor

@russellseymour are you using the Vagrant-berkshelf plugin?

@russellseymour

Seth,

Yes. Sorry I forgot to mention that in my post.

I am using version 1.3.3.

@reset
Member
reset commented Nov 15, 2013

@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?

@prognostikos

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.

Berkshelf 2.0.10

@sethvargo
Contributor

This has been fixed in the master branch.

@sethvargo sethvargo closed this Feb 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment