spack/lib/spack
Peter Scheibel 8281a0c5fe
Configuration: allow users to enforce hard spec constraints (#27987)
Spack doesn't have an easy way to say something like "If I build
package X, then I *need* version Y":

* If you specify something on the command line, then you ensure
  that the constraints are applied, but the package is always built
* Likewise if you `spack add X...`` to your environment, the
  constraints are guaranteed to hold, but the environment always
  builds the package
* You can add preferences to packages.yaml, but these are not
  guaranteed to hold (Spack can choose other settings)

This commit adds a 'require' subsection to packages.yaml: the
specs added there are guaranteed to hold. The commit includes
documentation for the feature.

Co-authored-by: Massimiliano Culpo <massimiliano.culpo@gmail.com>
2022-08-16 11:44:30 -07:00
..
docs Configuration: allow users to enforce hard spec constraints (#27987) 2022-08-16 11:44:30 -07:00
env Revert "strip -Werror: all specific or none (#30284)" (#30878) 2022-05-26 14:17:01 -07:00
external archspec: bump to v0.1.4 (#30856) 2022-06-07 08:51:34 +00:00
llnl Fix performance regression with spack mirror create --all (#32005) 2022-08-11 16:51:01 -07:00
spack Configuration: allow users to enforce hard spec constraints (#27987) 2022-08-16 11:44:30 -07:00