New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

Comments

Projects
None yet
3 participants
@hherman1

hherman1 commented Jan 12, 2016

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

This comment has been minimized.

Contributor

borsboom commented Jan 13, 2016

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 added a commit to ruuda/stack that referenced this issue Nov 8, 2016

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 commercialhaskell#1644.

@ruuda ruuda referenced this issue Nov 8, 2016

Merged

Allow configuring programs directory #2766

2 of 2 tasks complete

ruuda added a commit to ruuda/stack that referenced this issue Nov 26, 2016

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 commercialhaskell#1644.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment