You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then I should see only one solidus_auth_devise line in the Gemfile.
Current behavior
The Gemfile has two line for solidus_auth_devise :
# FIXME: Please remove this line if `solidus_auth_devise` appears anywhere else in the gemfile
# or replace it with a simple `gem 'solidus_auth_devise'` otherwise.
gem 'solidus_auth_devise' unless File.read(__FILE__).lines[__LINE__..-1].grep(/solidus_auth_devise/).any?
gem "solidus_auth_devise"
Adding solidus_auth_devise to the Gemfile was conflicting with it
being added by the solidus installer again unless
`--with-authentication=false` was provided. But the auth extension
is also required by SSF. This forced a workaround in which we skip
the `gem` entry in the Gemfile if another entry for the same gem is
present in any of the following lines. It's ugly but puts a bandaid
that will at least allow the installation to succeed.
Possible solutions
Revert 3b7ec0a. Leave SSF v3.2 without the responsibility to install solidus_auth_devise so we can remove the check on the Gemfile.
Alternatively, update the installer on v3.2 to try to install solidus_auth_devise after the frontend.
Done on master.
Check if auth devise is already installed.
Done on master.
Once fixed, we can update the template as follows:
Goal
Given I have a Rails app
When I add Solidus 3.2.4 to the Gemfile
And I install the default installation of Solidus
Then I should see only one
solidus_auth_devise
line in the Gemfile.Current behavior
The Gemfile has two line for
solidus_auth_devise
:Cause
This is a known workaround. From solidusio/solidus_starter_frontend@b9e8a7f:
Possible solutions
Revert 3b7ec0a. Leave SSF v3.2 without the responsibility to install solidus_auth_devise so we can remove the check on the Gemfile.
Alternatively, update the installer on v3.2 to try to install solidus_auth_devise after the frontend.
Check if auth devise is already installed.
Once fixed, we can update the template as follows:
The text was updated successfully, but these errors were encountered: