From 34b3aa18f3d8a86f177273a38d80e0b148cb86f4 Mon Sep 17 00:00:00 2001 From: Ruilei Ma Date: Mon, 20 Oct 2025 17:42:12 +0800 Subject: [PATCH] [AURON #1478] Safely clean target-docker build directories without deleting cache --- auron-build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/auron-build.sh b/auron-build.sh index 90f741630..e1ca67508 100755 --- a/auron-build.sh +++ b/auron-build.sh @@ -409,7 +409,9 @@ if [[ "$USE_DOCKER" == true ]]; then # Clean the host-side directory that is mounted into the Docker container. # This avoids "device or resource busy" errors when running `mvn clean` inside the container. echo "[INFO] Docker mode: manually cleaning target-docker contents..." - rm -rf ./target-docker/* || echo "[WARN] Failed to clean target-docker/*" + rm -rf ./target-docker/build ./target-docker/target || echo "[WARN] Failed to clean target-docker/*" + mkdir -p ./target-docker/build ./target-docker/target + fi echo "[INFO] Compiling inside Docker container..."