basho-labs/riak-chef-cookbook

version constraints keep breaking my berkshelf

Closed this issue · 4 comments

bixu commented
Unable to satisfy constraints on package build-essential due to solution constraint (riak = 2.4.11). Solution constraints that may result in a constraint on build-essential

can we be less pessimistic about version constraints?

Can you please provide the steps and tools that produced this message so that I can reproduce locally?

bixu commented

Here's my working environment (using rbenv to manage rubies):

› berks --version
3.1.2

› chef-client --version
Chef: 11.12.4

› ruby --version
ruby 2.0.0p451 (2014-02-24 revision 45167) [x86_64-darwin13.2.0]

And here's my Berksfile:

› cat Berksfile
source "http://api.berkshelf.com"

cookbook 'apt'
cookbook 'jenkins'
cookbook 'dynect'
cookbook 'chef-client'
cookbook 'sudo'
cookbook 'openssh'
cookbook 'postfix'
cookbook 'phantomjs'
cookbook 'client-rekey'
cookbook 'python'
cookbook 'git'

# the community riak cookbook has a pessimistec version dependency on git
# (see http://docs.opscode.com/essentials_cookbook_versions.html#constraints)
#cookbook 'git', git: 'https://github.com/opscode-cookbooks/git.git', ref: 'b6070ef8998f11ad55693b051c2f65a5ffa87f3c'

## Currently shifted to my fork that allows overriding host_ip till pull request is accepted
#cookbook 'modcloth-hostname', git: 'https://github.com/modcloth-cookbooks/modcloth-hostname.git'
cookbook 'modcloth-hostname', git: 'git@github.com:ahelal/modcloth-hostname.git', tag: 'flexible_ip'

cookbook 'openswan', git: 'https://github.com/wanelo-chef/openswan.git'

cookbook 'paths', git: 'https://github.com/wanelo-chef/paths.git'

cookbook 'manta', git: 'https://github.com/bixu/manta.git'

cookbook 'java', git: 'https://github.com/socrata-cookbooks/java.git'

cookbook 'monkeypatch_chef', git: 'https://github.com/wanelo-chef/monkeypatch_chef.git'

cookbook 'protobuf', git: 'https://github.com/bflad/chef-protobuf.git'

cookbook 'android-sdk', git: 'https://github.com/gildegoma/chef-android-sdk.git'

#cookbook 'rubygems', git: 'https://github.com/royratcliffe/rubygems-cookbook.git'

cookbook 'scala', git: 'https://github.com/RiotGames/scala-cookbook.git'

cookbook 'chef-sbt', git: 'https://github.com/farmdawgnation/chef-sbt.git'

cookbook 'riak', git: 'https://github.com/basho/riak-chef-cookbook.git'

cookbook 'postgresql', git: 'https://github.com/hw-cookbooks/postgresql'

cookbook 'tomcat', git: 'http://github.com/opscode-cookbooks/tomcat'

cookbook 'chromedriver', git: 'https://github.com/RallySoftware-cookbooks/chromedriver'

cookbook 'nodejs', git: 'https://github.com/mdxp/nodejs-cookbook'

cookbook 'nginx', git: 'http://github.com/opscode-cookbooks/nginx'

cookbook 'unattended_upgrades', git: 'https://github.com/ahelal/unattended_upgrades.git'

cookbook 'postgres', git: 'https://github.com/wanelo-chef/postgres.git'

cookbook 'users', git: 'https://github.com/wanelo-chef/users.git'

cookbook 'manta-sync', git: 'https://github.com/wanelo-chef/manta-sync.git'

cookbook 'rbenv', git: 'https://github.com/fnichol/chef-rbenv.git'

cookbook 'ruby_build', git: 'https://github.com/fnichol/chef-ruby_build'

Constraint for build-essential relaxed in 170cdc9. @bixu, can you test v2.4.13?

Going to close this issue since I was not able to reproduce it on v2.4.13. Please reopen if it has not been resolved.