diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index 3bad05c6128..8a463c2f78e 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -2991,7 +2991,7 @@ def _finalize_concretization(self): # Any specs that were concrete before finalization will already have a cached # DAG hash. for spec in self.traverse(): - self._cached_hash(ht.dag_hash) + spec._cached_hash(ht.dag_hash) def concretized(self, tests=False): """This is a non-destructive version of concretize().