Skip to content

conflict between json dependancy and ruby2.5 embed json version #49

@Marc3001

Description

@Marc3001

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions