mirror of
https://github.com/envmodules/modules.git
synced 2026-06-10 00:56:30 +08:00
Magic cookie at the beginning of modulefiles may sometimes set a version number, for instance '#Module1.0'. Until now this version number was about a modulefile standard version. However there is no known modulefile API versioning and new modulefile commands are added along new Modules releases. So the idea here is to match this version number optionally set on magic cookie and compare it to the modulecmd.tcl release version. If modulefile sets a version number greater than modulecmd.tcl version, this modulefile is not evaluated like when no magic cookie is set at all. Add specific tests in 20-locate suite and adapt modulefile man page and MIGRATING doc. Fixes #171