From 2fbfe4ca73bc20123d73f8cf33c646a708126802 Mon Sep 17 00:00:00 2001 From: Hao Liu <44379968+TheRealHaoLiu@users.noreply.github.com> Date: Tue, 16 Dec 2025 09:00:38 -0500 Subject: [PATCH] Fix __pycache__ directory removal in clean target (#16196) Replaces the use of 'find -delete' with 'find -exec rm -rf {} +' to ensure all __pycache__ directories are properly removed during the clean process. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7b8eb41065..921d76c78c 100644 --- a/Makefile +++ b/Makefile @@ -146,7 +146,7 @@ clean-api: rm -rf build $(NAME)-$(VERSION) *.egg-info rm -rf .tox find . -type f -regex ".*\.py[co]$$" -delete - find . -type d -name "__pycache__" -delete + find . -type d -name "__pycache__" -exec rm -rf {} + rm -f awx/awx_test.sqlite3* rm -rf requirements/vendor rm -rf awx/projects