Skip to content

Fix removed lib.fold alias - #1583

Merged
roberth merged 1 commit into
NixOS:masterfrom
fsagbuya:fix_lib_fold
Dec 2, 2026
Merged

roberth merged 1 commit into
NixOS:masterfrom
fsagbuya:fix_lib_fold

Conversation

@fsagbuya

@fsagbuya fsagbuya commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Fix removal of lib.fold in nixpkgs 26.11.

error:
       … while calling the 'removeAttrs' builtin
         at /nix/store/nzlgf60kp46x8zziz3dz11v7l7h60qy5-nixops-2.0.0-unstable-2025-12-28/lib/python3.13/site-packages/nix/eval-machine-info.nix:215:7:
          214|     network =
          215|       builtins.removeAttrs
             |       ^
          216|       (lib.fold (as: bs: as // bs) {} (network'.network or []))

       … while evaluating the attribute 'fold'
         at /nix/store/hy9kic52az024yzcqbkp3jzi0k2svk43-nixos-26.11-small/nixos/lib/default.nix:273:9:
          272|         foldr
          273|         fold
             |         ^
          274|         foldl

       … while evaluating the attribute 'fold'
         at /nix/store/hy9kic52az024yzcqbkp3jzi0k2svk43-nixos-26.11-small/nixos/lib/lists.nix:148:3:
          147|   */
          148|   fold = throw "fold is a removed alias of foldr, use it instead"; # TODO: Remove in 26.11
             |   ^
          149|

       … while calling the 'throw' builtin
         at /nix/store/hy9kic52az024yzcqbkp3jzi0k2svk43-nixos-26.11-small/nixos/lib/lists.nix:148:10:
          147|   */
          148|   fold = throw "fold is a removed alias of foldr, use it instead"; # TODO: Remove in 26.11
             |          ^
          149|

       error: fold is a removed alias of foldr, use it instead
error: evaluation of the deployment specification failed

@roberth
roberth merged commit 6182fc1 into NixOS:master Dec 2, 2026
9 checks passed
@roberth

roberth commented Dec 2, 2026

Copy link
Copy Markdown
Member

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants