-
Notifications
You must be signed in to change notification settings - Fork 203
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
Enable module-depends-on
by default
#4500
Conversation
well, apparently, can't enable it by default since because environment modules. Ugh. Tests were not fun either, and going to be even less fun to consider the two different modes here for all the checks. I thought about making it "none" and enable it by default if Lmod is used, but, there is also the config file, what should one write. I'm considering just giving up on this. |
One problem here is that the Tcl implementation of environment modules only supports #4425 proposes to bump the version requirement to v4.3.0+, which is still a long way off. So either we come up with a sensible approach to having |
Do you foresee any valid use case where EnvironmentModules will be fine on its side with |
With Tmod, we could only use |
Is there a need to make the If this option only applies when selected ModuleTool is Relaxing the constrain to use same command whatever the kind of ModuleTool used, may help you here. |
I'm fine with @xdelaruelle's suggestion here, to only let the @Micket Thoughts on that approach? |
Well https://www.youtube.com/watch?v=CxK_nA2iVXw I think it's mostly just how ugly the tests are gonna be when it needs to consider two different options. If I'm forced to pick, I'd say just let it complain on older Tmod and we just tread this option as stated, using depends-on for both. |
If you proceed this way and as this option will be enabled by default, you will break the EasyBuild installation of all people using Tmod > 4.3 < 5.1. Having a configuration option that only triggers change on one side of the module ecosystem already exists with From what I have seen of the tests, they are already handling a good level of complexity. So having If this is a real concern though, I would just suggest to drop the |
3fadae0
to
4842b96
Compare
582dc39
to
c9c5395
Compare
fix tests that got broken by enabling use of depends_on (instead of load) statement in generated environment modules by default
c65b741
to
c015187
Compare
c015187
to
7ba0a6c
Compare
Sigh, this is getting unnecessarily complicated I've been asked to preserve much of the old behavior, but given that:
These constraints now puts my in an impossible situation as to what the logic should be (not difficult to figure out; literally impossible constraints). And whatever the logic ends up being, the meaning of all these identically named I'm proposing we instead get rid of the easyconfig and keyword argument. Only using the build option. That's it. |
d449977
to
05fe0d3
Compare
…odules as modules tool
module-depends-on
by default
I suspect I'll need to look into the tests that probably broke from this change.
I'm a bit unsure what to make of the cli arguments, given the
store_true
behavior is a bit strange when the default is True. But I do see other flags do this, likecleanup-tmpdir
so i guess we want to keep this for module-depends-on as well.fixes #4397