Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use new inject function instead of the XToY era functions #969

Closed
wants to merge 2 commits into from

Add SRP !! DO NOT MERGE !!

9c3bac2
Select commit
Loading
Failed to load commit list.
Closed

Use new inject function instead of the XToY era functions #969

Add SRP !! DO NOT MERGE !!
9c3bac2
Select commit
Loading
Failed to load commit list.
IOG Hydra / ci/eval failed Nov 15, 2024

Evaluation failed

Details

Evaluation error:

hydra-eval-jobs returned exit code 1:
warning: ignoring --gc-roots-dir (just supported for compatibility)
info: evaluation failed
warning: ignoring untrusted flake configuration setting 'allow-import-from-derivation'.
Pass '--accept-flake-config' to trust it
warning: ignoring untrusted flake configuration setting 'extra-substituters'.
Pass '--accept-flake-config' to trust it
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'.
Pass '--accept-flake-config' to trust it
trace: WARNING: No sha256 found for source-repository-package https://github.com/IntersectMBO/cardano-api ref=(unspecified) rev=aa2a852403e6ac7fdb0db28ff79b21ba8efcafe2 download may fail in restricted mode (hydra)
error:
       … while calling anonymous lambda

         at «string»:68:1:

           67| };
           68| flake: let
             | ^
           69|   job = let

       … from call site

         at «string»:129:20:

          128|
          129|     jobAttrPaths = lib.collectAttrPaths lib.isDerivation jobAttrs;
             |                    ^
          130|   in

       … while calling 'collectAttrPaths'

         at «string»:20:33:

           19|
           20|   collectAttrPaths = predicate: attrs: let
             |                                 ^
           21|     internal = path: attrs: let

       … from call site

         at «string»:53:5:

           52|   in
           53|     internal [] attrs;
             |     ^
           54|

       … while calling 'internal'

         at «string»:21:22:

           20|   collectAttrPaths = predicate: attrs: let
           21|     internal = path: attrs: let
             |                      ^
           22|       inherit

       … from call site

         at «string»:36:11:

           35|         then
           36|           flattenDepth 1 (
             |           ^
           37|             map

       … while calling 'flattenDepth'

         at «string»:6:25:

            5|
            6|   flattenDepth = depth: x:
             |                         ^
            7|     if builtins.isList x && (depth == null || depth >= 0)

       … while calling 'flattenDepth'

         at «string»:6:25:

            5|
            6|   flattenDepth = depth: x:
             |                         ^
            7|     if builtins.isList x && (depth == null || depth >= 0)

       … while calling anonymous lambda

         at «string»:39:15:

           38|             (
           39|               attrName:
             |               ^
           40|                 internal

       … from call site

         at «string»:40:17:

           39|               attrName:
           40|                 internal
             |                 ^
           41|                 (path ++ [attrName])

       … while calling 'internal'

         at «string»:21:22:

           20|   collectAttrPaths = predicate: attrs: let
           21|     internal = path: attrs: let
             |                      ^
           22|       inherit

       … while calling anonymous lambda

         at «string»:25:12:

           24|           builtins.partition
           25|           (attrName: predicate attrs.${attrName})
             |            ^
           26|           (builtins.attrNames attrs)

       … from call site

         at «string»:25:22:

           24|           builtins.partition
           25|           (attrName: predicate attrs.${attrName})
             |                      ^
           26|           (builtins.attrNames attrs)

       … while calling 'isDerivation'

         at «string»:4:18:

            3|   # copied from nixpkgs
            4|   isDerivation = value: value.type or null == "derivation";
             |                  ^
            5|

       … while calling anonymous lambda

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/attrsets.nix:1571:24:

         1570|     let f = attrPath:
         1571|       zipAttrsWith (n: values:
             |                        ^
         1572|         let here = attrPath ++ [n]; in

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:498:16:

          497|       # Run all the tests and code coverage
          498|       checks = removeRecurseForDerivations checks;
             |                ^
          499|       inherit

       … while calling 'removeRecurseForDerivations'

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:483:33:

          482|
          483|   removeRecurseForDerivations = x:
             |                                 ^
          484|     let clean = builtins.removeAttrs x ["recurseForDerivations"];

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:522:20:

          521|         , apps ? mkFlakeApps haskellPackages
          522|         , checks ? mkFlakeChecks (collectChecks' haskellPackages)
             |                    ^
          523|         , coverage ? {}

       … while calling 'mkFlakeChecks'

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:471:19:

          470|   # Flatten the result of collectChecks or collectChecks' for use in flake `checks`
          471|   mkFlakeChecks = allChecks:
             |                   ^
          472|     foldrAttrVals

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:472:5:

          471|   mkFlakeChecks = allChecks:
          472|     foldrAttrVals
             |     ^
          473|       (package: acc:

       … while calling 'foldrAttrVals'

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:37:25:

           36|
           37|   foldrAttrVals = f: z: attrs:
             |                         ^
           38|     lib.foldr f z (builtins.attrValues attrs);

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:38:5:

           37|   foldrAttrVals = f: z: attrs:
           38|     lib.foldr f z (builtins.attrValues attrs);
             |     ^
           39|

       … while calling 'foldr'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/lists.nix:121:20:

          120|   */
          121|   foldr = op: nul: list:
             |                    ^
          122|     let

       … from call site

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/lists.nix:128:8:

          127|         else op (elemAt list n) (fold' (n + 1));
          128|     in fold' 0;
             |        ^
          129|

       … while calling 'fold''

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/lists.nix:124:15:

          123|       len = length list;
          124|       fold' = n:
             |               ^
          125|         if n == len

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:481:8:

          480|       { }
          481|       (removeRecurseForDerivations allChecks);
             |        ^
          482|

       … while calling 'removeRecurseForDerivations'

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:483:33:

          482|
          483|   removeRecurseForDerivations = x:
             |                                 ^
          484|     let clean = builtins.removeAttrs x ["recurseForDerivations"];

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:522:35:

          521|         , apps ? mkFlakeApps haskellPackages
          522|         , checks ? mkFlakeChecks (collectChecks' haskellPackages)
             |                                   ^
          523|         , coverage ? {}

       … while calling 'collectChecks'

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:184:31:

          183|   # This can be used to collect all the test runs in your project, so that can be run in CI.
          184|   collectChecks = packageSel: haskellPackages:
             |                               ^
          185|     let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:186:8:

          185|     let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;
          186|     in recurseIntoAttrs (lib.mapAttrs (_: p: p.checks) (lib.filterAttrs packageFilter haskellPackages));
             |        ^
          187|

       … while calling 'recurseIntoAttrs'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/attrsets.nix:1973:5:

         1972|   recurseIntoAttrs =
         1973|     attrs:
             |     ^
         1974|     attrs // { recurseForDerivations = true; };

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:186:57:

          185|     let packageFilter = _name: package: (package.isHaskell or false) && packageSel package;
          186|     in recurseIntoAttrs (lib.mapAttrs (_: p: p.checks) (lib.filterAttrs packageFilter haskellPackages));
             |                                                         ^
          187|

       … while calling 'filterAttrs'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/attrsets.nix:646:5:

          645|     pred:
          646|     set:
             |     ^
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/default.nix:519:29:

          518|           selectPackages ? haskellLib.selectProjectPackages
          519|         , haskellPackages ? selectPackages project.hsPkgs
             |                             ^
          520|         , packages ? mkFlakePackages haskellPackages

       … while calling 'filterAttrs'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/attrsets.nix:646:5:

          645|     pred:
          646|     set:
             |     ^
          647|     listToAttrs (concatMap (name: let v = set.${name}; in if pred name v then [(nameValuePair name v)] else []) (attrNames set));

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/overlays/haskell.nix:658:27:

          657|               callProjectResults = callCabalProjectToNix config;
          658|               plan-pkgs = importAndFilterProject {
             |                           ^
          659|                 inherit (callProjectResults) projectNix sourceRepos src;

       … while calling anonymous lambda

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/import-and-filter-project.nix:5:1:

            4| { pkgs, haskellLib }:
            5| { projectNix, sourceRepos, src }:
             | ^
            6| let

       … while evaluating derivation 'cardano-cli-plan-to-nix-pkgs'
         whose name attribute is located at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'cardano-cli-plan-to-nix-pkgs'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       … while evaluating derivation 'cabal.project'
         whose name attribute is located at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'text' of derivation 'cabal.project'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/build-support/trivial-builders/default.nix:103:16:

          102|       ({
          103|         inherit text executable checkPhase allowSubstitutes preferLocalBuild;
             |                ^
          104|         passAsFile = [ "text" ]

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/call-cabal-project-to-nix.nix:236:9:

          235|         sourceRepoPackageResult.initialText +
          236|         pkgs.lib.strings.concatMapStrings (block:
             |         ^
          237|             if block ? sourceRepo

       … while calling 'concatMapStrings'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/lib/strings.nix:60:25:

           59|   */
           60|   concatMapStrings = f: list: concatStrings (map f list);
             |                         ^
           61|

       … while calling anonymous lambda

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/call-cabal-project-to-nix.nix:236:44:

          235|         sourceRepoPackageResult.initialText +
          236|         pkgs.lib.strings.concatMapStrings (block:
             |                                            ^
          237|             if block ? sourceRepo

       … while evaluating derivation 'source-repository-package'
         whose name attribute is located at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'source-repository-package'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       … from call site

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/call-cabal-project-to-nix.nix:209:56:

          208|               in __trace "WARNING: No sha256 found for source-repository-package ${repoData.url} ref=${repoData.ref or "(unspecified)"} rev=${repoData.rev or "(unspecified)"} download may fail in restricted mode (hydra)"
          209|                 (__trace "Consider adding `--sha256: ${hashPath drv}` to the ${cabalProjectFileName} file or passing in a sha256map argument"
             |                                                        ^
          210|                  drv);

       … while calling 'hashPath'

         at /nix/store/0wvkjzrr92b5x8gp5al49l96vjxzb3qk-source/lib/call-cabal-project-to-nix.nix:184:14:

          183|
          184|   hashPath = path:
             |              ^
          185|     builtins.readFile (pkgs.runCommand "hash-path" { preferLocalBuild = true; }

       … while evaluating derivation 'hash-path'
         whose name attribute is located at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/stdenv/generic/make-derivation.nix:331:7

       … while evaluating attribute 'buildCommand' of derivation 'hash-path'

         at /nix/store/g2ysyzdx76m4z7lnmyddcwdz25lx7kn1-source/pkgs/build-support/trivial-builders/default.nix:68:16:

           67|         enableParallelBuilding = true;
           68|         inherit buildCommand name;
             |                ^
           69|         passAsFile = [ "buildCommand" ]

       error: fetchTree argument 'ref' is null while a string, Boolean or integer is expected
info: max RSS: 833548288 bytes / 794.93 MiB / 0.78 GiB