Closed shahzebsiddiqui closed 1 year ago
Just so I understand - what do you want us to add? An environment variable or LMOD variable for the moduleDir? What is the use case? Note that the variable is already defined in the file:
-- directory containing this modulefile, once symlinks resolved (dynamically defined)
local moduleDir = subprocess("realpath " .. myFileName()):match("(.*[/])") or "."
it just doesnt show this in output like it should say
- clingo:
podman run -it -u `id -u`:`id -g` --rm --entrypoint /opt/view/bin/clingo --env-file /global/u1/s/siddiq90/gitrepos/singularity-hpc/modules/ghcr.io/autamus/clingo/5.5.1/99-shpc.sh -v ${PWD} -w ${PWD} <container> "" "$@"
instead of the <moduleDir>
i was hoping to just copy-paste the command for podman
commands if i can just run them directly. Can't {PWD}
also be calculated automatically. Similarly the <container>
can also be replaced by name of container.
the point of shpc is that you don't need to copy paste podman commands, you just run clingo
and that alias script is run for you.
i see what you mean. Thanks for the clarification
Is your feature request related to a problem? Please describe.
Currently the modulefile doesn't show the full command for that is set in modulefile.
Shown below is a generated modulefile from downloading emacs
Describe the solution you'd like
shpc already knows the root of moduleDir that can be shown via
It would be nice if the variable is declared in the modulefile so the full path is set so basically we should have
<moduleDir>
with full path to directory.