From 254c586bebc490ddbd6bbb60ed2618ebd1bacee5 Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 28 Aug 2025 14:49:20 +0200 Subject: [PATCH] Ignore GeneratedPluginRegistrant files when checking for format changes These are auto-generated files that can change when running flutter pub get and shouldn't fail the formatting check. --- .github/workflows/format-check-dart.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/format-check-dart.yml b/.github/workflows/format-check-dart.yml index 03a5d16ff..81ab465e9 100644 --- a/.github/workflows/format-check-dart.yml +++ b/.github/workflows/format-check-dart.yml @@ -35,8 +35,10 @@ jobs: - name: Check for changes run: | - git ls-files -m - if [[ `git ls-files -m` ]]; then + # Ignore generated files that might change during flutter pub get + git ls-files -m | grep -v "GeneratedPluginRegistrant" > /tmp/modified_files || true + if [ -s /tmp/modified_files ]; then + cat /tmp/modified_files echo "Detected Dart formatting errors!" echo "Creating diff files..." mkdir -p dart-format-diff