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
Inheriting from several files does not merge them top to bottom #7
Comments
thank you very much for your issue report. I'd like to look into it more closely soon and see if there's a solution. |
This might be a duplicate of #6, we didn't correctly grasp what the expected output there was (wasn't explicitly listed initially). |
magynhard
pushed a commit
that referenced
this issue
Dec 5, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
According to the docs:
This however is not true. Actually the order seems to be exactly the opposite!
The later entries in the
extends
array have precedence over the earlier ones.Additionally, the own keys of the file that extends multiple others tend to come first i.e. own entries first, then extended ones (the order is messed up, but they correctly overwrite the values of parent entries).
As an example, let's have the following 3 files:
The expected result of
YAML.ext_load_file 'child.yml'
should then be:but instead, what we get is:
The text was updated successfully, but these errors were encountered: