Skip to content

Gem Spec Redis versions mean that redis 4.x is not supported #16

@acunningham-fz

Description

@acunningham-fz

Hi there,

We are still using the 4.x version of the Redis Gem. We wanted to use the CB2 gem for the circuit breaker pattern but if will not install with bundler - the failure is as follows:

because cb2 >= 0.0.4 depends on redis >= 5, < 6.A
  and cb2 < 0.0.4 depends on redis ~> 3.1,
  redis ~> 3.1 OR >= 5, < 6.A is required.
So, because Gemfile depends on redis ~> 4,
  version solving has failed.

The issus stems from the cb2.gemspec line that defines the redis dependency:

s.add_dependency "redis", "~> 5", ">= 4"

To quote chatgpt (I know, I know):

the acceptable versions of the redis gem must satisfy both constraints:
>= 4
>= 5.0 and < 6.0 (from ~> 5)
Which effectively means:
The allowed versions are >= 5.0 and < 6.0.
Because even though >= 4 is specified, the ~> 5 restricts it to versions starting at 5.0.

Need to modify this line as:

s.add_dependency "redis", ">= 4"

to allow either redis 4 or redis 5 gem to be used.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions