spec: remove {%compiler} in default format
This commit is contained in:
parent
964baf9402
commit
5dbbb52579
@ -2121,9 +2121,7 @@ def short_spec(self):
|
|||||||
@property
|
@property
|
||||||
def cshort_spec(self):
|
def cshort_spec(self):
|
||||||
"""Returns an auto-colorized version of ``self.short_spec``."""
|
"""Returns an auto-colorized version of ``self.short_spec``."""
|
||||||
spec_format = "{name}{@version}{%compiler.name}{@compiler.version}"
|
return self.cformat("{name}{@version}{variants}{ arch=architecture}{/hash:7}")
|
||||||
spec_format += "{variants}{ arch=architecture}{/hash:7}"
|
|
||||||
return self.cformat(spec_format)
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def prefix(self) -> spack.util.prefix.Prefix:
|
def prefix(self) -> spack.util.prefix.Prefix:
|
||||||
@ -5330,8 +5328,7 @@ def __init__(self, spec):
|
|||||||
|
|
||||||
class AmbiguousHashError(spack.error.SpecError):
|
class AmbiguousHashError(spack.error.SpecError):
|
||||||
def __init__(self, msg, *specs):
|
def __init__(self, msg, *specs):
|
||||||
spec_fmt = "{namespace}.{name}{@version}{%compiler}{compiler_flags}"
|
spec_fmt = "{namespace}.{name}{@version}{variants}{ arch=architecture}{/hash:7}"
|
||||||
spec_fmt += "{variants}{ arch=architecture}{/hash:7}"
|
|
||||||
specs_str = "\n " + "\n ".join(spec.format(spec_fmt) for spec in specs)
|
specs_str = "\n " + "\n ".join(spec.format(spec_fmt) for spec in specs)
|
||||||
super().__init__(msg + specs_str)
|
super().__init__(msg + specs_str)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user