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-linux.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:383:15:
382| in
383| projectExes
| ^
384| // {
… from call site
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:381:29:
380| else project.projectCross.aarch64-multiplatform-musl;
381| projectExes = collectExes muslProject;
| ^
382| in
… while calling 'collectExes'
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:137:19:
136|
137| collectExes = project: let
| ^
138| set-git-rev = import ./nix/set-git-rev.nix {inherit (project) pkgs;};
… in the right operand of the update (//) operator
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:142:11:
141| project.exes
142| // (with project.hsPkgs;
| ^
143| {
… in the right operand of the update (//) operator
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:172:12:
171| }
172| // optionalAttrs (project.exes ? tx-generator) {
| ^
173| tx-generator = let
… from call site
at /nix/store/j37p0jyv2kvf9dykkvx5dsqr55x71kbq-source/flake.nix:172:12:
171| }
172| // optionalAttrs (project.exes ? tx-generator) {
| ^
173| tx-generator = let
… while calling 'optionalAttrs'
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1477:25:
1476| */
1477| optionalAttrs = cond: as: if cond then as else { };
| ^
1478|
… while evaluating a branch condition
at /nix/store/f9zw9nsp96n5zlfr2cwl8msrd1mfbzm1-source/lib/attrsets.nix:1477:29:
1476| */
1477| optionalAttrs = cond: as: if cond then as else { };
| ^
1478|
… while evaluating the attribute 'exes'
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:18:5:
17| # set of all exes (as first level entries):
18| exes = lib.foldl' lib.mergeAttrs { } (map (p: p.components.exes) (lib.attrValues final.packages));
| ^
19| # `tests` are the test suites which have been built.
… while calling the 'foldl'' builtin
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:18:12:
17| # set of all exes (as first level entries):
18| exes = lib.foldl' lib.mergeAttrs { } (map (p: p.components.exes) (lib.attrValues final.packages));
| ^
19| # `tests` are the test suites which have been built.
… while calling the 'map' builtin
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:18:43:
17| # set of all exes (as first level entries):
18| exes = lib.foldl' lib.mergeAttrs { } (map (p: p.components.exes) (lib.attrValues final.packages));
| ^
19| # `tests` are the test suites which have been built.
… while calling the 'attrValues' builtin
at /nix/store/17ki6b6jjvi83xj922r6zx2ijiav59n8-source/lib/project-overlays.nix:18:71:
17| # set of all exes (as first level entries):
18| exes = lib.foldl' lib.mergeAttrs { } (map (p: p.components.exes) (lib.attrValues final.packages));
| ^
19| # `tests` are the test suites which have been built.
… 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/87ywakycmj30d96hplhwnyq4m7k41npc-cardano-node-plan-to-nix-pkgs/plan.json'
error: Cannot build '/nix/store/5bj37jbjqg6cwhmy6fm8wx14lpzbxhag-cardano-node-plan-to-nix-pkgs.drv'.
Reason: builder failed with exit code 1.
Output paths:
/nix/store/87ywakycmj30d96hplhwnyq4m7k41npc-cardano-node-plan-to-nix-pkgs
/nix/store/9vmcwib19ijydqhnb4qsj4v1racwj4j9-cardano-node-plan-to-nix-pkgs-freeze
Last 25 log lines:
> Receiving objects: 100% (740/740), 1.48 MiB | 24.81 MiB/s, done.
> Resolving deltas: 100% (40/40), done.
> From file:///nix/store/8gm388jffa56bxb8dnbic8ks8jxqpsll-source-repository-package
> * branch minimal -> FETCH_HEAD
> HEAD is now at 970af40 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/5bj37jbjqg6cwhmy6fm8wx14lpzbxhag-cardano-node-plan-to-nix-pkgs.drv
Loading