From 1808bea2cfe45417077251aa622d204d415eaddb Mon Sep 17 00:00:00 2001 From: Dennis Kobert Date: Tue, 9 Sep 2025 12:21:58 +0200 Subject: [PATCH] Fix editor build script always being rerun (#3156) --- editor/build.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/editor/build.rs b/editor/build.rs index 3e0a53158..8167eb7b4 100644 --- a/editor/build.rs +++ b/editor/build.rs @@ -10,10 +10,6 @@ fn main() { println!("cargo:rerun-if-env-changed=GRAPHITE_GIT_COMMIT_BRANCH"); println!("cargo:rerun-if-env-changed=GITHUB_HEAD_REF"); - // Instruct Cargo to rerun this build script if the Git HEAD or refs change. - println!("cargo:rerun-if-changed=.git/HEAD"); - println!("cargo:rerun-if-changed=.git/refs/heads"); - // Try to get the commit information from the environment (e.g. set by CI), otherwise fall back to Git commands. let commit_date = env_or_else("GRAPHITE_GIT_COMMIT_DATE", || git_or_unknown(&["log", "-1", "--format=%cI"])); let commit_hash = env_or_else("GRAPHITE_GIT_COMMIT_HASH", || git_or_unknown(&["rev-parse", "HEAD"]));