1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 14:41:00 +01:00
nix/src/libexpr-tests
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
..
data Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
pch libexpr-tests: Improve compile times with PCH 2025-08-17 00:56:54 +03:00
value libexpr: Slim down Bindings to 8 bytes (on 64 bit systems) 2025-09-06 00:23:54 +03:00
.version Move unit tests to the location Meson expects them to be 2024-10-17 15:42:16 -04:00
derived-path.cc treewide: Bump C++ standard version to C++23 2025-08-19 15:33:27 +03:00
error_traces.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
eval.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
json.cc Re-introduce mkStringNoCopy (revised) 2025-09-02 00:16:06 +03:00
main.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
meson.build Separate internal from non-internal unit tests of the C API 2025-09-03 22:50:42 +02:00
nix-meson-build-support rename: build-utils-meson -> nix-meson-build-support 2024-12-09 16:54:42 +01:00
nix_api_expr.cc libexpr: Add recoverable errors 2025-09-10 12:49:41 +02:00
nix_api_external.cc Separate internal from non-internal unit tests of the C API 2025-09-03 22:50:42 +02:00
nix_api_value.cc Separate internal from non-internal unit tests of the C API 2025-09-03 22:50:42 +02:00
nix_api_value_internal.cc Separate internal from non-internal unit tests of the C API 2025-09-03 22:50:42 +02:00
package.nix Write just ./.version on all components 2025-02-18 11:41:35 +01:00
primops.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
search-path.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00
trivial.cc Apply clang-format universally. 2025-07-18 12:47:27 -04:00