Skip to content

Update tx-generator to not use deprecated cardano-api API - #6602

Open
carbolymer wants to merge 4 commits into
masterfrom
mgalazyn/chore/update-tx-generator-to-use-experimental-api
Open

Update tx-generator to not use deprecated cardano-api API#6602
carbolymer wants to merge 4 commits into
masterfrom
mgalazyn/chore/update-tx-generator-to-use-experimental-api

REMOVEME: SRP

b4c956c
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/eval:aarch64-linux.musl failed Aug 21, 2026 in 2s

Evaluation failed

Checkout took 4s.
Evaluation took 2 min 7s.

Details

Evaluation error:

error:
       … 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/54kgyif3hr7qxqy103sldmrna7n0md87-cardano-node-plan-to-nix-pkgs/plan.json'

       error: Cannot build '/nix/store/x3gwlgxckzcwnlfwwxc9r2j7jxdy0zxv-cardano-node-plan-to-nix-pkgs.drv'.
       Reason: builder failed with exit code 1.
       Output paths:
         /nix/store/54kgyif3hr7qxqy103sldmrna7n0md87-cardano-node-plan-to-nix-pkgs
         /nix/store/f6v4r91mnwb76l899f3rg9x2rakhrvva-cardano-node-plan-to-nix-pkgs-freeze
       Last 25 log lines:
       > Receiving objects: 100% (1337/1337), 1.20 MiB | 8.58 MiB/s, done.
       > Resolving deltas: 100% (472/472), done.
       > From file:///nix/store/jar9g3lab9njmirjir9ki984nbp8wlys-source-repository-package
       >  * branch            minimal    -> FETCH_HEAD
       > HEAD is now at 7e3cd43 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/x3gwlgxckzcwnlfwwxc9r2j7jxdy0zxv-cardano-node-plan-to-nix-pkgs.drv