Closed hirose31 closed 7 years ago
@matschaffer
Could you tell me any advise?
Travis CI say in https://travis-ci.org/matschaffer/knife-solo/jobs/205694137 :
Bundler could not find compatible versions for gem "json":
In Gemfile:
chef (~> 10) ruby depends on
json (<= 1.6.1, >= 1.4.4) ruby
json (1.8.1)
But chef 10.34.6 https://rubygems.org/gems/chef/versions/10.34.6 requires json <= 1.8.1, >= 1.4.4
. Who requires json (<= 1.6.1, >= 1.4.4)
?
If you can repro locally the Gemfile.lock should tell you where the constraint is coming from. Not sure offhand though.
Or might be time to just cut a new 0.X and drop chef 10 support. I'd be fine with that.
@matschaffer
OK, The root cause is the bundler's bug.
does not install latest version of gems dependencies, installs older instead https://github.com/bundler/bundler/issues/3089
This bug was fixed in bundler v1.7.9, but the version of bundler in test environment is 1.7.6.
As a workaround, I've changed the version of chef from ~>10
to ~> 10.34
in Gemfile.chef-10. I think it is no problem because Chef 10.x will not release any more (last release is v10.34.6 in 2014-11-10).
Sounds like an optimal fix to me. Thanks for rooting it out!
On Thu, Mar 2, 2017 at 17:43 hirose31 notifications@github.com wrote:
@matschaffer https://github.com/matschaffer
OK, The root cause is the bundler's bug.
does not install latest version of gems dependencies, installs older instead bundler/bundler#3089 https://github.com/bundler/bundler/issues/3089
This bug was fixed in bundler v1.7.9, but the version of bundler in test environment is 1.7.6.
As a workaround, I've changed the version of chef from ~>10 to ~> 10.34 in Gemfile.chef-10. I think it is no problem because Chef 10.x will not release any more (last release is v10.34.6 in 2014-11-10).
— You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub https://github.com/matschaffer/knife-solo/pull/505#issuecomment-283591913, or mute the thread https://github.com/notifications/unsubscribe-auth/AAACsgctjlAtiWxwWV3oK_M32gyp3Xqhks5rhoEjgaJpZM4MMsjF .
--
-Mat
matschaffer.com
ref #504