Closed
Description
We're keeping config.php file in git to make sure that only modules that we have enabled on local environment - will be enabled on production.
Preconditions
- Magento 2.1.7
- Remove app/etc/config.php file from .gitignore
Steps to reproduce
- Install magento via web setup wizard
- Commit file app/etc/config.php to git
- Install module via composer
composer require magepal/magento2-gmailsmtpapp:"^1.4"
- Enable module via command line
php -f bin/magento module:enable MagePal_GmailSmtpApp
Expected result
- in app/etc/config.php we see that one line was added
Actual result
- app/etc/config.php file has a lot changes
You can see following diff that I god after installing module in my gist.
It's really hard to understand what's changed, and during git merge we can broke something.
This issue reproducing with a lot another modules, I used specific one just to make it 100% reproducible.
I suggest to sort modules in config.php, it will prevent such issues.