Skip to content
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

Need a way to change global-stack-root #1148

Closed
rrnewton opened this issue Oct 12, 2015 · 1 comment
Closed

Need a way to change global-stack-root #1148

rrnewton opened this issue Oct 12, 2015 · 1 comment

Comments

@rrnewton
Copy link
Contributor

stack path --global-stack-root reports the root. But as far as I can see this is hard coded? There is no analog of stack --local-bin-path or an environment variable like STACK_YAML to control the root?

My use case is to pick between machine-local and NFS installations of stack. That is, we may have ~/.stack necessarily as an NFS-stored directory, for machines where we don't have any local mounts. But then ones where we do, we could do something like the following

if [ -d /home.local/me/.stack ]; then
  export STACK_GLOBAL_ROOT=/home.local/me/.stack
...
@borsboom
Copy link
Contributor

The STACK_ROOT environment variable sets the location. That could definitely be documented better (it's only in the installation instructions). Not sure why the inconsistency between that name and the stack path --global-stack-root argument, might be nice to fix. And having it overridable on the command-line would be nice too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants