Merge pull request #235197 from hercules-ci/simplify-concatMapAttrs-trace

lib.concatMapAttrs: Simplify stack trace
This commit is contained in:
Robert Hensing 2023-05-31 18:00:48 +02:00 committed by GitHub
commit 9772ecb6c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -123,7 +123,11 @@ rec {
{ x = "a"; y = "b"; }
=> { x = "a"; xa = "a"; y = "b"; yb = "b"; }
*/
concatMapAttrs = f: flip pipe [ (mapAttrs f) attrValues (foldl' mergeAttrs { }) ];
concatMapAttrs = f: v:
foldl' mergeAttrs { }
(attrValues
(mapAttrs f v)
);
/* Update or set specific paths of an attribute set.