diff --git a/lib/spack/spack/ci.py b/lib/spack/spack/ci.py index f126128322..4c21772ff9 100644 --- a/lib/spack/spack/ci.py +++ b/lib/spack/spack/ci.py @@ -205,7 +205,7 @@ def _extract_dag(specs: List[spack.spec.Spec]) -> Tuple[PlainNodes, PlainEdges]: nodes: PlainNodes = {} edges: PlainEdges = defaultdict(set) - for edge in traverse.traverse_edges(specs): + for edge in traverse.traverse_edges(specs, cover="edges"): if (edge.parent and edge.parent.external) or edge.spec.external: continue child_id = _spec_ci_label(edge.spec)