summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Becker <becker33@llnl.gov>2023-11-13 13:27:52 -0700
committerGitHub <noreply@github.com>2023-11-13 12:27:52 -0800
commit4bd47d89dbc7110299a0714e6dcaae9f07c6c4d8 (patch)
treecc70cb9659e1cd0d532fbb26892f42991756c1ff
parent96f3c76052139ee420c7a2c758ef1ee3681928c4 (diff)
downloadspack-4bd47d89dbc7110299a0714e6dcaae9f07c6c4d8.tar.gz
spack-4bd47d89dbc7110299a0714e6dcaae9f07c6c4d8.tar.bz2
spack-4bd47d89dbc7110299a0714e6dcaae9f07c6c4d8.tar.xz
spack-4bd47d89dbc7110299a0714e6dcaae9f07c6c4d8.zip
spack diff: allow hashes from mirrors (#41043)
-rw-r--r--lib/spack/spack/cmd/diff.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/diff.py b/lib/spack/spack/cmd/diff.py
index c654f6a5b8..e321c28afb 100644
--- a/lib/spack/spack/cmd/diff.py
+++ b/lib/spack/spack/cmd/diff.py
@@ -200,6 +200,8 @@ def diff(parser, args):
specs = []
for spec in spack.cmd.parse_specs(args.specs):
+ # If the spec has a hash, check it before disambiguating
+ spec.replace_hash()
if spec.concrete:
specs.append(spec)
else: