Skip to content

Stable hook API for modulefile/modulerc evaluation #607

@xdelaruelle

Description

@xdelaruelle

It is desired some time to execute specific site procedure at the beginning or at the end of a modulefile or modulerc evaluation.

This is currently possible with either trace Tcl command or by superseding one of the internal Tcl procedure (like execute-modulefile). All of that is described at https://modules.readthedocs.io/en/latest/module.html#hooks

These methods have the disadvantage to require an internal code analysis every time Modules is upgraded at the site, to determine if the hook code or connection point should be changed.

Defining a stable API would help here. With it people would not need to review code at every upgrade. They will be able to rely on the interface that provides the API.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions