feat(nix-bindings-expr): add RecoverableError for non-memoized primop errors
Nix 2.34 memoizes primop errors by default. RecoverableError uses NIX_ERR_RECOVERABLE so transient errors allow the thunk to be retried.
This commit is contained in:
parent
cf0e8fff6a
commit
fbf5fab083
4 changed files with 126 additions and 2 deletions
|
|
@ -2,5 +2,5 @@ use nix_bindings_util::nix_version::emit_version_cfg;
|
|||
|
||||
fn main() {
|
||||
let nix_version = pkg_config::probe_library("nix-expr-c").unwrap().version;
|
||||
emit_version_cfg(&nix_version, &["2.26"]);
|
||||
emit_version_cfg(&nix_version, &["2.26", "2.34.0pre"]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue