diff options
| author | Maximilian Bosch <maximilian@mbosch.me> | 2021-07-23 10:49:51 +0200 |
|---|---|---|
| committer | Maximilian Bosch <maximilian@mbosch.me> | 2021-08-25 23:18:27 +0200 |
| commit | fbc9084c39297f6a8ca618b0f6a3ccdd4489ab6a (patch) | |
| tree | df06e9d4c57407c0acf9e4da258389175c49427f /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch | |
| parent | 55ea29fd8c7a4b130a114b0f06b3fadfaf028356 (diff) | |
lib/options: use `depthLimit` for `toPretty` when showing a definition
When having a bogus declaration such as
{ lib, ... }:
{
foo.bar = mkOption {
type = types.str;
};
}
the evaluation will terminate with a not-so helpful
error: stack overflow (possible infinite recursion)
To make sure a useful error is still provided, I added a `depthLimit` of
`10` which should be perfectly sufficient to `toPretty` when it's used
in an error-case for `showDefs`.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions
