diff --git a/lib/spack/spack/cmd/info.py b/lib/spack/spack/cmd/info.py index f2ce2014338..27e87392907 100644 --- a/lib/spack/spack/cmd/info.py +++ b/lib/spack/spack/cmd/info.py @@ -182,7 +182,7 @@ def lines(self): class DependencyFormatter(Formatter): def format_name(self, dep) -> str: - return dep.name + return str(dep.spec) def format_values(self, dep) -> str: return str(dt.flag_to_tuple(dep.depflag))