Skip to content

[2.1.7] Enabling module brakes sorting of modules in config.php #10331

Closed
@ihor-sviziev

Description

@ihor-sviziev

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

  1. Magento 2.1.7
  2. Remove app/etc/config.php file from .gitignore

Steps to reproduce

  1. Install magento via web setup wizard
  2. Commit file app/etc/config.php to git
  3. Install module via composer composer require magepal/magento2-gmailsmtpapp:"^1.4"
  4. Enable module via command line php -f bin/magento module:enable MagePal_GmailSmtpApp

Expected result

  1. in app/etc/config.php we see that one line was added

Actual result

  1. 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.

Metadata

Metadata

Labels

Issue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: Format is validGate 1 Passed. Automatic verification of issue format passed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions