integration-test: bust cache on bpf-linker

This is useful when iterating on bpf-linker locally, which is otherwise
an undeclared input to this build.

We could use an artifact dependency[0] here, but they are unstable and
bpf-linker requires gymnastics to build correctly (for now).

[0] https://doc.rust-lang.org/cargo/reference/unstable.html#artifact-dependencies-dependency-declarations
reviewable/pr657/r1
Tamir Duberstein 1 year ago
parent 2a6d2a6402
commit 581d5c8f5f
No known key found for this signature in database

@ -24,4 +24,5 @@ tokio = { version = "1.24", default-features = false, features = [
] }
[build-dependencies]
cargo_metadata = "0.15.4"
cargo_metadata = { version = "0.15.4", default-features = false }
which = { version = "4.4.0", default-features = false }

@ -12,6 +12,7 @@ use std::{
use cargo_metadata::{
Artifact, CompilerMessage, Dependency, Message, Metadata, MetadataCommand, Package, Target,
};
use which::which;
fn main() {
const AYA_BUILD_INTEGRATION_BPF: &str = "AYA_BUILD_INTEGRATION_BPF";
@ -147,6 +148,9 @@ fn main() {
}
}
let bpf_linker = which("bpf-linker").unwrap();
println!("cargo:rerun-if-changed={}", bpf_linker.to_str().unwrap());
let mut cmd = Command::new("cargo");
cmd.args([
"build",

Loading…
Cancel
Save