-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Lock sqlite3 version to 1.3 #3088
Lock sqlite3 version to 1.3 #3088
Conversation
Related to solidusio#3087. ActiveRecord 5.2.2 has sqlite3 dependency locked to ~> 1.3.6, we need to reflect that in order to avoid conflicts due to sqlite3 1.4 version releasement.
sweet! I was just working on this. Trying to figure out how to "hack" the generated |
This has been fixed in Rails (I think just in master for now). gsub_file "Gemfile", /^gem 'sqlite3'$/, 'gem "sqlite3", "~> 1.3.6"' I think it's a bit more "Rails friendly". |
@kennyadsl cat <<RUBY >> Gemfile
gem 'solidus', path: '..'
gem 'solidus_auth_devise', '>= 2.1.0'
gem 'rails-i18n'
gem 'solidus_i18n'
group :test, :development do
platforms :mri do
gem 'pry-byebug'
end
end
RUBY I could convert both of them to the "Rails template way", WDYT? |
If possible, that would not be bad in my opinion. But maybe we can do that into another PR? |
@kennyadsl 👍 I'll do that in another PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am good with this, but what do you think about adding a comment in sandbox.sh explaining why we need to do this? Maybe we could just link to #3087.
9fa3dcc
to
519fbf4
Compare
@jacobherrington here we are! can you please check that what I wrote makes sense? I feel it could be expressed better |
Fixes solidusio#3087. `rails new` generates a Gemfile with `gem 'sqlite3'` dependency declaration, but since sqlite3 1.4 has been released it conflicts with activerecord sqlite3 adapter dependency declaration, which is `sqlite3 ~> 1.3.6`.
519fbf4
to
6fe4886
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
This is not working in |
@peterberkenbosch yeah, we talked about that. The only way to use |
Rails 5.2.2 was not compatible with sqlite 1.4 and needed us to lock sqlite to 1.3.x to being able to complete the bundle without errors See solidusio#3088 and https://github.com/rails/rails/blob/94b5cd3a20edadd6f6b8cf0bdf1a4d4919df86cb/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb This is not true anymore starting from Rails 5.2.3 and we can safely remove this constraint: https://github.com/rails/rails/blob/b9ca94caea2ca6a6cc09abaffaad67b447134079/activerecord/lib/active_record/connection_adapters/sqlite3_adapter.rb
Fixes #3087. It includes the following changes:
Lock sqlite3 version to 1.3
ActiveRecord 5.2.2 has sqlite3 dependency locked to
~> 1.3.6
, we need to reflect that in order to avoid conflicts due to sqlite3 1.4 version releasement.Fix sqlite3 version conflict on sandbox generation
rails new
generates a Gemfile withgem 'sqlite3'
dependency declaration, but since sqlite3 1.4 has been released it conflicts with activerecord sqlite3 adapter dependency declaration, which issqlite3 ~> 1.3.6
.Checklist: