# Berkshelf with own modified cookbooks

**URL:** <https://discourse.chef.io/t/berkshelf-with-own-modified-cookbooks/5828>\
**Category:** Chef Infra (archive)\
**Created:** [October 19, 2014, 9:29am UTC](https://discourse.chef.io/t/berkshelf-with-own-modified-cookbooks/5828 "2014-10-19T09:29:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cyril\_Scetbon](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Cyril\_Scetbon](https://discourse.chef.io/u/Cyril_Scetbon)\
**Post date:** [October 19, 2014, 9:29am UTC](https://discourse.chef.io/t/berkshelf-with-own-modified-cookbooks/5828/1 "2014-10-19T09:29:47Z")

</div>

Hey guys,

I’m using Berskhelf with a custom version of cassandra (0.2.5) cookbook. For example, I’ve added dependancies in the “metadata.rb”.  
When I install the cookbook, berks uses my version except when it generates the graph of dependancies :

Fetching ‘cassandra’ from source at …/…/custom\_versions/cookbooks/cassandra

D, [2014-10-19T11:25:33.753038 #47923] DEBUG – : DEPENDENCIES  
D, [2014-10-19T11:25:33.753068 #47923] DEBUG – : apt  
D, [2014-10-19T11:25:33.753088 #47923] DEBUG – : cassandra  
D, [2014-10-19T11:25:33.753107 #47923] DEBUG – : path: …/…/custom\_versions/cookbooks/cassandra  
…  
D, [2014-10-19T11:25:33.753228 #47923] DEBUG – :  
D, [2014-10-19T11:25:33.753245 #47923] DEBUG – : GRAPH  
D, [2014-10-19T11:25:33.753265 #47923] DEBUG – : apt (2.6.0)  
D, [2014-10-19T11:25:33.753283 #47923] DEBUG – : boost (0.2.0)  
D, [2014-10-19T11:25:33.753300 #47923] DEBUG – : build-essential (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753319 #47923] DEBUG – : build-essential (2.1.2)  
D, [2014-10-19T11:25:33.753337 #47923] DEBUG – : cassandra (0.2.4)  
D, [2014-10-19T11:25:33.753372 #47923] DEBUG – : apt (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753390 #47923] DEBUG – : install\_from (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753407 #47923] DEBUG – : iptables (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753423 #47923] DEBUG – : java (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753440 #47923] DEBUG – : metachef (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753456 #47923] DEBUG – : runit (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753473 #47923] DEBUG – : thrift (\>= 0.0.0)  
D, [2014-10-19T11:25:33.753492 #47923] DEBUG – : volumes (\>= 0.0.0)

I can use my own name for the cookbook, but if there is a better way tell me.

## Thanks !

Cyril SCETBON

---

<div class="post-metadata">

**Author:** ![kallistec](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.chef.io/kallistec/32/23_2.png) [@kallistec](https://discourse.chef.io/u/kallistec)\
**Post date:** [October 20, 2014, 10:40pm UTC](https://discourse.chef.io/t/berkshelf-with-own-modified-cookbooks/5828/2 "2014-10-20T22:40:12Z")

</div>

Sounds like it could be a bug with berks? I’d suggest checking if there is an open issue on this, and creating one if not.

--  
Daniel DeLeo

On Sunday, October 19, 2014 at 2:29 AM, Cyril Scetbon wrote:

> Hey guys,
> 
> I'm using Berskhelf with a custom version of cassandra (0.2.5) cookbook. For example, I've added dependancies in the "metadata.rb".  
> When I install the cookbook, berks uses my version except when it generates the graph of dependancies :
> 
> Fetching 'cassandra' from source at ../../custom\_versions/cookbooks/cassandra
> 
> D, [2014-10-19T11:25:33.753038 #47923] DEBUG -- : DEPENDENCIES  
> D, [2014-10-19T11:25:33.753068 #47923] DEBUG -- : apt  
> D, [2014-10-19T11:25:33.753088 #47923] DEBUG -- : cassandra  
> D, [2014-10-19T11:25:33.753107 #47923] DEBUG -- : path: ../../custom\_versions/cookbooks/cassandra  
> ....  
> D, [2014-10-19T11:25:33.753228 #47923] DEBUG -- :  
> D, [2014-10-19T11:25:33.753245 #47923] DEBUG -- : GRAPH  
> D, [2014-10-19T11:25:33.753265 #47923] DEBUG -- : apt (2.6.0)  
> D, [2014-10-19T11:25:33.753283 #47923] DEBUG -- : boost (0.2.0)  
> D, [2014-10-19T11:25:33.753300 #47923] DEBUG -- : build-essential (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753319 #47923] DEBUG -- : build-essential (2.1.2)  
> D, [2014-10-19T11:25:33.753337 #47923] DEBUG -- : cassandra (0.2.4)
> 
> D, [2014-10-19T11:25:33.753372 #47923] DEBUG -- : apt (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753390 #47923] DEBUG -- : install\_from (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753407 #47923] DEBUG -- : iptables (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753423 #47923] DEBUG -- : java (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753440 #47923] DEBUG -- : metachef (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753456 #47923] DEBUG -- : runit (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753473 #47923] DEBUG -- : thrift (\>= 0.0.0)  
> D, [2014-10-19T11:25:33.753492 #47923] DEBUG -- : volumes (\>= 0.0.0)
> 
> I can use my own name for the cookbook, but if there is a better way tell me.
> 
> ## Thanks !
> 
> Cyril SCETBON

---

<div class="post-metadata">

**Author:** ![Cyril\_Scetbon](https://avatars.discourse-cdn.com/v4/letter/c/35a633/32.png) [@Cyril\_Scetbon](https://discourse.chef.io/u/Cyril_Scetbon)\
**Post date:** [October 22, 2014, 8:57am UTC](https://discourse.chef.io/t/berkshelf-with-own-modified-cookbooks/5828/3 "2014-10-22T08:57:01Z")

</div>

## Thanks. I'm gonna do it.

Cyril SCETBON

> On 21 Oct 2014, at 00:40, Daniel DeLeo [dan@kallistec.com](mailto:dan@kallistec.com) wrote:
> 
> Sounds like it could be a bug with berks? I’d suggest checking if there is an open issue on this, and creating one if not.
> 
> --  
> Daniel DeLeo
> 
> On Sunday, October 19, 2014 at 2:29 AM, Cyril Scetbon wrote:
> 
> > Hey guys,
> > 
> > I'm using Berskhelf with a custom version of cassandra (0.2.5) cookbook. For example, I've added dependancies in the "metadata.rb".  
> > When I install the cookbook, berks uses my version except when it generates the graph of dependancies :
> > 
> > Fetching 'cassandra' from source at ../../custom\_versions/cookbooks/cassandra
> > 
> > D, [2014-10-19T11:25:33.753038 #47923] DEBUG -- : DEPENDENCIES  
> > D, [2014-10-19T11:25:33.753068 #47923] DEBUG -- : apt  
> > D, [2014-10-19T11:25:33.753088 #47923] DEBUG -- : cassandra  
> > D, [2014-10-19T11:25:33.753107 #47923] DEBUG -- : path: ../../custom\_versions/cookbooks/cassandra  
> > ....  
> > D, [2014-10-19T11:25:33.753228 #47923] DEBUG -- :  
> > D, [2014-10-19T11:25:33.753245 #47923] DEBUG -- : GRAPH  
> > D, [2014-10-19T11:25:33.753265 #47923] DEBUG -- : apt (2.6.0)  
> > D, [2014-10-19T11:25:33.753283 #47923] DEBUG -- : boost (0.2.0)  
> > D, [2014-10-19T11:25:33.753300 #47923] DEBUG -- : build-essential (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753319 #47923] DEBUG -- : build-essential (2.1.2)  
> > D, [2014-10-19T11:25:33.753337 #47923] DEBUG -- : cassandra (0.2.4)
> > 
> > D, [2014-10-19T11:25:33.753372 #47923] DEBUG -- : apt (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753390 #47923] DEBUG -- : install\_from (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753407 #47923] DEBUG -- : iptables (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753423 #47923] DEBUG -- : java (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753440 #47923] DEBUG -- : metachef (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753456 #47923] DEBUG -- : runit (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753473 #47923] DEBUG -- : thrift (\>= 0.0.0)  
> > D, [2014-10-19T11:25:33.753492 #47923] DEBUG -- : volumes (\>= 0.0.0)
> > 
> > I can use my own name for the cookbook, but if there is a better way tell me.
> > 
> > ## Thanks !
> > 
> > Cyril SCETBON
