Skip to content

Upgrading launch-darkly-sdk gem pessimistically constrains gem dependencies for json and http #184

@bethanyr

Description

@bethanyr

Is this a support request?
no

Describe the bug
I am upgrading the launch-darkly-sdk version from 5.5.7 to 6.2.0 and noticed that our json gem version is being downgraded to 2.3.1 from 2.5.1.

I also would like to use the 5.0 version of the http gem but am unable to use that version because launch-darkly-sdk requires version 4.4.1

To reproduce
Add newer versions of the json and http gems to a gemfile that includes launch-darkly-sdk and run bundle install

Expected behavior
I am able to install json 2.5.1 and http 5.0, but instead get the following messages:

Bundler could not find compatible versions for gem "http":
  In Gemfile:
    http (~> 5.0)

    launchdarkly-server-sdk (~> 6.0) was resolved to 6.2.0, which depends on
      http (~> 4.4.1)

Bundler could not find compatible versions for gem "json":
  In Gemfile:
    json (~> 2.5.1)

    launchdarkly-server-sdk (~> 6.0) was resolved to 6.2.0, which depends on
      json (~> 2.3.1)

SDK version
6.2.0

Additional context
I would like to use http 5.0 which does not rely on http-parser gem (which is no longer being maintained)

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