-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Module uninstall does not work with composer #17780
Comments
Hi @Thundar. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
where @Thundar do you confirm that you was able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento-engcom-team give me 2.2.5 instance |
Hi @Thundar. Thank you for your request. I'm working on Magento 2.2.5 instance for you |
Hi @Thundar, here is your Magento instance. |
@magento-engcom-team I cannot reproduce the error in that instance as I have not access to this instance's console, so I cannot install any additional test module, nor remove it (also, setup folder is "secured" with a 500 error) |
The Anyway, I've never actually used the |
I have not tried it, but I think that |
Hmm, probably just undocumented, running composer 1.7.2:
Also: https://github.com/composer/composer/blob/1.7.2/src/Composer/Command/RemoveCommand.php#L45 But you don't need it if you just want to remove a module with composer, then |
@Thundar, thank you for your report.
|
@engcom-backlog-pb
Plus, the example output shows the removal from vendor/ folder and .lock file writing. You can try the same command of the example on Magento's core modules: you'll have a different result. Please tell me if I have to open a different and more detailed issue. |
@Thundar please provide more clear steps to reproduce. I'm getting |
@engcom-backlog-pb
Missing expected result (matching the guide):
@hostep and I tracked the technical cause of the bug in the above comments. |
@Thundar, thank you for your clarification. |
@engcom-backlog-pb Thanks |
@hostep I can confirm that the option |
Hi @Thundar. Thank you for your report. The fix will be available with the upcoming 2.3.1 release. |
Preconditions
Steps to reproduce
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
or, to have an update in the guide to fit the actual result.
Actual result
Missing expected result (matching the guide):
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.The text was updated successfully, but these errors were encountered: