# More Berkshelf anomalies?

**URL:** <https://discourse.chef.io/t/more-berkshelf-anomalies/6424>\
**Category:** Chef Infra (archive)\
**Created:** [March 18, 2015, 7:17pm UTC](https://discourse.chef.io/t/more-berkshelf-anomalies/6424 "2015-03-18T19:17:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_F](https://avatars.discourse-cdn.com/v4/letter/c/fbc32d/32.png) [@Chris\_F](https://discourse.chef.io/u/Chris_F)\
**Post date:** [March 18, 2015, 7:17pm UTC](https://discourse.chef.io/t/more-berkshelf-anomalies/6424/1 "2015-03-18T19:17:45Z")

</div>

I see two anomalies.

(Installed as gem, i.e., NOT ChefDk)  
berks -v  
3.2.3

I have a flexnet-monitoring cookbook, and its metadata.rb looks like:

name ‘flexnet-monitoring’  
(snip)  
version ‘0.4.0’

I have an environment cookbook whose Berksfile looks like:

source “[https://supermarket.chef.io](https://supermarket.chef.io)”

metadata

# Community cookbooks

cookbook 'chef-client’  
cookbook 'powershell’  
cookbook ‘push-jobs’

# Internal cookbooks

cookbook ‘flexnet-monitoring’, git: ‘git@git-server.domain.com:projectcookbooks/flexnet-monitoring.git’

…and the metadata.rb looks like

name ‘mycookbook\_env\_dev’  
(snip)  
version ‘0.1.0’

depends ‘flexnet-monitoring’, ‘~\> 0.4.0’

Anomaly 1:

When I do a berks install I get

Unable to satisfy constraints on package flexnet-monitoring~\> 0.4.0, which does not exist, due to solution constraint (mycookbook\_env\_dev = 0.1.0). Solution constraints that may result in a constraint on flexnet-monitoring~\> 0.4.0: [(mycookbook\_env\_dev = 0.1.0) -\> (flexnet-monitoring~\> 0.4.0 \>= 0.0.0)]  
Missing artifacts: flexnet-monitoring~\> 0.4.0

If I remove the version constraint from the mycookbook\_env\_dev’s metadata.rb file, that is,

name ‘mycookbook\_env\_dev’  
(snip)  
version ‘0.1.0’

depends ‘flexnet-monitoring’

…and do a berks install, I get

Fetching ‘flexnet-monitoring’ from [git@git-server.domain.com](mailto:git@git-server.domain.com):projectcookbooks/flexnet-monitoring.git (at master)

Using flexnet-monitoring (0.4.0) from [git@git-server.domain.com](mailto:git@git-server.domain.com):projectcookbooks/flexnet-monitoring.git (at master)

Why does having the ‘~\>0.4.0’ constraint fail?

Anomaly 2:

Now if I do a berks list, I get

- flexnet-monitoring (0.4.0) from [git@git-server.domain.com](mailto:git@git-server.domain.com):projectcookbooks/flexnet-monitoring.git (at master)

And if I do berks shelf uninstall flexnet-monitoring, I get

Cookbook ‘flexnet-monitoring’ not found in the Berkshelf shelf!

Why?

Chris
