Fragments documentation tweak
In testing the new fragments code, I've found a rather important "gotcha" around file ordering and user expectations.
The expectation is that users can lift local.conf entries into fragments and they'll "just work". That isn't entirely true.
The fragments are parsed after local.conf, since OE_FRAGMENTS might be defined there.
The result of this is if automated code appends to local.conf (as for example our selftests do), the appended variables can end up before the config fragments after this change.
Previously, if the code was in auto.conf or local.conf and then local.conf was appended, it would have looked like:
X = "Y"
X = "Z"
After moving to a fragment, this means if you append local.conf with:
X = "Z"
and then the fragment does:
X = "Y"
the fragment will win.
I'm not sure how we document this but it is potentially something which will catch users out. I doubt there is much we can do about it to avoid it though.
Cheers,
Richard