From 41a56e14fc3defaccb9eafb5a62f58adbdd5c0f0 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Sun, 25 Oct 2020 22:32:05 -0700 Subject: [PATCH] Don't reuse BPF target build artifacts --- .buildkite/hooks/pre-command | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.buildkite/hooks/pre-command b/.buildkite/hooks/pre-command index f7151acc35..3e0491d64f 100644 --- a/.buildkite/hooks/pre-command +++ b/.buildkite/hooks/pre-command @@ -31,4 +31,9 @@ export CARGO_TARGET_CACHE=$HOME/cargo-target-cache/"$CHANNEL"-"$BUILDKITE_LABEL" mkdir -p "$CARGO_TARGET_CACHE"/target rsync -a --delete --link-dest="$CARGO_TARGET_CACHE" "$CARGO_TARGET_CACHE"/target . + + # Don't reuse BPF target build artifacts due to incremental build issues with + # `std: + # "found possibly newer version of crate `std` which `xyz` depends on + rm -rf target/bpfel-unknown-unknown )