summaryrefslogtreecommitdiff
path: root/var/spack/repos/builtin.mock/packages
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-06-16 18:25:56 +0200
committerGitHub <noreply@github.com>2022-06-16 09:25:56 -0700
commit895ceeda388d3bff406077a5c3689102d53a34c0 (patch)
tree1742d6d98a3b3e28583ded06f90260a287f21ad2 /var/spack/repos/builtin.mock/packages
parent6f1e3a4ad32d629fe68c34732e6d211d053a8c0a (diff)
downloadspack-895ceeda388d3bff406077a5c3689102d53a34c0.tar.gz
spack-895ceeda388d3bff406077a5c3689102d53a34c0.tar.bz2
spack-895ceeda388d3bff406077a5c3689102d53a34c0.tar.xz
spack-895ceeda388d3bff406077a5c3689102d53a34c0.zip
concretize.lp: impose a lower bound on the number of version facts if a solution exists (#31142)
* concretize.lp: impose a lower bound on the number of version facts if a valid version exists fixes #30864 * Add a unit test
Diffstat (limited to 'var/spack/repos/builtin.mock/packages')
-rw-r--r--var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py b/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py
new file mode 100644
index 0000000000..2b964948c0
--- /dev/null
+++ b/var/spack/repos/builtin.mock/packages/non-existing-conditional-dep/package.py
@@ -0,0 +1,16 @@
+# Copyright 2013-2022 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+from spack.package import *
+
+
+class NonExistingConditionalDep(Package):
+ """Simple package with no source and one dependency"""
+
+ homepage = "http://www.example.com"
+
+ version('2.0')
+ version('1.0')
+
+ depends_on('dep-with-variants@999', when='@2.0')