Files
nixpkgs/lib
Robert Hensing 9c0ab2f26d lib/modules.nix: Add file context to unmerged values in mergeDefinitions
This helps with troubleshooting exceptions in config values, which were hard
to track down for options with many definitions.
The trace will look like:

    error: while evaluating the attribute 'config.foo' at undefined position:
    [...]
    while evaluating the option `foo':
    [...]
    while evaluating definitions from `/home/user/mymod.nix':
    while evaluating 'dischargeProperties' at /home/user/nixpkgs/lib/modules.nix:464:25, called from /home/user/nixpkgs/lib/modules.nix:392:137:
    while evaluating the attribute 'value' at /home/user/nixpkgs/lib/modules.nix:277:44:
    Value error!

where the `/home/user/mymod.nix` module is

    { lib, ... }: {
      options.foo = lib.mkOption {
        type = lib.types.lines;
      };
      config.foo = builtins.throw "Value error!";
    }
2020-02-24 00:15:36 +01:00
..
2019-08-28 11:07:32 +00:00
2019-04-17 15:55:57 +01:00
2019-08-28 11:07:32 +00:00
2020-01-17 08:31:22 -03:00
2019-09-06 22:46:05 +02:00
2018-11-22 08:59:48 +00:00
2018-08-30 08:09:54 -04:00
2019-08-26 02:01:49 +02:00
2020-02-10 14:14:18 -05:00
2019-09-26 17:42:42 +02:00