Hi Adrien,
Such feature is already available since the introduction if the sticky tag.
You just need to declare that the generic "pmix" name is sticky, not a
precise version:
module-tag sticky pmix
This way you are able to switch from one version to another without any error.
See example at the end of the "Sticky modules" section in:
https://modules.readthedocs.io/en/latest/MIGRATING.html#sticky-modules
Best regards,
Xavier
Le lun. 21 août 2023 à 18:23, Adrien COTTE - Groupe EOLEN
<adr...@eo...> a écrit :
>
> Hi,
>
> Many thanks again for the new "sticky_purge" config feature.
>
> But now, I would like to allow my users to switch the version of a sticky module.
>
> For example, my users must have a pmix module loaded, but no matters the version.
>
> $ module switch pmix/3.1.5 pmix/4.2.4
>
> Currently I have to use the "-f" option to perform that.
>
> Is it a good idea to add a "allow_sticky_switch_version" config or not?
>
> Best,
> Adrien
> _______________________________________________
> Modules-interest mailing list
> Mod...@li...
> https://lists.sourceforge.net/lists/listinfo/modules-interest
|