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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With