Why is stack not using the home directory on Windows?

30 views
Skip to first unread message

Hristo Hristov

unread,
Jul 19, 2017, 7:58:27 AM7/19/17
to haskell-stack
Hello

On Windows stack is downloading stuff to the root drive C:\sr\config.yaml

Why isn't stack using %LOCALAPPDATA% or any of the appropiate Windows paths: https://technet.microsoft.com/en-us/library/cc749104(v=ws.10).aspx

Is it possible to tell stack where to put what it downloads?

Michael Snoyman

unread,
Jul 21, 2017, 1:05:38 AM7/21/17
to Hristo Hristov, haskell-stack

How did you install Stack? Do you possibly have the STACK_ROOT environment variable set?


--
You received this message because you are subscribed to the Google Groups "haskell-stack" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haskell-stac...@googlegroups.com.
To post to this group, send email to haskel...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/haskell-stack/a479bb4f-3693-46b8-880c-55249fa0ba08%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Emanuel Borsboom

unread,
Jul 21, 2017, 9:56:35 AM7/21/17
to snoyberg, Hristo Hristov, haskell-stack
The Windows installer sets STACK_ROOT to c:\sr by default (see https://github.com/commercialhaskell/stack/issues/2468), but that behaviour can be disabled by unchecking a checkbox.  That's because basically nothing works if your STACK_ROOT is in %LOCALAPPDATA% because you end up hitting the path length limitations (and GHC/libraries still haven't been updated to support long paths in Windows).

Hristo Hristov

unread,
Jul 22, 2017, 10:51:34 AM7/22/17
to haskell-stack


Thank you, Michael and Emanuel for pointing, out STACK_ROOT!
Reply all
Reply to author
Forward
0 new messages