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
Describe the bug
I have a resolver, that modifies _root_. When the resolver is unescaped, it works fine, but if it's escaped, it doesn't behave as expected.
This could be interesting for /related to #1113@odelalleau
I don't see why the resolving behaves different in oc.resolve() and oc.to_object()
os.resolve() works in-place by replacing interpolations with their values. oc.to_object() creates a new config with new nodes and this is using a different code path where the new escape_interpolation_strings flag is currently lost.
and why the _root_ object is affected by this. Because #1113 is just handling the escaping of resolvers, I thought. And this time both resolvers executes...
I haven't looked at it too closely tbh. But I suspect it's related to the fact that #1113 helps avoid issues where the order of interpolation resolution matters when resolving the config. I might be able to provide more details when I look into it more closely.
Describe the bug
I have a resolver, that modifies
_root_
. When the resolver is unescaped, it works fine, but if it's escaped, it doesn't behave as expected.This could be interesting for /related to #1113 @odelalleau
To Reproduce
Please provide a minimal repro.
We see, that both times the resolver got executed, but only the unescaped one could modify its key (
a
).Expected behavior
I would expect, that after resolving twice, the key
b
getsMODIFIED
too.Additional context
The text was updated successfully, but these errors were encountered: