-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
Description
ruby-bandwidth-iris cannot be installed on Ruby 4.x because the underlying dependency of faraday-follow_redirects is locked to ~> 0.3.0, which in turn locked on Ruby < 4.
Environment Information
- OS Version: Does not matter
- SDK Version: Does not matter
- Environment: Ruby 4.0.1
Sample Code Snippet
bundle add ruby-bandwidth-irisStack Trace
No stack trace, but there is a message from Bundler:
Could not find compatible versions
Because ruby-bandwidth-iris >= 7.1.0 depends on faraday-follow_redirects ~>
0.3.0
and faraday-follow_redirects < 0.5.0 depends on Ruby >= 2.6, < 4,
ruby-bandwidth-iris >= 7.1.0 requires Ruby >= 2.6, < 4.
So, because Gemfile depends on ruby-bandwidth-iris >= 7.3.1, < 8.A
and current Ruby version is = 4.0.1,
version solving has failed.
Expected Behavior
The gem can be installed on Ruby 4.x.
Suggested Fix
Bump faraday-follow_redirects to 0.5.0 - it has no user facing changes comparing to 0.3.0, but has the Ruby 4 constraint removed. Diff here.