From 8bc0b2e0869ba5ba99258fb98615521708ca9e40 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Wed, 30 Oct 2024 12:44:51 +0100 Subject: Spec.__str__: use full hash (#47322) The idea is that `spack -e env add ./concrete-spec.json` would list the full hash in the specs, so that (a) it's not ambiguous and (b) it could in principle results in constant time lookup instead of linear time substring match in large build caches. --- lib/spack/spack/spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py index fc65dcb64b..e5b9cad431 100644 --- a/lib/spack/spack/spec.py +++ b/lib/spack/spack/spec.py @@ -4042,7 +4042,7 @@ class Spec: 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() -- cgit v1.2.3-70-g09d2