Clarify release provenance ownership
This commit is contained in:
parent
d1788ba9bd
commit
dfda6a5af5
1 changed files with 3 additions and 0 deletions
|
|
@ -3,6 +3,9 @@ use std::process::Command;
|
|||
fn main() {
|
||||
println!("cargo:rerun-if-env-changed=GHOSTLIGHT_BUILD_COMMIT");
|
||||
println!("cargo:rerun-if-changed=../../.git/HEAD");
|
||||
// Release tooling injects the clean-tree commit. Git discovery is only a
|
||||
// convenience for local builds because Cargo cannot reliably observe a
|
||||
// moving branch ref through `.git/HEAD` alone.
|
||||
let commit = std::env::var("GHOSTLIGHT_BUILD_COMMIT")
|
||||
.ok()
|
||||
.filter(|value| is_commit(value))
|
||||
|
|
|
|||
Loading…
Reference in a new issue