summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorSilvan Mosberger <contact@infinisil.com>2021-08-10 19:54:32 +0200
committerSilvan Mosberger <contact@infinisil.com>2021-08-10 19:54:32 +0200
commit998a9c17078bfb328a1329494f082dfa13f97d9e (patch)
tree68a2ffd0e209e3a1cdd8689d189ac2f4a6f2e0cb /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parentebc72941f0d47625a03bac63f4b0ae55a356a849 (diff)
lib/options: Better mergeEqualOption error for uncomparable types
For an option definition that uses `lib.options.mergeEqualOption` underneath, like `types.anything`, an error is thrown when multiple functions are assigned, indicating that functions can't be compared for equivalence: error: The option `test' has conflicting definition values: - In `xxx': <function> - In `xxx': <function> (use '--show-trace' to show detailed location information) However, the error message didn't use the correct files. While above error indicates that both definitions are in the xxx file, that's in fact not true. Above error was generated with options.test = lib.mkOption { type = lib.types.anything; }; imports = [ { _file = "yyy"; test = y: y; } { _file = "xxx"; test = x: x; } ]; With this change, the error uses the correct file locations: error: The option `test' has conflicting definition values: - In `xxx': <function> - In `yyy': <function> (use '--show-trace' to show detailed location information)
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions