Skip to content
This repository has been archived by the owner on Oct 7, 2020. It is now read-only.

Excessive disk space usage #1491

Open
theOperand opened this issue Dec 22, 2019 · 2 comments
Open

Excessive disk space usage #1491

theOperand opened this issue Dec 22, 2019 · 2 comments

Comments

@theOperand
Copy link

When installing HIE from the AUR on Arch Linux, the build process generates many build artifacts that are not included in the package in the ~/.stack directory.

Even when HIE is installed only for the system's own GHC version, the directory is almost 5 GB in size, which includes two seemingly redundant copies of GHC (the same verison of GHC as I already have installed) and a sqlite database which is itself over 700 megabytes in size.

This makes this package one of the largest packages on my system and makes it difficult to justify using HIE, as I only have 256 GB of storage (not an unusual amount now that many laptops come with only an SSD), not all of which is available to Arch because of my Windows dual-boot, and I imagine I am far from the only one in a situation like this.

Would it be possible to use the system-provided GHC, or at least prune some of this disk space after building the package?

@lukel97
Copy link
Collaborator

lukel97 commented Dec 22, 2019

It's possible to install hie with just cabal install, which might be a bit leaner on disk space since it doesn't download another version of GHC and uses the system GHC.

@fendor
Copy link
Collaborator

fendor commented Dec 22, 2019

Also, when #1068 is implemented, it should be possible to not have compiler artifacts on the system. But I dont expect this to be implemented in the next release unless someone pushes it. However, maybe it will be implemented in the relase after that.

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

No branches or pull requests

3 participants