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
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:The issus stems from the
cb2.gemspecline that defines the redis dependency:To quote chatgpt (I know, I know):
Need to modify this line as:
to allow either redis 4 or redis 5 gem to be used.
Thanks