Skip to content

Also consider - as version number separator char#642

Merged
xdelaruelle merged 3 commits into
envmodules:mainfrom
xdelaruelle:extended_hyphen
Jul 4, 2026
Merged

Also consider - as version number separator char#642
xdelaruelle merged 3 commits into
envmodules:mainfrom
xdelaruelle:extended_hyphen

Conversation

@xdelaruelle

@xdelaruelle xdelaruelle commented Jul 4, 2026

Copy link
Copy Markdown
Collaborator

Update extended_default mechanism to also consider - as a version number separator character.

This is useful for instance when using modules generated by Spack with a module projection including the package installation hash.

Like for ., version chunks after a - are compared in a "dictionary sort" manner (10-b34d72c is greater than 10-a45e83d).

Fixes #619

Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Update extended_default mechanism to also consider "-" as a version
number separator character.

This is useful for instance when using modules generated by Spack with a
module projection including the package installation hash.

Like for ".", version chunks after a "-" are compared in a "dictionary
sort" manner (10-b34d72c is greater than 10-a45e83d).

Fixes envmodules#619

Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
@xdelaruelle xdelaruelle merged commit 91b1c21 into envmodules:main Jul 4, 2026
22 of 23 checks passed
@xdelaruelle xdelaruelle deleted the extended_hyphen branch July 4, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider - as a separator in module version specification

1 participant