diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2024-05-02 05:05:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 23:05:26 -0400 |
commit | 4e876b4014cccf477dce155159198a5dc9c0730b (patch) | |
tree | dcf9970fee9b9fe298cc9c87108cc18fc3978ec4 /var | |
parent | 77a8a4fe085aa1ebf20175dffd56d422d5d7e3d5 (diff) | |
download | spack-4e876b4014cccf477dce155159198a5dc9c0730b.tar.gz spack-4e876b4014cccf477dce155159198a5dc9c0730b.tar.bz2 spack-4e876b4014cccf477dce155159198a5dc9c0730b.tar.xz spack-4e876b4014cccf477dce155159198a5dc9c0730b.zip |
Allow more control over which specs are reused (#42782)
This PR gives users finer control over which specs are reused during concretization.
The value of the `concretizer:reuse` config option now can take an object with the following properties:
- `roots`: true if reusing roots, false if reusing just dependencies
- `exclude`: list of constraints used to select reusable specs
- `include`: list of constraints used to select reusable specs
- `from`: allows to select the sources of reused specs
### Examples
#### Reuse only specs compiled with GCC
```yaml
concretizer:
reuse:
roots: true
include:
- "%gcc"
```
#### `openmpi` must be used from externals, and it must be the only external used
```yaml
concretizer:
reuse:
roots: true
from:
- type: local
exclude:
- "openmpi"
- type: buildcache
exclude:
- "openmpi"
- type: external
include:
- "openmpi"
```
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions