Skip to content

Commit

Permalink
Merge pull request #3088 from mdesantis/lock-sqlite3-version-to-1-3
Browse files Browse the repository at this point in the history
Lock sqlite3 version to 1.3
  • Loading branch information
jacobherrington authored Feb 8, 2019
2 parents 3c2cce9 + 6fe4886 commit 4c9f71f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ group :backend, :frontend, :core, :api do
when /postgres/
gem 'pg', '~> 1.0', require: false
else
gem 'sqlite3', require: false
gem 'sqlite3', '~> 1.3.6', require: false
gem 'fast_sqlite', require: false
end
end
Expand Down
4 changes: 4 additions & 0 deletions lib/sandbox.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ group :test, :development do
end
RUBY

# Ensure sqlite3 version to match ActiveRecord SQLite adapter requirement
# (see https://github.com/solidusio/solidus/issues/3087 for details)
sed -i "/gem 'sqlite3'/c\gem 'sqlite3', '~> 1.3.6'" Gemfile

bundle install --gemfile Gemfile
bundle exec rake db:drop db:create
bundle exec rails g spree:install --auto-accept --user_class=Spree::User --enforce_available_locales=true
Expand Down

1 comment on commit 4c9f71f

@peterberkenbosch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is breaking for me right now with running rake sandbox

     remove  config/initializers/new_framework_defaults_5_2.rb
      remove  bin/yarn
sed: 1: "Gemfile": extra characters at the end of G command

Please sign in to comment.