Skip to content

Override scope for spack install #25547

@spenpw

Description

@spenpw

Summary

When running the spack install command, an option should be available to specify a configuration scope from which to get build settings.

Rationale

When an administrator is installing a package globally for all users on a system to access, but the administrator has a ~/.spack directory containing configuration files for their own local packages, there is no way to install globally without removing or renaming the ~/.spack directory.

Description

I propose adding a --scope=<scope> flag to the spack install command that would allow a user to specify the configuration scope to pull variables from. If the flag is not provided, the current method should be used as the default.

Additional information

No response

General information

  • 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