-
-
Notifications
You must be signed in to change notification settings - Fork 196
Remove files when updating a recipe #615
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
Conversation
Thanks for starting this! So, actually, maybe the correct approach is to remove recipes just before applying them again. This would mean that the current check that asks confirmation before a file is overridden should be moved before the removal happens. I'm writing this without having opened the code, please check if it makes any sense :) |
That's a really good point
I think this would be great! But to do this, wouldn't we need the ability to "fetch the original recipe" so that we can remove it? If we ran an unconfigure option on the latest version of the recipe, it wouldn't delete files that have been removed from the recipe. Right? |
For files, we don't need to, they are already listed in symfony.lock |
Are you saying that we should, sort of, use the
That's a really good idea :). We could also show more details when viewing a recipe with the |
that, or we implement a dedicated file deletion logic that focuses on the side effect: refcounting files and removing those that are referenced only by recipes we're about to resync. |
Ping @maxhelias! What do you think about the proposals here? Do you have time to update the PR? Thanks! |
I think a dedicated file deletion logic should be a good idea but i don't know if i have time to do it, i'll try within a week. So don't hesitate if you want to fast-forward this |
Friendly ping @maxhelias if you have some time :) |
Hi @weaverryan, i'm not sure to have time to finish that |
close in favor of #667 |
Fix issue #593 and https://twitter.com/nicolasgrekas/status/1252292768296308736
@nicolas-grekas tell me if it's ok as it's a little "hack"