summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJohn W. Parent <45471568+johnwparent@users.noreply.github.com>2023-03-31 14:46:47 -0400
committerGitHub <noreply@github.com>2023-03-31 11:46:47 -0700
commita8e2961010e3bc010325b40a97d3b8891d980f33 (patch)
tree9aae83e0058f22df9e443bb78c15a98810536698 /etc
parenta6a364d3b8aa527eaa977a0ca150ef86ff4fb16f (diff)
downloadspack-a8e2961010e3bc010325b40a97d3b8891d980f33.tar.gz
spack-a8e2961010e3bc010325b40a97d3b8891d980f33.tar.bz2
spack-a8e2961010e3bc010325b40a97d3b8891d980f33.tar.xz
spack-a8e2961010e3bc010325b40a97d3b8891d980f33.zip
Allow configurable stage names (#36509)
Add `config:stage_name` which is a Spec format string that can customize the names of stages created by Spack. This was primarily created to allow generating shorter stage names on Windows (along with `config:build_stage`, this can be used to create stages with short absolute paths). By default, this is not set and the prior name stage format is used. This also removes the username component that is always added to Stage paths on Windows (if users want to include this, they can add it to the `build_stage`).
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/windows/config.yaml1
1 files changed, 1 insertions, 0 deletions
diff --git a/etc/spack/defaults/windows/config.yaml b/etc/spack/defaults/windows/config.yaml
index 367bf831cf..53116391cc 100644
--- a/etc/spack/defaults/windows/config.yaml
+++ b/etc/spack/defaults/windows/config.yaml
@@ -3,3 +3,4 @@ config:
concretizer: clingo
build_stage::
- '$spack/.staging'
+ stage_name: '{name}-{version}-{hash:7}'