-
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
don't allow unresolved templates in easyconfig parameters by default + add support for --allow-unresolved-templates
configuration option
#4516
don't allow unresolved templates in easyconfig parameters by default + add support for --allow-unresolved-templates
configuration option
#4516
Conversation
604053a
to
4a73b73
Compare
145defc
to
eaaf115
Compare
@Flamefire Can you sync this with the current |
--allow-unresolved-templates
configuration option
eaaf115
to
a6cc123
Compare
CI finished after the sync as requested. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look reasonable to me. Ready to merge @boegel ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
A failure in template resolving is currently hidden in the log although it is likely due to a bug in the code (either EasyBuild, EasyBlock or EasyConfig) This may lead to cryptic error messages later on or misbehave silently which is even worse.
If we only want the `len` of some list we don't need to resolve the templates. We cannot resolve templates in collect_exts_file_info like `installdir` present in e.g. `installcmd` of the extension options.
…ions & `asdict` Some dependencies may use templates referring to other dependencies which cannot yet be resolved. Hence add an opt-out to the enforcment of resolved templates via `expect_resolved=False` and use that. This allows use of `%(installdir)s` or `%(ext_name)s` and similar in the options.
…hat use False as default value
7c8f4cb
to
bc6a136
Compare
Rebased and fixed the 2 style issues. BTW: For 5.0x we can use |
bc6a136
to
4e21bc9
Compare
…est to check on resolving of template values
4e21bc9
to
b426aaa
Compare
A failure in template resolving is currently hidden in the log although
it is likely due to a bug in the code (either EasyBuild, EasyBlock or EasyConfig)
This may lead to cryptic error messages later on or misbehave silently
which is even worse.