From 625d17b0dbc5555fa33ab9d28156727e8a36a50e Mon Sep 17 00:00:00 2001 From: Robert Hensing Date: Wed, 22 May 2024 13:39:19 +0200 Subject: [PATCH] doc: Explain why we might need to clear the build hook (cherry picked from commit 52d81586c671226ab2c1bbe0e1914c11b58239da) --- rust/nix-expr/src/eval_state.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/rust/nix-expr/src/eval_state.rs b/rust/nix-expr/src/eval_state.rs index ec1b818..e558f1b 100644 --- a/rust/nix-expr/src/eval_state.rs +++ b/rust/nix-expr/src/eval_state.rs @@ -250,7 +250,10 @@ mod tests { fn setup() { (|| -> Result<()> { init()?; - // If it reinvokes the test suite, + // During development, we encountered a problem where the build hook + // would cause the test suite to reinvokes itself, causing an infinite loop. + // While _NIX_TEST_NO_SANDBOX=1 should prevent this, we may also set the + // build hook to "" to prevent this. // settings::set("build-hook", "")?; // When testing in the sandbox, the default build dir would be a parent of the storeDir,