Track tasks and feature requests
Join 40 million developers who use GitHub issues to help identify, assign, and keep track of the features and bug fixes your projects need.
Sign up for free See pricing for teams and enterprisesstack rm command #133
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
do you mean: without arguments, list all local GHC and snapshots and ask the user to re-run the command with one or several of them after stack rm
not sure to understand
+1 |
This comment has been minimized.
This comment has been minimized.
Yes, that's what I meant. My idea is that the output will be something like:
Running any of those commands will delete the relevant directories |
This comment has been minimized.
This comment has been minimized.
+1 from me, too. |
This comment has been minimized.
This comment has been minimized.
I'm slightly uneasy about calling this "rm", it just doesn't seem like the right name for it. Maybe "clean" or "cleanup"? Feel free to ignore my bikeshedding :) |
This comment has been minimized.
This comment has been minimized.
@radix I understand it may not feel like the best name, but I think lots of people are used to this one. |
This comment has been minimized.
This comment has been minimized.
Two issues arose from #376 that are relevant here:
|
This comment has been minimized.
This comment has been minimized.
@rvion Funny, I had exactly those kinds of commands in mind, and it gave me the opposite reaction. Maybe I don't understand the goal of |
This comment has been minimized.
This comment has been minimized.
What about |
This comment has been minimized.
This comment has been minimized.
I'm open to any bikeshedding, |
This comment has been minimized.
This comment has been minimized.
Perhaps Incidentally, that assumption would be contradicted if |
This comment has been minimized.
This comment has been minimized.
I don't have strong feelings with either of the names. The reason I suggested purge was that (1) |
This comment has been minimized.
This comment has been minimized.
I was going to ask about this in #115. Good to see that it is in the plans - uncontrolled proliferation of sandboxes is an annoyance with the vanilla |
This comment has been minimized.
This comment has been minimized.
I like |
This comment has been minimized.
This comment has been minimized.
Sorry, I thought I had posted a follow-up when I realized my |
This comment has been minimized.
This comment has been minimized.
Dur, I knew that (about clean). I also like purge. On Wed, Jul 22, 2015 at 2:04 PM, Christian Conkle notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
Agreed, slightly more subtlety required than I'm not familiar at all with stack's internals, but no doubt this can be done programmatically with better maintainability than some hardcoded paths… but could we enumerate here what this effectively would do? This might capture the wanted PR intent and UX in simple terms, and could help for scripting a solution in the meantime (and perhaps serve as FAQ material until it's ready—e.g. "I have old snapshots eating up GBs of disk that I'm no longer using for active projects, how can I remove them safely?"). For instance, I would assume
And
Does that appear complete? Should it operate on a local project's Aside: FWIW with reasoning shared so far, I like |
This comment has been minimized.
This comment has been minimized.
My current thought on this is to keep a timestamped log of package, project, and database usages. Not 100% sure we want to keep track of individual package usages. It would allow for more fine-grained garbage collection, but possibly for too much overhead. The overall idea is that build results which haven't been used for a while are less likely to be used in the future. Similarly to |
This comment has been minimized.
This comment has been minimized.
Is there no garbage collection for un-used GHC versions? |
This comment has been minimized.
This comment has been minimized.
@CMCDragonkai Not currently. Could probably have something similar to |
This comment has been minimized.
This comment has been minimized.
@mgsloan What does |
This comment has been minimized.
This comment has been minimized.
@CMCDragonkai I think he meant |
This comment has been minimized.
This comment has been minimized.
The garbage collection question definitely needs to be answered in some form or another. If possible, I think I might find a documentation solution preferable to a new command. It would be great if the manual discussed the directory structure of |
This comment has been minimized.
This comment has been minimized.
Moved to wishlist: https://github.com/commercialhaskell/stack/wiki/Wishlist |
This comment has been minimized.
This comment has been minimized.
As a workaround, how would you do this manually? My last attempt at purging old ghc versions manually broke my stack installation. |
This comment has been minimized.
This comment has been minimized.
@snoyberg I'm considering applying using this issue to apply for Google Summer of Code, do you have any pointers to where I could go to look at the feasibility of working on a stack rm/clean, along with other features to mend space usage? If there are other performance improvements you are thinking would specifically be useful over this one, I'd be glad to discuss those too. I've run into personal issues with stack being too large for my chromebook before, and I'm worried it would put off newcomers to |
This comment has been minimized.
This comment has been minimized.
I've deleted GHC versions by deleting
I think just the issue tracker, I don't have anything in particular. It's certainly feasible to add an |
--all
flag?Thoughts on this from anyone?