Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit 6791174

Browse files
committed
invalidate ci cache
1 parent bfdf0bc commit 6791174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.buildkite/hooks/pre-command

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ pattern='^[0-9]+\.[0-9]+\.[0-9]+$'
1919
if [[ ${HOST_RUST_VERSION} =~ ${pattern} ]]; then
2020
HOST_RUST_VERSION="${rust_stable%.*}"
2121
fi
22-
export CARGO_TARGET_CACHE=$HOME/cargo-target-cache/"$CHANNEL"-"$BUILDKITE_LABEL"-"$SBF_TOOLS_VERSION"-"$HOST_RUST_VERSION"
22+
CACHE_VERSION=1 # bump version to invalidate caches
23+
export CARGO_TARGET_CACHE=$HOME/cargo-target-cache/"$CHANNEL"-"$BUILDKITE_LABEL"-"$SBF_TOOLS_VERSION"-"$HOST_RUST_VERSION"-"$CACHE_VERSION"
2324
(
2425
set -x
2526
MAX_CACHE_SIZE=18 # gigabytes

0 commit comments

Comments
 (0)