From 0ebd0ac8806d5334bde5a2ab61825e82571a5233 Mon Sep 17 00:00:00 2001 From: Thomas von Deyen Date: Tue, 17 Dec 2024 19:13:51 +0100 Subject: [PATCH] TMP: Test solidus_support without flickwerk solidus_support 0.11.0 introduced flickwerk for patch loading. Somehow this messes with the zeitwerk autoloader and things acting weird (inflections broken, wrong constant module nesting, etc.) Revert happens in https://github.com/solidusio/solidus_support/pull/93 This commit is for testing that the revert works. --- Gemfile | 2 ++ core/lib/generators/solidus/install/install_generator.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Gemfile b/Gemfile index dd357ea99bf..9b6e3e05912 100644 --- a/Gemfile +++ b/Gemfile @@ -89,3 +89,5 @@ end custom_gemfile = File.expand_path('Gemfile-custom', __dir__) eval File.read(custom_gemfile), nil, custom_gemfile, 0 if File.exist?(custom_gemfile) + +gem 'solidus_support', github: 'solidusio/solidus_support', branch: 'revert-flickwerk', require: false diff --git a/core/lib/generators/solidus/install/install_generator.rb b/core/lib/generators/solidus/install/install_generator.rb index 4bf4eb84336..ccd9a80c03a 100644 --- a/core/lib/generators/solidus/install/install_generator.rb +++ b/core/lib/generators/solidus/install/install_generator.rb @@ -179,6 +179,8 @@ def run_migrations def install_subcomponents apply_template_for :authentication, @selected_authentication apply_template_for :frontend, @selected_frontend + gsub_file "Gemfile", 'gem "solidus_support"', 'gem "solidus_support", github: "solidusio/solidus_support", branch: "revert-flickwerk"' + bundle_command "install" apply_template_for :payment_method, @selected_payment_method end