Skip to content

Creation of envfile to be made conditional? #406

Open
@marcodelapierre

Description

@marcodelapierre

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-input-neededThis label indicates that this issue needs more discussion or +1/-1 to decide how and if to continue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions