Emilia Bopp and Qyriad
0ade82d23a
libexpr: add builtins.warn
...
Added builtins.warn` which takes two arguments: a message that is
displayed as a warning during evaluation which must be a string and a
value that is returned from the expression.
The next commits add new settings to control the behavior of the new
builtin: `debugger-on-warn` allows the user to start the debugger and
`abort-on-warn` aborts evaluation with an error.
Unlike upstream, I chose not to mark evaluation warnings from
`builtins.warn` as distinct from other warnings because that breaks the
commonly expected logging format `level: message`.
Co-authored-by: Qyriad <qyriad@qyriad.me >
Upstream-PR: https://github.com/NixOS/nix/pull/10592
Fixes: https://git.lix.systems/lix-project/lix/issues/579
Change-Id: I8658c88e5c27952b65e8b9f5525a572e0680cc1f
2025-11-20 17:52:29 +01:00
..
2025-09-18 23:38:46 +02:00
2025-10-04 16:31:45 +02:00
2025-06-02 21:52:34 +02:00
2025-06-01 20:19:37 +02:00
2025-11-18 13:48:32 +00:00
2025-11-18 13:48:32 +00:00
2025-11-18 13:48:32 +00:00
2025-06-01 20:19:37 +02:00
2025-06-02 21:52:34 +02:00
2025-11-18 13:48:32 +00:00
2025-09-18 23:38:46 +02:00
2025-11-18 13:48:32 +00:00
2025-11-18 19:45:15 +01:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-11-18 19:45:15 +01:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-11-17 22:10:11 +00:00
2025-11-17 22:10:11 +00:00
2025-11-18 13:48:32 +00:00
2025-11-18 19:52:17 +01:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-11-18 20:01:23 +01:00
2025-11-18 20:01:23 +01:00
2025-11-17 22:10:11 +00:00
2025-11-18 20:01:23 +01:00
2025-11-18 13:48:32 +00:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-11-20 17:52:29 +01:00
2025-09-18 23:38:46 +02:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-09-18 23:38:46 +02:00
2025-06-02 21:52:34 +02:00
2025-10-27 20:28:27 +01:00
2025-06-02 21:52:34 +02:00
2025-11-14 02:56:53 +00:00
2025-06-01 20:19:37 +02:00
2025-11-18 19:52:17 +01:00
2025-06-02 21:52:34 +02:00
2025-11-17 22:10:11 +00:00
2025-06-02 21:52:34 +02:00
2025-11-17 22:10:11 +00:00
2025-11-18 13:48:32 +00:00
2025-06-02 21:52:34 +02:00
2025-06-20 11:36:13 +02:00
2025-06-02 21:52:34 +02:00
2025-09-18 23:38:46 +02:00
2025-09-18 23:38:46 +02:00
2025-11-17 22:10:11 +00:00
2025-11-17 22:10:11 +00:00
2025-11-18 13:48:32 +00:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-06-20 11:36:13 +02:00
2025-10-11 12:57:57 +02:00
2025-11-17 22:10:11 +00:00
2025-11-18 13:48:32 +00:00
2025-09-18 23:38:46 +02:00
2025-06-02 21:52:34 +02:00
2025-11-18 19:45:15 +01:00
2025-11-17 22:10:11 +00:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-11-17 22:10:11 +00:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-06-02 21:52:34 +02:00
2025-06-01 20:19:37 +02:00
2025-11-18 20:01:23 +01:00
2025-06-02 21:52:34 +02:00
2025-11-17 22:10:11 +00:00
2025-11-17 22:10:11 +00:00
2025-11-18 19:45:15 +01:00
2025-11-18 13:48:32 +00:00
2025-11-17 22:10:11 +00:00
2025-06-02 21:52:34 +02:00
2025-11-18 20:01:23 +01:00
2025-06-02 21:52:34 +02:00
2025-11-17 22:10:11 +00:00
2025-11-17 22:10:11 +00:00
2025-06-02 21:52:34 +02:00
2025-11-17 22:10:11 +00:00
2025-11-17 22:10:11 +00:00
2025-06-01 20:19:37 +02:00
2025-10-27 17:07:47 +01:00
2025-06-01 20:19:37 +02:00
2025-07-17 12:36:54 -07:00
2025-10-27 17:07:47 +01:00
2025-06-01 20:19:37 +02:00