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.
This commit is contained in:
Michael Kuhn
2023-03-14 09:22:20 +01:00
committed by GitHub
parent 03636cd6ac
commit 5bae742826
6 changed files with 40 additions and 23 deletions

View File

@@ -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