summaryrefslogtreecommitdiff
path: root/lib/spack/spack/spec.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/spack/spack/spec.py')
-rw-r--r--lib/spack/spack/spec.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 5c688d916f..1995009381 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -4418,7 +4418,10 @@ class Spec(object):
TODO: allow, e.g., ``$6#`` to customize short hash length
TODO: allow, e.g., ``$//`` for full hash.
"""
-
+ tty.warn(
+ "Using the old Spec.format method."
+ " This method was deprecated in Spack v0.15 and will be removed in Spack v0.20"
+ )
color = kwargs.get("color", False)
# Dictionary of transformations for named tokens