spack/lib/spack/spack
Vanessasaurus 6ff717f395
do not validate variants of concrete specs in solver setup (#22272)
Currently, regardless of a spec being concrete or not, we validate its variants in `spec_clauses` (part of `SpackSolverSetup`).  

This PR skips the check if the spec is concrete.

The reason we want to do this is so that the solver setup class (really, `spec_clauses`) can be used for cases when we just want the logic statements / facts (is that what they are called?) and we don't need to re-validate an already concrete spec.  We can't change existing concrete specs, and we have to be able to handle them *even if they violate constraints in the current spack*.  This happens in practice if we are doing the validation for a spec produced by a different spack install.

Signed-off-by: vsoch <vsoch@users.noreply.github.com>
2021-03-14 19:00:15 +00:00
..
build_systems Add --vanilla flag to r build system (#22166) 2021-03-08 15:53:12 -07:00
cmd adding spack -c to set one off config arguments (#22251) 2021-03-13 05:31:26 +00:00
compilers Compilers: make oneapi ifx version_regex tolerant to wrappers (#21742) 2021-02-26 14:57:40 -08:00
container copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
hooks copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
modules copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
operating_systems recognize macOS 11.1 as big sur (#20038) 2021-02-17 17:07:15 -08:00
platforms copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
reporters copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
schema bugfix: do not write empty default dicts/lists in envs (#20526) 2021-02-17 17:07:34 -08:00
solver do not validate variants of concrete specs in solver setup (#22272) 2021-03-14 19:00:15 +00:00
test adding spack -c to set one off config arguments (#22251) 2021-03-13 05:31:26 +00:00
util Allow relative paths in config files (relative to file dirname) (#21996) 2021-03-04 22:29:48 -08:00
__init__.py Update CHANGELOG and release version 2021-02-19 11:06:33 -08:00
abi.py avoid circular import (#20236) 2021-02-17 17:07:21 -08:00
architecture.py Added a context manager to swap architectures 2021-02-10 16:50:09 -08:00
binary_distribution.py Resolve (post-cherry-picking) flake8 errors 2021-02-19 11:05:53 -08:00
bootstrap.py Bootstrap clingo from sources (#21446) 2021-03-03 09:37:46 -08:00
build_environment.py Resolve (post-cherry-picking) flake8 errors 2021-02-19 11:05:53 -08:00
caches.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
ci_needs_workaround.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
ci_optimization.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
ci.py Pipelines: Fix issue that allowed failing jobs to pass (#22199) 2021-03-10 11:11:30 -08:00
compiler.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
concretize.py ci: fixes for compiler bootstrapping (#17563) 2021-02-17 17:07:27 -08:00
config.py adding spack -c to set one off config arguments (#22251) 2021-03-13 05:31:26 +00:00
database.py database: don't create a date object in query() unless it's necessary 2021-02-11 15:30:57 +01:00
dependency.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
directives.py Procedure to deprecate old versions of software (#20767) 2021-02-09 13:51:18 -05:00
directory_layout.py reduce strictness of directory layout spec-equality check (#21869) 2021-02-23 09:53:07 -08:00
environment.py make spack fetch work with environments (#19166) 2021-02-26 08:02:17 +00:00
error.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
extensions.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
fetch_strategy.py respect -k/verify-ssl-false in _existing_url method (#21864) 2021-02-22 22:00:59 +00:00
filesystem_view.py [WIP] relocate.py: parallelize test replacement logic (#19690) 2021-02-17 17:07:44 -08:00
graph.py Fix spack graph when deptypes are filtered (#22121) 2021-03-08 16:47:00 -08:00
hash_types.py New splice method in class Spec. (#20262) 2021-02-23 13:56:00 -08:00
install_test.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
installer.py Raise InstallError if any explicit specs is skipped (#21980) 2021-02-27 09:21:56 +01:00
main.py adding spack -c to set one off config arguments (#22251) 2021-03-13 05:31:26 +00:00
mirror.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
mixins.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
multimethod.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
package_prefs.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
package_test.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
package.py bugfix: add build deps to 'full hash' (#21735) 2021-02-19 00:51:00 -08:00
parse.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
patch.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
paths.py Bootstrap clingo from sources (#21446) 2021-03-03 09:37:46 -08:00
pkgkit.py Add Intel oneAPI packages (#20411) 2021-02-17 17:07:33 -08:00
projections.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
provider_index.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
relocate.py [WIP] relocate.py: parallelize test replacement logic (#19690) 2021-02-17 17:07:44 -08:00
repo.py repo: generalize "swap" context manager to also accept paths 2021-02-10 16:50:09 -08:00
report.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
reporter.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
resource.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
s3_handler.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
spec_list.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
spec.py Old concretizer: prevent unexpected propagation of external config (#20976) 2021-02-25 15:42:40 -08:00
stage.py Changed stages permissions to 750 (#21425) 2021-02-09 10:12:43 -08:00
store.py Bootstrap clingo from sources (#21446) 2021-03-03 09:37:46 -08:00
subprocess_context.py Testing: use spack.store.use_store everywhere (#21656) 2021-02-18 13:22:49 -08:00
tengine.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
url.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
user_environment.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
variant.py package sanity: ensure all variant defaults are allowed values (#20373) 2021-02-17 17:07:26 -08:00
verify.py copyrights: update all files with license headers for 2021 2021-01-02 12:12:00 -08:00
version.py version: precompile regexes in Version constructor 2021-02-11 15:30:57 +01:00