Conversation
Contributor
|
I'm not aware of anything that would require environment variables to be set before loading; I suspect that would be considered a poorly-constructed modulefile, as they should be including any dependencies (including env vars) automatically when you load them. But @gilesknap, if you have any examples from DLS that would be appreciated. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #51 +/- ##
=======================================
Coverage 75.64% 75.64%
=======================================
Files 25 25
Lines 936 936
=======================================
Hits 708 708
Misses 228 228 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
MJGaughran
previously approved these changes
Apr 23, 2026
98749e9 to
2d84cae
Compare
Contributor
|
@MJGaughran no I don't know of any modules that require environment set when loading. As you say that would not be a great idea anyway. |
2d84cae to
c1a6994
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
It seems sensible that the env-vars set by dependencies would be overwritten by the modulefile for the module you are loading.
Giles did highlight that there may be situations where your dependencies require env-vars defining before they are module loaded, such as when env-vars are needed to load the module correctly. But currently he is not doing this.