summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/cmd/spec.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/spack/spack/cmd/spec.py b/lib/spack/spack/cmd/spec.py
index 64a4a7edc9..f1a2a08119 100644
--- a/lib/spack/spack/cmd/spec.py
+++ b/lib/spack/spack/cmd/spec.py
@@ -14,6 +14,7 @@ import spack
import spack.cmd
import spack.cmd.common.arguments as arguments
import spack.spec
+import spack.hash_types as ht
description = "show what would be installed, given a spec"
section = "build"
@@ -63,7 +64,7 @@ def spec(parser, args):
spec.concretize()
# use write because to_yaml already has a newline.
- sys.stdout.write(spec.to_yaml())
+ sys.stdout.write(spec.to_yaml(hash=ht.build_hash))
continue
kwargs['hashes'] = False # Always False for input spec