One minor, last thought I had while scrolling through the current setup for envfile.
Always having the --envfile "..." in the modulefile, even when it's not used, makes it quite less readable.
I was then wondering whether it should be made conditional?
...Actually I see it's already conditional in the modulefile templates: {% if envfile %}.
So it's just about ensuring that envfile is set to null if no envs are defined in the container yaml?
main/container/singularity.py: envfile=self.settings.environment_file,
main/container/docker.py: envfile=self.settings.environment_file,
One minor, last thought I had while scrolling through the current setup for envfile.
Always having the --envfile "..." in the modulefile, even when it's not used, makes it quite less readable.
I was then wondering whether it should be made conditional?
...Actually I see it's already conditional in the modulefile templates:
{% if envfile %}.So it's just about ensuring that
envfileis set to null if no envs are defined in the container yaml?