Skip to content

Conversation

@Kreyren
Copy link
Member

@Kreyren Kreyren commented Jul 11, 2024

TODO

  • Move Hijack task into a separate merge request
  • Convert other systems on tsvetan-style release management
  • Add builders in knownHosts

@Kreyren Kreyren self-assigned this Jul 11, 2024
@Kreyren
Copy link
Member Author

Kreyren commented Jul 11, 2024


�[K
�[Kerror:
       … while calling anonymous lambda

         at «string»:2:23:

            1|
            2| lockFileStr: rootSrc: rootSubdir:
             |                       ^
            3|

       … while calling anonymous lambda

         at «string»:10:13:

            9|     builtins.mapAttrs
           10|       (key: node:
             |             ^
           11|         let

       … from call site

         at «string»:47:21:

           46|
           47|           outputs = flake.outputs (inputs // { self = result; });
             |                     ^
           48|

       … while calling 'outputs'

         at /nix/store/q02rm3lky3lhwswqwnqsbykmc2q0zy2b-source/flake.nix:116:12:

          115|
          116|    outputs = inputs @ { self, ... }:
             |            ^
          117|            inputs.flake-parts.lib.mkFlake { inherit inputs; } {

       … from call site

         at /nix/store/q02rm3lky3lhwswqwnqsbykmc2q0zy2b-source/flake.nix:117:3:

          116|  outputs = inputs @ { self, ... }:
          117|                inputs.flake-parts.lib.mkFlake { inherit inputs; } {
             |   ^
          118|                  imports = [

       … while calling 'mkFlake'

         at /nix/store/n9czz5ak3nnkgjvlywhaccjisjyaxhjy-source/lib.nix:138:21:

          137|
          138|     mkFlake = args: module:
             |                     ^
          139|       let

       … while evaluating the error message for definitions for `apps', which is an option that does not exist

       … while evaluating a definition from `/nix/store/q02rm3lky3lhwswqwnqsbykmc2q0zy2b-source/src/nixos/machines/tsvetan'

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/modules.nix:272:25:

          271|                       "while evaluating a definition from `${firstDef.file}'"
          272|                       ( showDefs [ firstDef ])
             |                         ^
          273|                     );

       … while calling 'showDefs'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/options.nix:447:14:

          446|
          447|   showDefs = defs: concatMapStrings (def:
             |              ^
          448|     let

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/options.nix:447:20:

          446|
          447|   showDefs = defs: concatMapStrings (def:
             |                    ^
          448|     let

       … while calling 'concatMapStrings'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/strings.nix:60:25:

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

       … while calling anonymous lambda

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/options.nix:447:38:

          446|
          447|   showDefs = defs: concatMapStrings (def:
             |                                      ^
          448|     let

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/options.nix:451:10:

          450|       prettyEval = builtins.tryEval
          451|         (lib.generators.toPretty { }
             |          ^
          452|           (lib.generators.withRecursion { depthLimit = 10; throwOnDepthLimit = false; } def.value));

       … while calling 'go'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:343:18:

          342|     let
          343|     go = indent: v:
             |                  ^
          344|     let     introSpace = if multiline then "\n${indent}  " else " ";

       … while calling anonymous lambda

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/attrsets.nix:1096:10:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |          ^
         1097|

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/attrsets.nix:1096:16:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |                ^
         1097|

       … while calling anonymous lambda

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:391:22:

          390|           + concatStringsSep introSpace (mapAttrsToList
          391|               (name: value:
             |                      ^
          392|                 "${escapeNixIdentifier name} = ${

       … while evaluating an attribute `nixos-tsvetan-recovery`

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:394:22:

          393|                   addErrorContext "while evaluating an attribute `${name}`"
          394|                     (go (indent + "  ") value)
             |                      ^
          395|                 };") v)

       … while calling 'go'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:343:18:

          342|     let
          343|     go = indent: v:
             |                  ^
          344|     let     introSpace = if multiline then "\n${indent}  " else " ";

       … while calling anonymous lambda

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/attrsets.nix:1096:10:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |          ^
         1097|

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/attrsets.nix:1096:16:

         1095|     attrs:
         1096|     map (name: f name attrs.${name}) (attrNames attrs);
             |                ^
         1097|

       … while calling anonymous lambda

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:391:22:

          390|           + concatStringsSep introSpace (mapAttrsToList
          391|               (name: value:
             |                      ^
          392|                 "${escapeNixIdentifier name} = ${

       … while evaluating an attribute `program`

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:394:22:

          393|                   addErrorContext "while evaluating an attribute `${name}`"
          394|                     (go (indent + "  ") value)
             |                      ^
          395|                 };") v)

       … while calling 'go'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:343:18:

          342|     let
          343|     go = indent: v:
             |                  ^
          344|     let     introSpace = if multiline then "\n${indent}  " else " ";

       … while calling 'evalNext'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:318:24:

          317|           let
          318|             evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
             |                        ^
          319|           in

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:318:27:

          317|           let
          318|             evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
             |                           ^
          319|           in

       … while calling 'mapAny'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:316:25:

          315|           else id;
          316|         mapAny = depth: v:
             |                         ^
          317|           let

       … from call site

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/generators.nix:318:47:

          317|           let
          318|             evalNext = x: mapAny (depth + 1) (transform (depth + 1) x);
             |                                               ^
          319|           in

       … while calling 'id'

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/trivial.nix:36:8:

           35|   */
           36|   id = x: x;
             |        ^
           37|

       … while calling anonymous lambda

         at /nix/store/wxjsfgkkd93fwqn1g49srpj9gms656wn-source/modules.nix:506:44:

          505|       context = name: ''while evaluating the module argument `${name}' in "${key}":'';
          506|       extraArgs = builtins.mapAttrs (name: _:
             |                                            ^
          507|         builtins.addErrorContext (context name)

       … while evaluating the module argument `self' in "/nix/store/q02rm3lky3lhwswqwnqsbykmc2q0zy2b-source/src/nixos/machines/tsvetan":

       error: infinite recursion encountered

       at «string»:47:48:

           46|
           47|           outputs = flake.outputs (inputs // { self = result; });
             |                                                ^
           48|

help-wanted @ 2022145 (#118)

Asked NixOS for help in https://matrix.to/#/!RRerllqmbATpmbJgCn:nixos.org/$3BlLluy3AoaJIS8soVFk_0RM6peFKc_PdCEZJikE4M4?via=nixos.org&via=matrix.org&via=tchncs.de

@Kreyren Kreyren added the help wanted Extra attention is needed label Jul 11, 2024
@Kreyren
Copy link
Member Author

Kreyren commented Jul 11, 2024

Your configuration is getting complex beyond any recognition making it difficult to debug and fix issues like these UBs -- @TanvirOnGH (#118 (comment))

I wouldn't call it complex, it seems to be very minimal just does a lot of things.. Kinda like UNIX is very simple, it just takes a genius to understand it's simplicity.

This issue rather seems to be a problem with integration with flake parts as those change the way self is handled (as discussed with other Nix Devs).

EDIT: Filed a bug in nix-community/nixos-generators#349

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

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant