Skip to content

Module uninstall does not work with composer #17780

Closed
@Thundar

Description

@Thundar

Preconditions

  1. Magento 2.2.5

Steps to reproduce

  1. Install Magento with composer (2.2.x)
  2. Install Sample Data with bin/magento sampledata:deploy
  3. Complete Sample Data installation: bin/magento setup:upgrade
  4. Remove one package: bin/magento module:uninstall Magento_CmsSampleData

Expected result

The expecteded result is that the result matches the guide and its sample:
https://devdocs.magento.com/guides/v2.2/install-gde/install/cli/install-cli-uninstall-mods.html

  1. vendor/module folder should be removed
  2. composer.lock file should be updated,
    or, to have an update in the guide to fit the actual result.

Actual result

screen shot 2018-08-31 at 13 33 33

Missing expected result (matching the guide):

Removing code from Magento codebase:
Loading composer repositories with package information
Updating dependencies (including require-dev)
Removing magento/module-cms-sample-data (100.2.0)
Removing Magento/CmsSampleData
Writing lock file
Generating autoload files

That means that with the next magento setup:upgrade the module will be reinstalled.
In Framework\Composer\Remove.php, function remove, line 49, the option --no-update is set, that does not match with what the guide says.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: SetupFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions