1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 14:41:00 +01:00
nix/src
Robert Hensing 6bc358ba38 libexpr: Add recoverable errors
This provides an explicit API for call-fail-retry-succeed evaluation
flows, such as currently used in NixOps4.

An alternative design would simply reset the `Value` to the original
thunk instead of `tFailed` under the condition of catching a
`RecoverableEvalError`.
That is somewhat simpler, but I believe the presence of `tFailed` is
beneficial for possible use in the repl; being able to show the error
sooner, without re-evaluation.

The hasPos method and isEmpty function are required in order to avoid
an include loop.
2025-09-10 12:49:41 +02:00
..
external-api-docs meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
internal-api-docs meson: Apply formatting universally 2025-08-07 02:58:29 +03:00
libcmd Pass dir in extraAttrs when overriding the registry 2025-09-08 09:00:59 +02:00
libexpr libexpr: Add recoverable errors 2025-09-10 12:49:41 +02:00
libexpr-c libexpr: Add recoverable errors 2025-09-10 12:49:41 +02:00
libexpr-test-support treewide: Bump C++ standard version to C++23 2025-08-19 15:33:27 +03:00
libexpr-tests libexpr: Add recoverable errors 2025-09-10 12:49:41 +02:00
libfetchers fixup: cached case 2025-09-07 19:40:24 +02:00
libfetchers-c More extern "C" for FFI 2025-09-03 22:50:42 +02:00
libfetchers-tests No more globals.hh in headers 2025-08-20 16:24:37 -04:00
libflake Fix flake registry ignoring dir parameter 2025-09-07 19:40:24 +02:00
libflake-c More extern "C" for FFI 2025-09-03 22:50:42 +02:00
libflake-tests libfetchers: Restore path separator ignoring behavior for indirect and git-archive flakerefs 2025-08-30 14:40:56 +03:00
libmain treewide: Bump C++ standard version to C++23 2025-08-19 15:33:27 +03:00
libmain-c More extern "C" for FFI 2025-09-03 22:50:42 +02:00
libstore Merge pull request #13956 from NixOS/drop-unused-addMultipleToStoreLegacy 2025-09-10 10:52:05 +02:00
libstore-c nix_store_realise: Improve typing of store path 2025-09-03 22:50:42 +02:00
libstore-test-support No more globals.hh in headers 2025-08-20 16:24:37 -04:00
libstore-tests libstore: Reallow unbracketed IPv6 addresses in store references 2025-09-09 00:41:03 +03:00
libutil libexpr: Add recoverable errors 2025-09-10 12:49:41 +02:00
libutil-c libexpr: Add recoverable errors 2025-09-10 12:49:41 +02:00
libutil-test-support Separate internal from non-internal unit tests of the C API 2025-09-03 22:50:42 +02:00
libutil-tests Separate internal from non-internal unit tests of the C API 2025-09-03 22:50:42 +02:00
nix nix/develop: pass down the interactive shell to subshells 2025-09-05 20:18:25 +05:30
perl flake: Apply nixfmt 1.0.0 2025-08-18 20:29:45 +03:00
nix-functional-tests Build Functional tests with Meson 2024-08-14 15:35:40 -04:00
nix-manual Build the manual with Meson 2024-10-09 11:58:17 -04:00