ci(upstream-merge): purge nested Cargo caches under codex-rs (belt-and-suspenders)

This commit is contained in:
James Peter
2025-09-07 18:05:08 +10:00
parent 59ecbbe991
commit a8c7535c4d
+3 -2
View File
@@ -265,8 +265,9 @@ jobs:
files=$(git ls-files -- "$p" || true)
if [ -n "$files" ]; then echo "$files" | xargs -r git rm -f --; removed=true; fi
done
# Belt-and-suspenders: drop any accidentally committed cargo cache dirs (.cargo-home/ or .cargo2/)
for d in .cargo-home .cargo2; do
# Belt-and-suspenders: drop any accidentally committed cargo cache dirs
# Cover both repo-root and nested workspace (e.g., codex-rs/.cargo-home)
for d in .cargo-home .cargo2 codex-rs/.cargo-home codex-rs/.cargo2; do
files=$(git ls-files -- "$d/**" || true)
if [ -n "$files" ]; then echo "$files" | xargs -r git rm -f --; removed=true; fi
done