-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
Remove a package #159
Comments
It should be the case already. Do you have a scenario where it does not work?
… On 22 Sep 2017, at 12:30, Maximilian Berghoff ***@***.***> wrote:
Hi,
i think when composer req adds a package composer remove schould also remove the package's files and entries. At leas tthe entry in bundles.php should be removed as it causes errors.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Yes i can an maybe it my fault: I have got a blank symfony skeleton app with only cli requested (got a workshop tomorrow for the CMF) and wanted to request So in german we call that |
When there are no errors (dependencies are clean) the bundle is unregistered, but the gerated/copied configuration file stayed. |
btw: i think i found a runnig configuration/reciepe for our routing-bundle: symfony/recipes-contrib#91 (comment) |
Based on the discussion of symfony/recipes-contrib#91 if found out, that the |
@fabpot I would suggest to two things:
Doing so an invalid state (bundle registration + no configuration, bundle registration + missing dependencies) would never exist. We should force the libraries to deliver all their dependencies, we should force the user to priory configure, when there is no reciepe. |
The first item is what Flex already does. |
Yes you are right i got the issue. And maybe we should add it into the docs or you blog: To remove a bundle which is on its way to get a reciepe, means which sill has a PR we also need the
Makes sense as flex needs to know about the reciepe. |
@fabpot are you sure that auto-generated recipes are removing the bundle class properly on package removal ? If the auto-generation happens after the filesystem removal, the class would not exist anymore. |
Yes, because on uninstall, we try to remove all possible variations of bundles names. So, we don't need the code. This algo was broken on one version of Flex (1.0.22). |
Closing as there is no bugs here. |
Hi,
i think when
composer req
adds a packagecomposer remove
schould also remove the package's files and entries. At leas tthe entry inbundles.php
should be removed as it causes errors.The text was updated successfully, but these errors were encountered: