diff --git a/.unreleased/tk-no-needless-rebuilds-in-nat-lab b/.unreleased/tk-no-needless-rebuilds-in-nat-lab new file mode 100644 index 000000000..e69de29bb diff --git a/build.rs b/build.rs index d2314b64b..e34f89685 100644 --- a/build.rs +++ b/build.rs @@ -73,9 +73,6 @@ fn check_git_hooks() -> Result<()> { } fn verify_llt_secrets() { - println!("cargo:rerun-if-changed=./crates"); - println!("cargo:rerun-if-changed=./src"); - if !env::var("GITLAB_CI") .or(env::var("GITHUB_ACTIONS")) .is_ok_and(|value| value == "true") @@ -85,6 +82,9 @@ fn verify_llt_secrets() { return; } + println!("cargo:rerun-if-changed=./crates"); + println!("cargo:rerun-if-changed=./src"); + #[allow(clippy::panic)] match check_git_secrets().and_then(|_| check_git_hooks()) { Ok(_) => {} diff --git a/crates/telio-lana/build.rs b/crates/telio-lana/build.rs index 0d761821b..78da305eb 100644 --- a/crates/telio-lana/build.rs +++ b/crates/telio-lana/build.rs @@ -1,6 +1,7 @@ use anyhow::Result; #[allow(unwrap_check)] fn main() -> Result<()> { + println!("cargo:rerun-if-changed=build.rs"); let target_os = std::env::var("CARGO_CFG_TARGET_OS")?; if target_os == "windows" { if let Some(path) = std::option_env!("OUT_DIR") {