mirror of
https://github.com/ParrotXray/Mantis.git
synced 2026-08-24 19:00:27 +09:00
Fix build.rs not re-running when eBPF artifacts are missing
Watch the output artifact paths with rerun-if-changed so Cargo treats a missing file as a change trigger. This covers git clean, fresh clone, and manual deletion without requiring a manual touch of build.rs. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0138PxtKH73hqxv7h1oaoSdS
This commit is contained in:
parent
fdf086b960
commit
77e04807a6
@ -37,6 +37,12 @@ fn main() {
|
||||
println!("cargo:rustc-env=DB_PATH={}", db_dir.display());
|
||||
println!("cargo:rustc-env=RULE_EVE_PATH={}", suricata_eve_socket.display());
|
||||
|
||||
// Watch output artifacts: if they are missing Cargo treats the path as non-existent
|
||||
// and unconditionally re-runs this script, which is exactly what we want after a
|
||||
// git clean, fresh clone, or manual deletion.
|
||||
println!("cargo:rerun-if-changed={}", ingress_edpf_dir.display());
|
||||
println!("cargo:rerun-if-changed={}", egress_edpf_dir.display());
|
||||
|
||||
for item in &[
|
||||
"src",
|
||||
"public",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user