Add spack short version in config variables (#47016)

This commit is contained in:
Jordan Galby
2024-10-25 07:34:59 +02:00
committed by GitHub
parent 2912d4a661
commit f13d998d21
4 changed files with 35 additions and 14 deletions

View File

@@ -511,6 +511,7 @@ Spack understands over a dozen special variables. These are:
* ``$target_family``. The target family for the current host, as
detected by ArchSpec. E.g. ``x86_64`` or ``aarch64``.
* ``$date``: the current date in the format YYYY-MM-DD
* ``$spack_short_version``: the Spack version truncated to the first components.
Note that, as with shell variables, you can write these as ``$varname``