From 4bd47d89dbc7110299a0714e6dcaae9f07c6c4d8 Mon Sep 17 00:00:00 2001 From: Greg Becker Date: Mon, 13 Nov 2023 13:27:52 -0700 Subject: [PATCH] spack diff: allow hashes from mirrors (#41043) --- lib/spack/spack/cmd/diff.py | 2 ++ 1 file changed, 2 insertions(+) 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: