Skip to content

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

Closed
@rrnewton

Description

@rrnewton

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
...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions