-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Problem
cpflow's thor dependency (~> 1.2.1) conflicts with Rails 8's solid_queue gem, making it impossible to add cpflow to a Rails 8 Gemfile.
cpflow (4.1.1) requires thor ~> 1.2.1 — allows 1.2.1 through 1.2.x (< 1.3.0)
solid_queue (1.1.0) requires thor ~> 1.3.1 — allows 1.3.1 through 1.3.x (< 1.4.0)
These ranges have zero overlap. No version of thor satisfies both constraints.
Since solid_queue is a default gem in Rails 8 (used for Active Job), every new Rails 8 app will hit this conflict.
Current Workaround
Install cpflow globally with gem install cpflow instead of adding it to the Gemfile. This works but is less ideal than having it in the bundle.
Suggested Fix
Relax cpflow's thor dependency from ~> 1.2.1 to ~> 1.2 (>= 1.2, < 2.0). Thor 1.3.x is backwards-compatible with 1.2.x, and cpflow uses thor for CLI argument parsing which hasn't had breaking changes across minor versions.
Environment
- Rails 8.0.4
- solid_queue 1.1.0 (thor ~> 1.3.1)
- cpflow 4.1.1 (thor ~> 1.2.1)
- Bundle resolves to thor 1.3.2