commercialhaskell / stack

The Haskell Tool Stack
http://haskellstack.org
BSD 3-Clause "New" or "Revised" License
3.99k stars 842 forks source link

Feature Request: An option to limit the prebuilt package cache #3245

Open Gurkenglas opened 7 years ago

Gurkenglas commented 7 years ago

Keeping prebuilt packages around takes hard drive space and saves on time that would be needed to rebuild them. Packages that will never again be used unnecessarily take up real estate. A package should be more readily thrown away if the ratio between the space it takes and the time it would take to rebuild is high. I wouldn't be surprised if some caching strategy manages 80% of the time savings with 20% of the space.

mgsloan commented 7 years ago

Considering that space is cheap, this isn't really a priority atm. Having a good way to remove things / GC them would indeed be great though - https://github.com/commercialhaskell/stack/issues/133