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

Error reported when a cache file for a greater Modules version is found #515

Closed
xdelaruelle opened this issue Oct 5, 2023 · 0 comments
Closed
Labels
Milestone

Comments

@xdelaruelle
Copy link
Member

When a modulepath contains a cache file made for a greater version of Modules, a cache error is reported when loading modulefile

$ module -V
Modules Release 5.3.1 (2023-06-27)
$ module cachebuild
Creating /path/to/modulefiles/.modulecache
$ sed -i 's|#%Module5.3|#%Module5.4|' /path/to/modulefiles/.modulecache
$ module load bar
Cache ERROR: Cache file requires at least Modules version 5.4
  In '/path/to/modulefiles/.modulecache'
  Please contact <root@localhost>

Such error makes things complicated when updating Modules on a site environment where users may still be using the older version whereas cache is being built for the new one.

Note that this error is disturbing for users however it does not fail module evaluation.

Thanks to @adrien-cotte and his team for the report.

@xdelaruelle xdelaruelle added the bug label Oct 5, 2023
@xdelaruelle xdelaruelle added this to the 5.4.0 milestone Oct 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant