diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index fc65dcb64b8eaf..e5b9cad4312764 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -4042,7 +4042,7 @@ def format_path( def __str__(self): if self._concrete: - return self.format("{name}{@version}{/hash:7}") + return self.format("{name}{@version}{/hash}") if not self._dependencies: return self.format()