We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f907001 + c4bfbd8 commit 319663dCopy full SHA for 319663d
nixos/lib/utils.nix
@@ -219,14 +219,14 @@ let
219
let
220
escapedName = ''"${replaceStrings [ ''"'' "\\" ] [ ''\"'' "\\\\" ] name}"'';
221
in
222
- recurse (prefix + "." + escapedName) item.${name}
+ recurse (prefix + (if prefix == "." then "" else ".") + escapedName) item.${name}
223
) (attrNames item)
224
else if isList item then
225
imap0 (index: item: recurse (prefix + "[${toString index}]") item) item
226
else
227
[ ];
228
229
- listToAttrs (flatten (recurse "" item));
+ listToAttrs (flatten (recurse "." item));
230
231
/*
232
Takes an attrset and a file path and generates a bash snippet that
0 commit comments