make: Ignore .mypy_cache folders while copying files

This fixes the problem of running over the limit of ARG_MAX of /bin/sh in the
dev container when copying the files of plinth modules.

Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
This commit is contained in:
Joseph Nuthalapati 2024-07-04 14:17:24 +05:30 committed by Sunil Mohan Adapa
parent 0a68522b84
commit 1e38dbd720
No known key found for this signature in database
GPG Key ID: 43EA1CFF0AA7C5F2

View File

@ -49,7 +49,8 @@ FIND_ARGS := \
-not -iname ".*" \
-not -iname "sessionid*" \
-not -iname "~*" \
-not -iname "django-secret.key"
-not -iname "django-secret.key" \
-not -iwholename "*/.mypy_cache/*"
ROOT_DATA_FILES := $(shell find data -type f $(FIND_ARGS))