diff --git a/src/cmd/build.rs b/src/cmd/build.rs index 5b7f1458843c..87615c2c990f 100644 --- a/src/cmd/build.rs +++ b/src/cmd/build.rs @@ -13,5 +13,8 @@ // limitations under the License. fn main() { + // Trigger this script if the git branch/commit changes + println!("cargo:rerun-if-changed=.git/refs/heads"); + common_version::setup_build_info(); }