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: command to remove old versions #1019

Closed
peterbecich opened this issue Mar 3, 2024 · 3 comments
Closed

feature request: command to remove old versions #1019

peterbecich opened this issue Mar 3, 2024 · 3 comments

Comments

@peterbecich
Copy link
Member

peterbecich commented Mar 3, 2024

Old versions of GHC, HLS, Cabal and Stack are kept by ghcup, a good idea to allow the user to revert to an older version.

I.m.o. a command to remove tool versions lower than what is currently set by the user would be useful.

This would save the effort of manually rming each old version.

Perhaps ghcup clean

Thanks

@hasufell
Copy link
Member

hasufell commented Mar 3, 2024

There's already ghcup gc --old-ghc. But that relies on what is marked Old in the ghcup metadata, so might not remove everything.

@hasufell
Copy link
Member

hasufell commented Mar 3, 2024

See #1020

This removes all "non-set versions" (of all tools). Anything more specific seems overkill to me.

@peterbecich
Copy link
Member Author

Fantastic, looks good to me, thank you

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

2 participants