concretizer: require at least a dependency type to say the dependency holds

fixes #20784

Similarly to the previous bug, here we were deducing
conditions to be imposed on nodes that were not part
of the DAG.
This commit is contained in:
Massimiliano Culpo
2021-01-12 15:42:11 +01:00
committed by Tamara Dahlgren
parent 7162e15531
commit 488a08b464
3 changed files with 28 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
# Copyright 2013-2021 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 import *
class TestDepWithImposedConditions(Package):
"""Simple package with no dependencies"""
homepage = "http://www.example.com"
url = "http://www.example.com/e-1.0.tar.gz"
version('1.0', '0123456789abcdef0123456789abcdef')
depends_on('c@1.0', type='test')