Skip to content
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

[Feature Request] Simple method to remove old versions of modules #485

Open
silentTeee opened this issue Dec 7, 2022 · 0 comments
Open

Comments

@silentTeee
Copy link

Could we offer a flag that could be used along with the upgrade command that allows for the automatic removal of older versions of the module candidates? Something like:
zef upgrade --autoremove @*candidates

Right now if I want to upgrade everything, zef upgrade will simply install the newer module versions in addition to the older versions.

This should certainly continue to be the default behavior, as zef can't make assumptions about what sort of scripts the user system has written and what dependencies those scripts have. But for developers whose scripts have no hard ties to specific versions or who mainly do rapid development with a lot of libraries, they may not even realize that their module collection is growing quietly with each upgrade.

I imagine this is not a simple request (I can picture challenges relating to dependencies and version numbers not always being sequential or even existing on some older repositories, etc), but I think that a feature like this would be a significant Quality-of-Life improvement for the average user.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant