From 150468c70d7676afeb52c876e81a84fc333c9c42 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 27 Mar 2024 16:32:14 +0100 Subject: [PATCH] Fix post-build hook "exec" needs to come after the environment variables. --- magic-nix-cache/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magic-nix-cache/src/main.rs b/magic-nix-cache/src/main.rs index c6ae90e..9d8756e 100644 --- a/magic-nix-cache/src/main.rs +++ b/magic-nix-cache/src/main.rs @@ -260,7 +260,7 @@ async fn main_cli() -> Result<()> { format!( // NOTE(cole-h): We want to exit 0 even if the hook failed, otherwise it'll fail the // build itself - "#! /bin/sh\nexec RUST_LOG=trace RUST_BACKTRACE=full {} --server {}\n", + "#! /bin/sh\nRUST_LOG=trace RUST_BACKTRACE=full exec {} --server {}\n", std::env::current_exe() .with_context(|| "Getting the path of magic-nix-cache")? .display(),