Skip to content

Commit

Permalink
pkgs/top-level/release-attrpaths-superset.nix: Add attrpath to error …
Browse files Browse the repository at this point in the history
…context (#373669)
  • Loading branch information
infinisil authored Feb 22, 2025
2 parents 2dc744e + 205299e commit a94dbc9
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions pkgs/top-level/release-attrpaths-superset.nix
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,14 @@ let
lib.pipe value [
(builtins.mapAttrs (
name: value:
if excluded-attrnames-at-any-depth.${name} or false then
[ ]
else
(justAttrNames (path ++ [ name ]) value)
builtins.addErrorContext
"while evaluating package set attribute path '${lib.showAttrPath (path ++ [ name ])}'"
(
if excluded-attrnames-at-any-depth.${name} or false then
[ ]
else
(justAttrNames (path ++ [ name ]) value)
)
))
builtins.attrValues
builtins.concatLists
Expand Down

0 comments on commit a94dbc9

Please sign in to comment.