From 7cea33f56dd6d207abd798202b6277d69c752106 Mon Sep 17 00:00:00 2001 From: Claude Code Date: Mon, 7 Jul 2025 19:59:43 -0400 Subject: [PATCH] Fix large file detection for BusyBox find MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace -size +1M with du-based approach since BusyBox find doesn't support size suffixes. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .forgejo/workflows/code-quality.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/code-quality.yml b/.forgejo/workflows/code-quality.yml index 0ea4fe3..3812cac 100644 --- a/.forgejo/workflows/code-quality.yml +++ b/.forgejo/workflows/code-quality.yml @@ -78,13 +78,15 @@ jobs: - name: Check for large files run: | echo "Checking for large files..." - LARGE_FILES=$(find . -type f -size +1M \ + # Use du to find files larger than 1MB (1024KB) + LARGE_FILES=$(find . -type f \ -not -path "./node_modules/*" \ -not -path "./.git/*" \ -not -path "./dist/*" \ -not -path "./coverage/*" \ -not -name "*.db" \ - -not -name "package-lock.json") + -not -name "package-lock.json" \ + -exec sh -c 'size=$(du -k "$1" 2>/dev/null | cut -f1); [ "$size" -gt 1024 ] && echo "$1"' _ {} \;) if [ -n "$LARGE_FILES" ]; then echo "⚠️ Found large files (>1MB):"