Skip to content

add support for setting environment variables via 'pushenv' with modextravars #4030

New issue

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

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

Already on ? Sign in to your account

Merged
merged 3 commits into from
Jul 5, 2022

Conversation

boegel
Copy link
Member

@boegel boegel commented Jun 17, 2022

Use case here is internal, but it's basically an environment variable we want to define via pushenv through a custom hook implementation.

General support for pushenv is useful, since it avoids the need to resort to modluafooter...

@boegelboegel added this to the 4.x milestone Jun 17, 2022
raise EasyBuildError("Required key 'value' is missing in dict that specifies how to set $%s: %s",
env_var_name, env_var_val)
else:
raise EasyBuildError("Incorrect value type for setting $%s environment variable (%s): %s",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this include list of valid types?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that would be helpful indeed, I'll change that, thanks for the suggestion!

@boegel
Copy link
Member Author

Tests are failing when using Lmod as modules tool + Tcl as module file syntax, which is due to a bug in Lmod I think; see upstream issue I opened at TACC/Lmod#584 .

@boegelboegel modified the milestones: 4.x, next release (4.5.6?) Jun 22, 2022
@easybuilderseasybuilders deleted a comment from boegelbot Jul 1, 2022
@easybuilderseasybuilders deleted a comment from boegelbot Jul 5, 2022
@boegelboegel requested a review from bartoldeman July 5, 2022 10:44
Copy link
Contributor

@bartoldeman bartoldeman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

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

Successfully merging this pull request may close these issues.

3 participants