Skip to content

Attempting to install on fresh Rails 5.1 app fails #91

@patcoll

Description

@patcoll

Steps to reproduce:

  1. Use Ruby 2.4.1
  2. Use Rails 5.1.4
  3. rails new testapp
  4. Add gem to Gemfile
    • These both give the same results:
      • gem 'ldclient-rb', '~> 2.2.7'
      • gem 'ldclient-rb', github: 'launchdarkly/ruby-client', ref: 'fbccbb1'
  5. bundle

Expected behavior is that the gem would install cleanly. Instead, I get:

Bundler could not find compatible versions for gem "nio4r":
  In snapshot (Gemfile.lock):
    nio4r (= 2.1.0)

  In Gemfile:
    rails (~> 5.1.4) was resolved to 5.1.4, which depends on
      actioncable (= 5.1.4) was resolved to 5.1.4, which depends on
        nio4r (~> 2.0)

    ldclient-rb was resolved to 2.2.7, which depends on
      ld-celluloid-eventsource (~> 0.10.0) was resolved to 0.10.0, which depends on
        nio4r (~> 1.1)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

It looks like the nio4r version conflicts with that of ActionCable, a new feature/dependency of Rails 5.1.

I'm not sure what the upgrade path from nio4r 1.x to 2.x is. I looked at the docs and it was not obvious at all. Could someone shed any light on that?

Metadata

Metadata

Assignees

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