summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2024-01-22 22:18:00 +0100
committerGitHub <noreply@github.com>2024-01-22 13:18:00 -0800
commit66813460c0777a4a2bbeb071db3cd7318f382811 (patch)
treeb338c03fcb18881603fc4f0822aa107b75008c6d /var
parented9d49591545c3c3b9286345f89fd9929235ecfd (diff)
downloadspack-66813460c0777a4a2bbeb071db3cd7318f382811.tar.gz
spack-66813460c0777a4a2bbeb071db3cd7318f382811.tar.bz2
spack-66813460c0777a4a2bbeb071db3cd7318f382811.tar.xz
spack-66813460c0777a4a2bbeb071db3cd7318f382811.zip
Add syntactic sugar for "strong preferences" and "conflicts" (#41832)
Currently requirements allow to express "strong preferences" and "conflicts" from configuration using a convoluted syntax: ```yaml packages: zlib-ng: require: # conflict on %clang - one_of: ["%clang", "@:"] # Strong preference for +shared - any_of: ["+shared", "@:"] ``` This PR adds syntactic sugar so that the same can be written as: ```yaml packages: zlib-ng: conflict: - "%clang" prefer: - "+shared" ``` Preferences written in this way are "stronger" that the ones documented at: - https://spack.readthedocs.io/en/latest/packages_yaml.html#package-preferences
Diffstat (limited to 'var')
0 files changed, 0 insertions, 0 deletions