Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modulefiles templates: shell aliases always defined #628

Conversation

marcodelapierre
Copy link
Contributor

Signed-off-by: Marco De La Pierre marco.delapierre@gmail.com

Signed-off-by: Marco De La Pierre <marco.delapierre@gmail.com>
@marcodelapierre
Copy link
Contributor Author

Hi @vsoch I have noticed this today, as I was testing the latest release 0.1.18 vs 0.0.57, which we have been using so far on our supercomputer.
I am proposing to always generate the shell aliases for things like -shell, -container and so on, even when we use wrapper scripts.
Did you remove them for some specific issue or bug?

From my perspective, I understand It is a tiny inconsistency, but it should not generate big issues; our rationale was that these aliases are by nature mostly used interactively anyway, so should not pose any issue.
On the contrary, not having them can be quite annoying, as it takes out functionality; in particular -shell and -container can be quite often used.
In summary, I think reinstating them is the lesser evil.

Eventually, in the future we might provide wrapper scripts for these as well, to be used when wrappers are turned on for the main application commands.

What do you think?

Signed-off-by: Marco De La Pierre <marco.delapierre@gmail.com>
@vsoch
Copy link
Member

vsoch commented Feb 3, 2023

@marcodelapierre I think if wrapper scripts are generated, we generate the aliases but as scripts instead. The last time we chat about it was for this issue #565 and I followed up with #586 that ensured they were generated, e.g., here:

generated += gen.alias_wrappers(aliases, default_wrapper, constructor_kwargs)

So if they aren't in the bin of the module directory, that's probably a bug.

@marcodelapierre
Copy link
Contributor Author

Aaaaargh!! It is really the sign that my weekend is looming...!!

I even tested -shell, then forgot, did not find it in the module file, branch out, open the PR ... 🙈
All good, no bug, apart from the weekend bug..!!

Thanks for your patience ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants