Update tx-generator to not use deprecated cardano-api API - #6602
Open
carbolymer wants to merge 4 commits into
Open
Update tx-generator to not use deprecated cardano-api API#6602carbolymer wants to merge 4 commits into
carbolymer wants to merge 4 commits into
IOG Hydra / ci/eval:x86_64-darwin.required
failed
Aug 21, 2026 in 4s
Evaluation failed
Checkout took 4s.
Evaluation took 2 min 7s.
Details
Evaluation error:
error:
… from call site
at /nix/store/flhjk0sxr20lm1nmzvy9p9s1m3y4qijf-source/ci/aggregates.nix:26:20:
25| meta.description = "All jobs required to pass CI";
26| constituents = collectConstituents nonRequiredTest;
| ^
27| };
… while calling 'collectConstituents'
at /nix/store/flhjk0sxr20lm1nmzvy9p9s1m3y4qijf-source/ci/aggregates.nix:11:25:
10| }: let
11| collectConstituents = excludeTest:
| ^
12| lib.collect lib.isDerivation
… from call site
at /nix/store/flhjk0sxr20lm1nmzvy9p9s1m3y4qijf-source/ci/aggregates.nix:12:5:
11| collectConstituents = excludeTest:
12| lib.collect lib.isDerivation
| ^
13| (lib.mapAttrsRecursiveCond (v: !(lib.isDerivation v))
… while calling 'collect'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:871:11:
870| collect =
871| pred: attrs:
| ^
872| if pred attrs then
… while calling the 'concatMap' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:875:7:
874| else if isAttrs attrs then
875| concatMap (collect pred) (attrValues attrs)
| ^
876| else
… while calling 'collect'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:871:11:
870| collect =
871| pred: attrs:
| ^
872| if pred attrs then
… while evaluating a branch condition
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:872:5:
871| pred: attrs:
872| if pred attrs then
| ^
873| [ attrs ]
… from call site
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:872:8:
871| pred: attrs:
872| if pred attrs then
| ^
873| [ attrs ]
… while calling 'isDerivation'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1412:18:
1411| */
1412| isDerivation = value: value.type or null == "derivation";
| ^
1413|
… from call site
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1412:25:
1411| */
1412| isDerivation = value: value.type or null == "derivation";
| ^
1413|
… while calling anonymous lambda
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1187:17:
1186| mapAttrs (
1187| name: value:
| ^
1188| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
… while evaluating a branch condition
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1188:11:
1187| name: value:
1188| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
| ^
1189| );
… in the left operand of the AND (&&) operator
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1188:28:
1187| name: value:
1188| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
| ^
1189| );
… while calling the 'isAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1188:14:
1187| name: value:
1188| if isAttrs value && cond value then recurse (path ++ [ name ]) value else f (path ++ [ name ]) value
| ^
1189| );
… in the left operand of the update (//) operator
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:424:15:
423| native =
424| filterAttrs
| ^
425| (n: _:
… from call site
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:424:15:
423| native =
424| filterAttrs
| ^
425| (n: _:
… while calling 'filterAttrs'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:23:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… while calling the 'removeAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:28:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… in the right operand of the update (//) operator
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:310:13:
309| # Add checks to be able to build them individually
310| // (prefixNamesWith "checks/" checks);
| ^
311|
… from call site
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:310:13:
309| # Add checks to be able to build them individually
310| // (prefixNamesWith "checks/" checks);
| ^
311|
… while calling 'mapAttrs''
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1050:18:
1049| */
1050| mapAttrs' = f: set: listToAttrs (mapAttrsToList f set);
| ^
1051|
… while calling the 'listToAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1050:23:
1049| */
1050| mapAttrs' = f: set: listToAttrs (mapAttrsToList f set);
| ^
1051|
… from call site
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1050:36:
1049| */
1050| mapAttrs' = f: set: listToAttrs (mapAttrsToList f set);
| ^
1051|
… while calling 'mapAttrsToList'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1084:23:
1083| */
1084| mapAttrsToList = f: attrs: attrValues (mapAttrs f attrs);
| ^
1085|
… while calling the 'attrValues' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1084:30:
1083| */
1084| mapAttrsToList = f: attrs: attrValues (mapAttrs f attrs);
| ^
1085|
… while calling the 'mapAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1084:42:
1083| */
1084| mapAttrsToList = f: attrs: attrValues (mapAttrs f attrs);
| ^
1085|
… in the left operand of the update (//) operator
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:222:9:
221| checks =
222| flattenTree project.checks
| ^
223| //
… from call site
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:222:9:
221| checks =
222| flattenTree project.checks
| ^
223| //
… while calling 'flattenTree'
at /nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/lib.nix:82:17:
81| # }
82| flattenTree = tree: import ./flattenTree.nix tree;
| ^
83|
… from call site
at /nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/lib.nix:82:23:
81| # }
82| flattenTree = tree: import ./flattenTree.nix tree;
| ^
83|
… while calling anonymous lambda
at /nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/flattenTree.nix:1:1:
1| tree:
| ^
2| let
… from call site
at /nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/flattenTree.nix:35:1:
34| in
35| recurse { } [ ] tree
| ^
36|
… while calling 'recurse'
at /nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/flattenTree.nix:28:24:
27|
28| recurse = sum: path: val:
| ^
29| builtins.foldl'
… while calling the 'foldl'' builtin
at /nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/flattenTree.nix:29:5:
28| recurse = sum: path: val:
29| builtins.foldl'
| ^
30| (sum: key: op sum (path ++ [ key ]) val.${key})
… while calling the 'attrNames' builtin
at /nix/store/na7sykizsgkzh9i3wc8m8pz5xfqib2rv-source/flattenTree.nix:32:8:
31| sum
32| (builtins.attrNames val)
| ^
33| ;
… while evaluating the attribute 'checks'
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:24:5:
23| # `checks` collect results of executing the tests:
24| checks = haskellLib.collectChecks' final.packages;
| ^
25| };
… from call site
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:24:14:
23| # `checks` collect results of executing the tests:
24| checks = haskellLib.collectChecks' final.packages;
| ^
25| };
… while calling 'collectChecks'
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/default.nix:198:31:
197| # This can be used to collect all the test runs in your project, so that can be run in CI.
198| collectChecks = packageSel: haskellPackages:
| ^
199| let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;
… from call site
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/default.nix:200:8:
199| let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;
200| in lib.recurseIntoAttrs (lib.filterAttrs (_: x: x != {} && x != lib.recurseIntoAttrs {}) (lib.mapAttrs (_: p: p.checks) (lib.filterAttrs packageFilter haskellPackages)));
| ^
201|
… while calling 'recurseIntoAttrs'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:2199:22:
2198| */
2199| recurseIntoAttrs = attrs: attrs // { recurseForDerivations = true; };
| ^
2200|
… in the left operand of the update (//) operator
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:2199:29:
2198| */
2199| recurseIntoAttrs = attrs: attrs // { recurseForDerivations = true; };
| ^
2200|
… from call site
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/default.nix:200:30:
199| let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;
200| in lib.recurseIntoAttrs (lib.filterAttrs (_: x: x != {} && x != lib.recurseIntoAttrs {}) (lib.mapAttrs (_: p: p.checks) (lib.filterAttrs packageFilter haskellPackages)));
| ^
201|
… while calling 'filterAttrs'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:23:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… while calling the 'removeAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:28:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… while calling the 'mapAttrs' builtin
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/default.nix:200:95:
199| let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;
200| in lib.recurseIntoAttrs (lib.filterAttrs (_: x: x != {} && x != lib.recurseIntoAttrs {}) (lib.mapAttrs (_: p: p.checks) (lib.filterAttrs packageFilter haskellPackages)));
| ^
201|
… from call site
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/default.nix:200:126:
199| let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;
200| in lib.recurseIntoAttrs (lib.filterAttrs (_: x: x != {} && x != lib.recurseIntoAttrs {}) (lib.mapAttrs (_: p: p.checks) (lib.filterAttrs packageFilter haskellPackages)));
| ^
201|
… while calling 'filterAttrs'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:23:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… while calling the 'removeAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:28:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… while evaluating the attribute 'packages'
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:16:5:
15| # local project packages:
16| packages = haskellLib.selectProjectPackages final.hsPkgs;
| ^
17| # set of all exes (as first level entries):
… from call site
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:16:16:
15| # local project packages:
16| packages = haskellLib.selectProjectPackages final.hsPkgs;
| ^
17| # set of all exes (as first level entries):
… while calling 'filterAttrs'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:23:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… while calling the 'removeAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:662:28:
661| */
662| filterAttrs = pred: set: removeAttrs set (filter (name: !pred name set.${name}) (attrNames set));
| ^
663|
… while evaluating the attribute 'hsPkgs'
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/nix/haskell.nix:435:7:
434| # add passthru to hsPkgs:
435| hsPkgs = lib.mapAttrsRecursiveCond (v: !(lib.isDerivation v))
| ^
436| (path: value:
… from call site
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/nix/haskell.nix:435:16:
434| # add passthru to hsPkgs:
435| hsPkgs = lib.mapAttrsRecursiveCond (v: !(lib.isDerivation v))
| ^
436| (path: value:
… while calling 'mapAttrsRecursiveCond'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1182:14:
1181| mapAttrsRecursiveCond =
1182| cond: f: set:
| ^
1183| let
… while calling the 'mapAttrs' builtin
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1191:5:
1190| in
1191| recurse [ ] set;
| ^
1192|
… while evaluating the attribute 'hsPkgs'
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:740:15:
739| # Haskell packages
740| hsPkgs = final.lib.mapAttrs (packageName: package':
| ^
741| if package' == null
… while calling the 'mapAttrs' builtin
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:740:24:
739| # Haskell packages
740| hsPkgs = final.lib.mapAttrs (packageName: package':
| ^
741| if package' == null
… while calling the 'removeAttrs' builtin
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:774:20:
773| }
774| ) (builtins.removeAttrs rawProject.hsPkgs
| ^
775| # These are functions not packages
… while evaluating the attribute 'hsPkgs'
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:708:44:
707| project = addProjectAndPackageAttrs rec {
708| inherit (pkg-set.config) hsPkgs;
| ^
709| inherit pkg-set;
… while evaluating a branch condition
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:676:25:
675| else project;
676| pkg-set = if plan-pkgs ? configurationError
| ^
677| then {
… while evaluating a branch condition
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:661:27:
660| callProjectResults = callCabalProjectToNix config;
661| plan-pkgs = if !builtins.pathExists (callProjectResults.projectNix + "/plan.json")
| ^
662| then
… in the argument of the not operator
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:661:31:
660| callProjectResults = callCabalProjectToNix config;
661| plan-pkgs = if !builtins.pathExists (callProjectResults.projectNix + "/plan.json")
| ^
662| then
… while calling the 'pathExists' builtin
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/overlays/haskell.nix:661:31:
660| callProjectResults = callCabalProjectToNix config;
661| plan-pkgs = if !builtins.pathExists (callProjectResults.projectNix + "/plan.json")
| ^
662| then
… while realising the context of path '/nix/store/97xb3y87kcar5zlqll6cycl3jpi138hz-cardano-node-plan-to-nix-pkgs/plan.json'
error: Cannot build '/nix/store/cm68xxa6gsxqjaq13kqfqqsa7bcizdwb-cardano-node-plan-to-nix-pkgs.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/97xb3y87kcar5zlqll6cycl3jpi138hz-cardano-node-plan-to-nix-pkgs
/nix/store/l62gc6vpn54giql7ijimwp34389f5cjq-cardano-node-plan-to-nix-pkgs-freeze
Last 25 log lines:
> Receiving objects: 100% (1337/1337), 1.19 MiB | 11.10 MiB/s, done.
> Resolving deltas: 100% (490/490), done.
> From file:///nix/store/yrsr2xpn8y0w13m7l6xkgisnqbyj76vy-source-repository-package
> * branch minimal -> FETCH_HEAD
> HEAD is now at dbed2b4 Minimal Repo For Haskell.Nix
> Warning: The package list for 'hackage.haskell.org' is 20686 days old.
> Run 'cabal update' to get the latest list of available packages.
> Warning: The package list for 'cardano-haskell-packages' is 20686 days old.
> Run 'cabal update' to get the latest list of available packages.
> Warning: The package list for 'cardano-haskell-packages-local' is 20686 days
> old.
> Run 'cabal update' to get the latest list of available packages.
> Resolving dependencies...
> Error: [Cabal-7107]
> Could not resolve dependencies:
> [__0] next goal: cardano-api (user goal)
> [__0] rejecting: cardano-api; 11.5.0.0, 11.4.0.0 (constraint from user target requires ==11.3.0.0)
> [__0] trying: cardano-api-11.3.0.0
> [__1] next goal: cardano-node (user goal)
> [__1] rejecting: cardano-node-11.1.0 (conflict: cardano-api==11.3.0.0, cardano-node => cardano-api^>=11.5)
> [__1] skipping: cardano-node; 11.0.1, 11.0.0, 10.7.0, 10.6.1, 10.6.0, 10.4.1, 10.4.0, 10.3.1, 10.3.0, 10.2.1, 10.2, 10.1.4, 10.1.3, 10.1.1, 10.0, 9.2.1, 9.2.0, 9.1.1, 9.0.0, 8.12.0, 8.11.0, 8.10.1, 8.9.0, 8.7.3, 8.7.2, 8.7.1, 8.7.0, 8.6.0, 8.5.0, 8.4.0, 8.3.1, 8.2.1, 8.1.2, 8.1.1, 8.0.0, 1.35.4 (has the same characteristics that caused the previous version to fail: excludes 'cardano-api' version 11.3.0.0)
> [__1] rejecting: cardano-node-1.35.3 (constraint from user target requires ==11.1.0)
> [__1] fail (backjumping, conflict set: cardano-api, cardano-node)
> After searching the rest of the dependency tree exhaustively, these were the goals I've had most trouble fulfilling: cardano-api, cardano-node
>
For full logs, run:
nix log /nix/store/cm68xxa6gsxqjaq13kqfqqsa7bcizdwb-cardano-node-plan-to-nix-pkgs.drv
Loading