-
Notifications
You must be signed in to change notification settings - Fork 22.1k
dep: allow sqlite3 gem to float to version 2 #51592
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
dep: allow sqlite3 gem to float to version 2 #51592
Conversation
a309e0e to
ac221c6
Compare
|
The failing test seems unrelated to this change. |
|
Thanks for the update. IMO, it requires a changelog entry. |
ac221c6 to
fd1c635
Compare
|
@byroot Thanks for adding the changelog entry! |
…35d-to-7-1 backport #51592 to 7-1-stable allowing sqlite3 v2
because the Rails adapter requires `~> 1.4` through v7.1.3.2 we can loosen this for later versions of Rails that contain rails/rails#51592 and any future releases of 7.1 that contain rails/rails#51636
* pin sqlite3 to "~> 1.4" (needed for ActiveRecord adapter for now; cf. rails/rails#51592); * remove Ruby 2.7 and 3.0 from CI workflow (EOL); --------- Co-authored-by: Laney Stroup <[email protected]>
* Starting in Rails 6, ActiveRecord's Sqlite adapter restricted the
sqlite3 gem version to ~> 1.4. This is still true in Rails 7.1. See
rails/rails#35844.
* Use the same restriction here to ensure a compatible sqlite3 version
is installed for the dev and test.
* The version restriction has been relaxed on Rails edge but it hasn't
landed in a released Rails version yet. See
rails/rails#51592.
|
Hi, do we know in which version this is going to be released ? I waited for the next patch version (7.1.3.4) but it doesn't seem to be present yet. Thanks ! |
|
@jarthod Looks like this change made it into 7.1.3.3 according to the git log. What are you seeing that is preventing you from updating sqlite3? |
|
I believe it will be in |
|
Ah, thanks for correcting me. |
|
@flavorjones @skipkayhil thank you both ! I saw it in the 7.1 changelog but without any version so it's hard to guess if it's gonna be in the next patch or minor. :) |
FYI, If it's at the top of the changelog and there is no version heading that means it's unreleased |
fix: "can't activate sqlite3 (~> 1.4), already activated sqlite3-2.0.2-arm64-darwin" until this is released rails/rails#51592
- Pinning to sqlite3 ~> 1.3 until the fix for this issue is released - rails/rails#51592 (should be in 7.1.4) - Update gemfiles using Appraisal
- Pinning to sqlite3 ~> 1.3 until the fix for this issue is released - rails/rails#51592 (should be in 7.1.4) - Update gemfiles using Appraisal
Get tests passing locally - Pinning to sqlite3 ~> 1.3 until the fix for this issue is released - rails/rails#51592 (should be in 7.1.4) - Update gemfiles using Appraisal Add development info to readme
Get tests passing locally - Pinning to sqlite3 ~> 1.3 until the fix for this issue is released - rails/rails#51592 (should be in 7.1.4) - Update gemfiles using Appraisal Add development info to readme
The ActiveRecord sqlite3 adapter is pinned to '~> 1.4'. A change to
relax this dependency was merged[1] but it didn't get released yet.
Until then, pin the sqlite3 dependency to avoid errors such as the
following:
Gem::LoadError: can't activate sqlite3 (~> 1.4), already activated sqlite3-2.0.3-x86_64-linux-gnu.
[1] rails/rails#51592
Motivation / Background
sqlite3 version v2.0.0 was just released, and has been tested against Rails. This PR will allow the sqlite3 version to float where previously it was pinned to
~> 1.4.Detail
>= 1.4from~> 1.4.Gemfileto sqlite>= 1.6.6andGemfile.lockto sqlite3 v2.0.0Additional information
The sqlite3 gem has automated integrations tests with Rails:
https://github.com/sparklemotion/sqlite3-ruby/actions/workflows/downstream.yml
Earlier today #51591 was also created in response to the 2.0.0 release.
Checklist
Before submitting the PR make sure the following are checked:
[Fix #issue-number]Tests are added or updated if you fix a bug or add a feature.CHANGELOG files are updated for the changed libraries if there is a behavior change or additional feature. Minor bug fixes and documentation changes should not be included.