summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorMichael Kuhn <michael.kuhn@ovgu.de>2023-03-14 09:22:20 +0100
committerGitHub <noreply@github.com>2023-03-14 09:22:20 +0100
commit5bae7428261fa06ec60d66d7437d329ac0962a1a (patch)
treefcde4f3075b04e7f2628afcce4f0fd84dc06f591 /etc
parent03636cd6ac2859e800a23191b18de163de223a43 (diff)
downloadspack-5bae7428261fa06ec60d66d7437d329ac0962a1a.tar.gz
spack-5bae7428261fa06ec60d66d7437d329ac0962a1a.tar.bz2
spack-5bae7428261fa06ec60d66d7437d329ac0962a1a.tar.xz
spack-5bae7428261fa06ec60d66d7437d329ac0962a1a.zip
concretizer: add mode to reuse dependencies only (#30990)
This adds a new mode for `concretizer:reuse` called `dependencies`, which only reuses dependencies. Currently, `spack install foo` will reuse older versions of `foo`, which might be surprising to users.
Diffstat (limited to 'etc')
-rw-r--r--etc/spack/defaults/concretizer.yaml5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/spack/defaults/concretizer.yaml b/etc/spack/defaults/concretizer.yaml
index df846c523a..caf500eb1f 100644
--- a/etc/spack/defaults/concretizer.yaml
+++ b/etc/spack/defaults/concretizer.yaml
@@ -13,8 +13,9 @@ concretizer:
# Whether to consider installed packages or packages from buildcaches when
# concretizing specs. If `true`, we'll try to use as many installs/binaries
# as possible, rather than building. If `false`, we'll always give you a fresh
- # concretization.
- reuse: true
+ # concretization. If `dependencies`, we'll only reuse dependencies but
+ # give you a fresh concretization for your root specs.
+ reuse: dependencies
# Options that tune which targets are considered for concretization. The
# concretization process is very sensitive to the number targets, and the time
# needed to reach a solution increases noticeably with the number of targets