ghc-paths and other installation directories are hard-coded on Windows #1644

Closed
hherman1 opened this Issue Jan 12, 2016 · 1 comment

Projects

None yet

3 participants

@hherman1

This honestly wouldn't be a problem except that the sheer nesting depth is causing node.js/ghcjs to fail at compiling ghcjs-dom. It'd be nice if ghc-paths and others depended on STACK-ROOT, or were at least somehow variable.

@borsboom borsboom added the newcomer label Jan 13, 2016
@borsboom borsboom added this to the P2: Should milestone Jan 13, 2016
@borsboom
Contributor

Agreed. I think the GHC paths were set where they are to be "friendly" to the Windows way of doing things, but it ends up with really long paths which are so troublesome. There should at least be a way to change it. You might try changing the LOCALAPPDATA environment and see if that helps, but I don't think that's a great workaround (since lots of other things use that variable as well). A pull request would be welcome (the relevant code is here). Making the location configurable in STACK_ROOT\config.yaml is probably the right way to go (rather than use an environment variable).

@ruuda ruuda added a commit to ruuda/stack that referenced this issue Nov 8, 2016
@ruuda ruuda Do not special-case programs directory on Windows
Just use $STACK_ROOT/programs, like on other platforms. This enables the
directory to be configurable by setting $STACK_ROOT, and it removes the
hard-coded path. When downloading GHC, the archive is downloaded to this
directory as well before extraction. (This was the case anyway.) This is
perhaps less idiomatic, but $STACK_ROOT exists on Windows regardless, so
it seems better to keep everything in one place.

Fixes #1644.
8cbfca6
@ruuda ruuda referenced this issue Nov 8, 2016
Merged

Allow configuring programs directory #2766

2 of 2 tasks complete
@ruuda ruuda added a commit to ruuda/stack that referenced this issue Nov 26, 2016
@ruuda ruuda Do not special-case programs directory on Windows
Just use $STACK_ROOT/programs, like on other platforms. This enables the
directory to be configurable by setting $STACK_ROOT, and it removes the
hard-coded path. When downloading GHC, the archive is downloaded to this
directory as well before extraction. (This was the case anyway.) This is
perhaps less idiomatic, but $STACK_ROOT exists on Windows regardless, so
it seems better to keep everything in one place.

Fixes #1644.
9731235
@mgsloan mgsloan closed this in #2766 Nov 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment