app/overrides files loading twice #4877
Labels
confirmed
Validated report
good first issue
Wanted, but lacking time to work on it and might be a good fit for a first contribution
type:bug
Error, flaw or fault
Hello, it looks like files under
app/overrides
are loading twice when following instructions from: https://guides.solidus.io/customization/customizing-the-core/#using-overrides:~:text=config/application.rbI noticed this issue because I decided to add a constant in one of the overrides and was getting warnings from ruby; besides the warnings, it doesn't seem to cause any other issues.
deface
gem seems to be loading the files without a need to change theconfig/application.rb
.deface
is not a direct dependency ofsolidus
but comes with recommended gemssolidus_auth_devise
andsolidus_paypal_commerce_platform
Solidus Version:
3.3.0
To Reproduce
Clone the following repo: https://github.com/diegomichel/solidus-override-issue
Run
bundle exec rails c
. You will see a message printed twice as defined onapp/overrides/amazing_store/spree/product/add_global_hidden_flag.rb
Current behavior
App loads
app/override
files twiceExpected behavior
To load
app/override
files onceScreenshots
![Screenshot 2023-01-25 at 16 07 25](https://user-images.githubusercontent.com/848433/214712296-c88f0e57-2cc1-4bc4-8de8-b2345e30a7d4.png)
![Screenshot 2023-01-25 at 16 07 35](https://user-images.githubusercontent.com/848433/214712310-4a2455d7-3b08-49af-9cb8-b259e1a9a374.png)
caller diff from first and second time it loads
![Screenshot 2023-01-25 at 15 41 56](https://user-images.githubusercontent.com/848433/214712369-31a6dacc-9cc9-44f1-9602-49837570a029.png)
The text was updated successfully, but these errors were encountered: