You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I expect that overrides would replace the previous values when merging objects. In this example that works only some of the time - possibly depending on how many variable overrides there are?
From a quick code dive, I think this is happening during resolve_substitutions - in order to support self-referential substitutions, overridden substitutions are still evaluated, and they are applied to the resulting object. Depending on if the shadowed fields are evaluated before the final values, the wrong result can be left in the final config object.
The text was updated successfully, but these errors were encountered:
JettJones
added a commit
to JettJones/pyhocon
that referenced
this issue
Mar 13, 2021
I expect that overrides would replace the previous values when merging objects. In this example that works only some of the time - possibly depending on how many variable overrides there are?
Expected:
Observed:
From a quick code dive, I think this is happening during
resolve_substitutions
- in order to support self-referential substitutions, overridden substitutions are still evaluated, and they are applied to the resulting object. Depending on if the shadowed fields are evaluated before the final values, the wrong result can be left in the final config object.The text was updated successfully, but these errors were encountered: