-
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
correctly resolve template values used for extensions #2852
Conversation
… resolved when extensions are installed
@akesandgren While working on this I realized there's another problem with templates like More specifically: templates like The reason for this is that the |
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.
A bit difficult to verify by manually looking but LGTM
Going in, thanks @boegel! |
# construct dictionary with template values; | ||
# inherited from parent, except for name/version templates which are specific to this extension | ||
template_values = copy.deepcopy(self.cfg.template_values) | ||
template_values.update(template_constant_dict(ext_src)) |
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.
Missing an option here, this should be
template_values.update(template_constant_dict(ext_src, skip_lower=False))
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.
This fixes a long-standing issue where using templates in
exts_list
either did not work at all, or where incorrect values were being used (i.e. the ones inherited by the 'parent').fixes #1445, #1597, #1138