Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make "module-info shell" Tcl test compatible with Lmod<=8.7.55 #682

Merged
merged 1 commit into from
Jan 11, 2025

Conversation

xdelaruelle
Copy link
Contributor

Up to Lmod 8.7.55, the Tcl command "module-info shell" only returns the current shell name and cannot test if a given string corresponds this current shell.

A patch is now merged on Lmod, so newer version (8.7.56+) will cope with the "module-info shell bash" syntax.

But in the mean time, I propose here to use a test Tcl syntax that will be compatible with both Lmod and Environment Modules: "[module-info shell] eq {bash}".

This change may only be of help for people willing to use the Tcl modules produced by SHPC with the Lmod module tool.


# config editor
config_editor: vim

# set a default container technology (singularity or podman)
container_tech: singularity
container_tech: podman
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You'll want to leave the defaults here as is (the container_tech and remove updated_at). Other than that, just update the version in shpc/version.py and add a corresponding note to the changelog! It's after midnight and I'm off to sleep, but I'll finish the review in the morning. Thanks for fixing this!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad! the settings update is a mistake (it is too early in the morning on my side ^^).

I have fixed the commit and updated the version and changelog.

Have a good night!

@xdelaruelle xdelaruelle force-pushed the tcl_module-info_shell branch from c4e1049 to 75fb304 Compare January 11, 2025 07:37
Up to Lmod 8.7.55, the Tcl command "module-info shell" only returns the
current shell name and cannot test if a given string corresponds this
current shell.

A patch is now merged on Lmod, so newer version (8.7.56+) will cope with
the "module-info shell bash" syntax.

But in the mean time, I propose here to use a test Tcl syntax that will
be compatible with both Lmod and Environment Modules: "[module-info
shell] eq {bash}".

This change may only be of help for people willing to use the Tcl
modules produced by SHPC with the Lmod module tool.
@xdelaruelle xdelaruelle force-pushed the tcl_module-info_shell branch from 75fb304 to 8704dc4 Compare January 11, 2025 07:44
@vsoch vsoch merged commit 3678a82 into singularityhub:main Jan 11, 2025
10 checks passed
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.

2 participants