Skip to content

Commit 95e58eb

Browse files
committed
also determine version suffix for RISC-V 2025.06
1 parent 23f9ac0 commit 95e58eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

init/modules/EESSI/2023.06.lua

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,13 @@ if (subprocess("uname -m"):gsub("\n$","") == "riscv64") then
3535
"For more details about this repository, see https://www.eessi.io/docs/repositories/riscv.eessi.io/.")
3636
end
3737
elseif (eessi_version == "2025.06") then
38+
eessi_version_override = os.getenv("EESSI_VERSION_OVERRIDE") or ""
39+
index_suffix = string.find(eessi_version_override, '-')
40+
if index_suffix then
41+
eessi_software_layer_version_suffix = string.sub(eessi_version_override, index_suffix)
42+
end
3843
eessi_repo = "/cvmfs/dev.eessi.io/riscv"
39-
eessi_version = os.getenv("EESSI_VERSION_OVERRIDE") or eessi_version
40-
eessi_prefix = pathJoin(eessi_repo, "versions", eessi_version)
44+
eessi_prefix = pathJoin(eessi_repo, "versions", eessi_version .. eessi_software_layer_version_suffix)
4145
if mode() == "load" then
4246
LmodMessage("This EESSI production version only provides a RISC-V compatibility layer,\n" ..
4347
"software installations are provided by the EESSI development repository at " .. eessi_repo .. ".\n")

0 commit comments

Comments
 (0)