Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't support ActiveRecord >=7.2? #148

Open
EdgeToLife opened this issue Jan 7, 2025 · 0 comments
Open

Doesn't support ActiveRecord >=7.2? #148

EdgeToLife opened this issue Jan 7, 2025 · 0 comments

Comments

@EdgeToLife
Copy link

The gem does not install via Rubygems due to a compatibility error.

Steps to reproduce the error:

  1. Create new app: rails new test_app
  2. Add gem 'active_record_upsert' to Gemfile
  3. bundle
bundle
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

    Because rails >= 7.2.2.1, < 8.0.0.beta1 depends on activerecord = 7.2.2.1
      and rails >= 7.2.2, < 7.2.2.1 depends on activerecord = 7.2.2,
      rails >= 7.2.2, < 8.0.0.beta1 requires activerecord = 7.2.2 OR = 7.2.2.1.
    And because rails >= 7.2.1.2, < 7.2.2 depends on activerecord = 7.2.1.2,
      rails >= 7.2.1.2, < 8.0.0.beta1 requires activerecord = 7.2.1.2 OR = 7.2.2 OR = 7.2.2.1.
(1) So, because rails >= 7.2.1.1, < 7.2.1.2 depends on activerecord = 7.2.1.1
      and rails >= 7.2.1, < 7.2.1.1 depends on activerecord = 7.2.1,
      rails >= 7.2.1, < 8.0.0.beta1 requires activerecord = 7.2.1 OR = 7.2.1.1 OR = 7.2.1.2 OR = 7.2.2 OR = 7.2.2.1.

    Because active_record_upsert >= 0.6.1, < 0.6.3 depends on activerecord ~> 5.0.0.beta4
      and active_record_upsert < 0.6.1 depends on activerecord ~> 5.0.0.beta2,
      active_record_upsert < 0.6.3 requires activerecord >= 5.0.0.beta2, < 5.1.A.
    And because active_record_upsert >= 0.6.3, < 0.7.0 depends on activerecord >= 5.0, < 5.1,
      active_record_upsert < 0.7.0 requires activerecord >= 5.0.0.beta2, < 5.1.
    And because active_record_upsert >= 0.7.0, < 0.7.3 depends on activerecord >= 5.0, < 5.2
      and active_record_upsert >= 0.7.3, < 0.9.5 depends on activerecord >= 5.0, < 6.0,
      active_record_upsert < 0.9.5 requires activerecord >= 5.0.0.beta2, < 6.0.
    And because active_record_upsert >= 0.9.5, < 0.10.0 depends on activerecord >= 5.0, < 6.1
      and active_record_upsert >= 0.10.0, < 0.11.0 depends on activerecord >= 5.0, < 6.2,
      active_record_upsert < 0.11.0 requires activerecord >= 5.0.0.beta2, < 6.2.
    And because active_record_upsert >= 0.11.0, < 0.11.2 depends on activerecord >= 5.2, < 7.1
      and active_record_upsert >= 0.11.2 depends on activerecord >= 5.2, < 7.2,
      activerecord >= 5.0.0.beta2, < 7.2 is required.
    And because rails >= 7.2.1, < 8.0.0.beta1 requires activerecord = 7.2.1 OR = 7.2.1.1 OR = 7.2.1.2 OR = 7.2.2 OR = 7.2.2.1 (1),
      rails >= 7.2.1, < 8.0.0.beta1 cannot be used.
    So, because Gemfile depends on rails ~> 7.2.1,
      version solving has failed.

Even if I explicitly specify the latest version in Gemfile, I still get a compatibility error.

gem 'active_record_upsert', '0.11.2' or gem 'active_record_upsert', '~> 0.11.2'

bundle
Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

Because rails >= 7.2.2, < 7.2.2.1 depends on activerecord = 7.2.2
  and rails >= 7.2.1.2, < 7.2.2 depends on activerecord = 7.2.1.2,
  rails >= 7.2.1.2, < 7.2.2.1 requires activerecord = 7.2.1.2 OR = 7.2.2.
And because rails >= 7.2.1.1, < 7.2.1.2 depends on activerecord = 7.2.1.1
  and rails >= 7.2.1, < 7.2.1.1 depends on activerecord = 7.2.1,
  rails >= 7.2.1, < 7.2.2.1 requires activerecord = 7.2.1 OR = 7.2.1.1 OR = 7.2.1.2 OR = 7.2.2.
And because rails >= 7.2.2.1, < 8.0.0.beta1 depends on activerecord = 7.2.2.1
  and active_record_upsert >= 0.11.2 depends on activerecord >= 5.2, < 7.2,
  active_record_upsert >= 0.11.2 is incompatible with rails >= 7.2.1, < 8.0.0.beta1.
So, because Gemfile depends on rails ~> 7.2.1
  and Gemfile depends on active_record_upsert = 0.11.2,
  version solving has failed.

Maybe I'm doing something wrong?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant