[chef] Re: Re: Re: bundle update issues with chef11.4.4, berkshelf2.0.4 and json


Chronological Thread 
  • From: Jamie Winsor < >
  • To:
  • Subject: [chef] Re: Re: Re: bundle update issues with chef11.4.4, berkshelf2.0.4 and json
  • Date: Thu, 20 Jun 2013 16:35:50 -0700

Hey Kyle,

I'd be careful when putting Chef and Berkshelf in the same Gemfile. It's not guaranteed to work because both of these gems are "applications" and not designed to be loaded within the same Ruby VM.

It's recommended that you install Berkshelf with the gem command when possible!

-- 
Jamie Winsor
@resetexistence
https://github.com/reset

On Thursday, June 20, 2013 at 2:40 PM, Kyle Sloan wrote:

Thanks, this is now getting bundle to install without complaints.


One thing I've found useful is to specifiy the json gem in the gemfile
for this problem.

gem 'json', '~> 1.7.7'

-M

On Thu, Jun 20, 2013 at 4:39 PM, Kyle Sloan < "> > wrote:
New to ruby/gems so I might be doing something dumb here… but

I get the following error when running "bundle update"

Bundler could not find compatible versions for gem "json":
In Gemfile:
chef (= 11.4.4) ruby depends on
json (<= 1.7.7, >= 1.4.4) ruby

berkshelf (= 2.0.4) ruby depends on
json (1.8.0)




With a gem file of

-----

ruby '1.9.3'

gem 'rake', '10.0.4'
gem 'berkshelf', '2.0.4'
gem "chefspec", "1.3.1"

group :development do
gem 'chef', '11.4.4'
gem 'guard', '1.8.1'
end
------


I've looked over the Gemfiles of berkshelf and chef and none declare json directly, so I assume its some bundle trail…? Is there an easy solution to this that I can declare in the Gemfile?

I have done a manual gem install of json and gem list shows I have 1.8 and 1.7, but bundle still isn't happy.




Archive powered by MHonArc 2.6.16.

§