Ignore post-build-hook errors

This commit is contained in:
Graham Christensen 2024-05-06 12:00:24 -04:00 committed by GitHub
parent 00fe42c282
commit 389a63ce68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -261,7 +261,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\nRUST_LOG=trace RUST_BACKTRACE=full exec {} --server {}\n",
"#! /bin/sh\nRUST_LOG=trace RUST_BACKTRACE=full {} --server {} || :\n",
std::env::current_exe()
.with_context(|| "Getting the path of magic-nix-cache")?
.display(),