Skip to content

configuration setting for default location for environments #19800

@sleak-lbl

Description

@sleak-lbl

I'd like to set a default path for named environments via a config.yaml setting, eg

config:
  environments_root: $HOME/my_spack_environments

Rationale

We (NERSC) have a user-facing Spack install, whose site defaults set repos, install_tree etc in the user's $HOME area. We plan to encourage users to use Spack environments, but currently the default is for the environment to be created in the (global, read-only-for-users) Spack directory. If we could set a site default for where a user's named environments will be located, this makes the usage easier.

Description

The ideal solution would be an additional configuration parameter as described above.
The alternative is to tell users to use -d every time, or not to use environments.

Additional information

General information

We are using Spack version 0.14.2

  • I have run spack --version and reported the version of Spack
  • I have searched the issues of this repo and believe this is not a duplicate

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureA feature is missing in Spack

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions