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

Comments

Projects
None yet
2 participants
@rrnewton
Contributor

rrnewton commented Oct 12, 2015

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

This comment has been minimized.

Contributor

borsboom commented Oct 12, 2015

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.

sjakobi added a commit to sjakobi/stack that referenced this issue Apr 1, 2016

@mgsloan mgsloan closed this in c493728 Apr 12, 2016

mgsloan added a commit that referenced this issue Apr 12, 2016

Merge pull request #1983 from sjakobi/1148-stack-root
Deprecate 'stack path --global-stack-root', add '--stack-root' options – #1148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment