-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Description
Environment
-
Ruby Version: v3.2.2
-
Rails Version: v8.0.0
-
Error Log:
Could not find compatible versions
Because every version of africastalking depends on httparty ~> 0.13.7
and httparty >= 0.12.0, < 0.14.0 depends on json ~> 1.8,
every version of africastalking requires json ~> 1.8.
(1) So, because rubocop >= 1.31.1 depends on json ~> 2.3,
every version of africastalking is incompatible with rubocop >= 1.31.1.
Because rubocop-rails-omakase < 1.1.0 depends on rubocop-rails >= 0
and rubocop-rails-omakase >= 1.1.0 depends on rubocop >= 1.72,
either rubocop-rails >= 0 or rubocop >= 1.72.
And because every version of rubocop-rails depends on rubocop >= 1.72.1, < 2.0,
rubocop >= 1.72 is required.
And because every version of africastalking is incompatible with rubocop >= 1.31.1 (1),
africastalking cannot be used.
So, because Gemfile depends on africastalking >= 0,
version solving has failed.Issue Description
When adding africastalking to a fresh Rails 8 project, Bundler fails to resolve dependencies due to a conflict between the json gem versions:
africastalkingdepends onhttparty ~> 0.13.7, which requiresjson ~> 1.8.- RuboCop >= 1.31.1 (via
rubocop-rails-omakase) requiresjson ~> 2.3.
This makes the gems incompatible in modern Rails/Ruby setups.
Steps to Reproduce
- Create a new Rails 8 project:
rails new myapp - Add
gem 'africastalking'to theGemfile - Run
bundle install
Expected Behavior
Dependencies resolve successfully.
Workarounds Tried (Optional)
- Forcing
jsonto~> 1.8works but (I'm only using this as a temporary fix.)
Suggested Fix
Update the africastalking gem’s dependencies to:
- Allow newer versions of
httparty(which supportjson >= 2.0), or - Relax the
jsondependency constraints.
Metadata
Metadata
Assignees
Labels
No labels