diff --git a/core/lib/generators/solidus/install/app_templates/frontend/classic.rb b/core/lib/generators/solidus/install/app_templates/frontend/classic.rb index bff9af7c178..a5f60a9de47 100644 --- a/core/lib/generators/solidus/install/app_templates/frontend/classic.rb +++ b/core/lib/generators/solidus/install/app_templates/frontend/classic.rb @@ -3,7 +3,10 @@ if Bundler.locked_gems.dependencies['solidus_frontend'] say_status :skipping, "solidus_frontend is already in the bundle", :blue else - bundle_command("add solidus_frontend") + # `solidus_frontend` is not sourced from rubygems if the solidus gem was not. + github_solidus_frontend = '--github solidusio/solidus_frontend' unless solidus.nil? || solidus.source.is_a?(Bundler::Source::Rubygems) + + bundle_command("add solidus_frontend #{github_solidus_frontend}") end # Disable solidus_bolt installation from solidus_frontend as it can be diff --git a/solidus.gemspec b/solidus.gemspec index 829f574e637..a6e83851303 100644 --- a/solidus.gemspec +++ b/solidus.gemspec @@ -26,5 +26,5 @@ Gem::Specification.new do |s| s.add_dependency 'solidus_core', s.version s.add_dependency 'solidus_sample', s.version - s.add_dependency 'solidus_frontend', '~> 3.3.0.alpha' + s.add_dependency 'solidus_frontend', '~> 3.4.0.dev' end