Skip to content

Include scope override#51165

Closed
kwryankrattiger wants to merge 2 commits intospack:developfrom
kwryankrattiger:include_scope_override
Closed

Include scope override#51165
kwryankrattiger wants to merge 2 commits intospack:developfrom
kwryankrattiger:include_scope_override

Conversation

@kwryankrattiger
Copy link
Copy Markdown
Contributor

Currently included scopes are named from the parent scope and the relative path to the parent scope. This change allows for naming an included config scope with a user specified name. This makes it possible for users to include arbitrary directories with short semantic names.

ie. .spack/configs/include.yaml

include:
  - path: /path/to/my/project/configs/
    scope: project

Currently the scope naming looks like this

$ spack config scopes
...
user:/path/to/my/project/configs/
user:/path/to/my/project/configs/:deployment
user:/path/to/my/project/configs/:develop

The output renaming the included scope to project would look like this

$ spack config scopes
...
project
project:deployment
project:develop

Currently included scopes are named from the parent scope and the
relative path to the parent scope. This allows for naming an included
config scope with a user specified name. This makes it possible for
users to include arbitrary directories with short semantic names.

Signed-off-by: Ryan Krattiger <[email protected]>
@tgamblin
Copy link
Copy Markdown
Member

tgamblin commented Nov 1, 2025

I think this is subsumed by #51162, but let me know if there is something here that is not covered there.

@tgamblin tgamblin closed this Nov 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants