From ee83f0880a628e92b70c149f4ab70de80db8a05e Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 9 Jan 2021 17:02:36 -0500 Subject: [PATCH] fix build Signed-off-by: Christine Dodrill --- src/build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/build.rs b/src/build.rs index 600de8a..7c3f12d 100644 --- a/src/build.rs +++ b/src/build.rs @@ -8,6 +8,11 @@ fn main() -> Result<()> { .args(&["rev-parse", "HEAD"]) .output() .unwrap(); + + if std::env::var("out").is_err() { + println!("cargo:rustc-env=out=/yolo"); + } + let git_hash = String::from_utf8(output.stdout).unwrap(); println!( "cargo:rustc-env=GITHUB_SHA={}",