Yes, I already use sticky.
And you are right, it's working on a simple module.
So now, I need to debug to understand why I still have "Error: Unload of sticky module skipped".
Maybe the usage of sticky is tricky on virtual modules?
Thank you for your quick answer, it helps a lot.
Best,
Adrien
________________________________
From: Xavier Delaruelle <xav...@gm...>
Sent: Monday, August 21, 2023 7:13:58 PM
To: Environment Modules usage and discussion. <mod...@li...>
Subject: Re: [Modules] Switching the version of a sticky module?
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
_______________________________________________
Modules-interest mailing list
Mod...@li...
https://lists.sourceforge.net/lists/listinfo/modules-interest
|