Fix post-build hook

"exec" needs to come after the environment variables.
This commit is contained in:
Eelco Dolstra 2024-03-27 16:32:14 +01:00
parent 7bd6ea0e84
commit 150468c70d

View file

@ -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(),