Bugfix: For spack buildcache check, Handle specs where only the hash is (#15663)
provided (#15662). Prior to this fix, the checked Spec object would not be populated, and concretization would fail. Co-authored-by: Marc Allen <mrcall@amazon.com>
This commit is contained in:
parent
07a4ac67b8
commit
a704922c29
@ -609,7 +609,7 @@ def get_concrete_spec(args):
|
||||
|
||||
if spec_str:
|
||||
try:
|
||||
spec = Spec(spec_str)
|
||||
spec = find_matching_specs(spec_str)[0]
|
||||
spec.concretize()
|
||||
except SpecError as spec_error:
|
||||
tty.error('Unable to concrectize spec {0}'.format(args.spec))
|
||||
|
Loading…
Reference in New Issue
Block a user