iron_worker_ruby icon indicating copy to clipboard operation
iron_worker_ruby copied to clipboard

conflict between json dependancy and ruby2.5 embed json version

Open Marc3001 opened this issue 6 years ago • 0 comments

I get an error when trying to bundle exec a worker built in ruby2.5 image with this gem.

bundler: failed to load command: rake (/usr/local/bin/rake)
Gem::LoadError: You have already activated json 2.1.0, but your Gemfile requires json 1.8.6. Since json is a default gem, you can either remove your dependency on it or try updating to a newer version of bundler that supports json as a default gem.
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:313:in `check_for_activated_spec!'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:31:in `block in setup'
  /usr/local/lib/ruby/2.5.0/forwardable.rb:229:in `each'
  /usr/local/lib/ruby/2.5.0/forwardable.rb:229:in `each'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:26:in `map'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/runtime.rb:26:in `setup'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler.rb:107:in `setup'
  /usr/local/lib/ruby/site_ruby/2.5.0/bundler/setup.rb:20:in `<top (required)>'
  /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
  /usr/local/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'

Is it possible to remove json dependancy when used with ruby2.5 ?

Marc3001 avatar Jul 10 '18 17:07 Marc3001