mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-12-06 04:40:10 +00:00
toGitINI supports two forms of nesting:
{
a.b={
typeA=1;
};
"a.b"={
typeB=1;
};
}
Both are valid. In NixOS 26.05, this generates
[a "b"]
typeA = 1
typeB = 1
However it currently generates
[a "b"]
typeA = 1
The issue is that when recursing, the "a.b" form is left untouched and a.b
form is recursed into; but they are merged with `//` instead of
recursiveUpdate.
Fixes: e9c2828c5a ("lib.generators.toGitINI: only recurse into necessary attributes")
Signed-off-by: Gary Guo <gary@garyguo.net>
(cherry picked from commit f6db934e14)