From afa39e7d9610a23be700f79472705033db8e105c Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sat, 4 Nov 2023 08:35:44 +1000 Subject: [PATCH] Give users a hint when they try to build from a source tarball --- build/runner/src/build.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/runner/src/build.rs b/build/runner/src/build.rs index 950a99aec..77c82433e 100644 --- a/build/runner/src/build.rs +++ b/build/runner/src/build.rs @@ -165,7 +165,8 @@ fn get_buildhash() -> String { .args(["rev-parse", "--short=8", "HEAD"]) .output() .expect("git"); - assert!(output.status.success(), "git failed"); + assert!(output.status.success(), + "Invoking 'git' failed. Make sure you're building from a clone of the git repo, and that 'git' is installed."); String::from_utf8(output.stdout).unwrap().trim().into() }