Ray's Knowledge Base
Unlock

Spack version ranges match as a prefix; HPC strings are not semver

FactVerified 2 Oct 2026Holds anywhere
Fact. A statement and the evidence for it.

Statement#

Spack version ranges match as a prefix, so :1.14 also includes 1.14.5. develop, -rc1 and 1.14 versus 1.14.0 are not defined by it. HPC version strings such as 2024.1 or 1.14.3-2 are not semver, so compare numeric parts in order with a lenient comparer.

Evidence#

Spack semantics, read during the rkb when design.

Cost accepted#

Write exact rules with test cases instead of saying "like Spack".

Also found by searching

  • Spack version range :1.14 includes 1.14.5
  • is 1.14 the same as 1.14.0 in a version range
  • HPC version strings are not semver
  • lenient version comparer for 2024.1 style strings