Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing Stack's storage directory on Windows

On Windows, Stack uses %AppData/stack as its storage directory by default. Is there a way to change that? I've only managed to move executables (by setting local-bin-path in the global config.yaml file), but I'd like all GHC versions, compiled packages, etc. to be stored somewhere else.

like image 768
Cactus Avatar asked Jan 22 '26 06:01

Cactus


1 Answers

This isn't currently supported, but it should be fairly straightforward to add. I've added a ticket for it here: https://github.com/commercialhaskell/stack/issues/2067

The relevant code is here https://github.com/commercialhaskell/stack/blob/6f7871b893de2792ad9b9a02d934dfa72f8d9090/src/Stack/Config.hs#L266

like image 61
mgsloan Avatar answered Jan 27 '26 01:01

mgsloan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!