From 02388323e4032e3c1fb5c3af5e32d10907bca7e9 Mon Sep 17 00:00:00 2001 From: Martin Meyerhoff Date: Thu, 18 Apr 2024 11:23:34 +0200 Subject: [PATCH] Restrict sqlite3 for the extension generator The task itself is fine, as it inherits from Rails' app generator, which has the sqlite3 restriction: https://github.com/rails/rails/blob/main/railties/lib/rails/generators/database.rb#L19. (cherry picked from commit e85fd4cd7300b1e8f4f5f142cc6f5d41003ca23e) # Conflicts: # .circleci/config.yml --- .circleci/config.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 47d9fed6a87..807e2165274 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -222,8 +222,9 @@ commands: mkdir -p /tmp/dummy_extension cd /tmp/dummy_extension bundle init - bundle add rails sqlite3 <> --skip-install - bundle add solidus --git "file://$(ruby -e"puts File.expand_path ENV['CIRCLE_WORKING_DIRECTORY']")" + bundle add rails -v "< 7.1" --skip-install + bundle add sqlite3 -v "~> 1.3" --skip-install + test -n "<>" && bundle add <> --skip-install export LIB_NAME=set # dummy requireable file bundle exec rake -rrails -rspree/testing_support/extension_rake -e'Rake::Task["extension:test_app"].invoke'