-
Notifications
You must be signed in to change notification settings - Fork 843
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 GHC/git tarballs after installation #376
Comments
The compressed file was actually a conscious choice based on requests from people who wanted to avoid an extra download in the case of needing (for some reason) to delete the installation. How do you feel about keeping that around? I agree with you completely on the uncompressed. There's no reason to keep that. |
The compressed tarball is something like 70-80 MB. That's probably reasonable on all but the most space-starved systems. I wouldn't be outraged at having it maintained by default, but there's a potential for accumulating cruft. The set of conditions under which Currently, |
It's intentional that stack installs programs to |
But why are the snapshots in (These are real, not rhetorical questions, by the way; the MS docs I've seen are pretty vague on policy here, and it's been a long time since I've worked in a roaming environment. At that time, the big pain point was that logging in took forever because of various huge blobs in the roaming folder that had to be copied each time. I don't know if that's still an important concern.) |
The real reason is because that's what |
Deleting the .tar file is implemented on master now. I'd like to support deleting old GHC installations and archives via the planned |
I think it does |
In conjunction with the fix and #133, this issue is mostly resolved. Moving from "bug fix" to "design question" mode: is preserving the compressed tarball the correct default action? The use case @snoyberg mentioned was allowing reinstallation of GHC without redownloading. Since the stack GHC installation is (presumably) immutable and doesn't affect anything but stack, wouldn't space-saving be the only reason to delete it? It seems like a relatively narrow use-case; I'm imagining someone who wants to occasionally test with multiple compilers on a limited connection without leaving a gig or two of GHC installation lying around. Set against that is a 10% space bloat for all users. Would it make more sense to provide and document a |
I still think it's the correct default action: disk space is cheap, and there are certainly ways someone could accidentally mess up their installation and want to be able to easily reinstall. It can also help with debugging if we suspect there may be some corruption in place. |
Despite the disagreement on design here, I'm going to close this issue, as I don't think we're going to get further on agreement. |
As of 0.0.2, when
stack
installs GHC and git on Windows, it leaves both the compressed and uncompressed (!) installation tarballs inAppData\Local\Programs\stack\i386-windows
. This consumes almost 900MB unnecessarily. Manual deletion resolves but should be unnecessary.The text was updated successfully, but these errors were encountered: