From c95341ec2ba06a371343e568f87428dc046daa1a Mon Sep 17 00:00:00 2001 From: Mario Zechner Date: Thu, 28 Aug 2025 14:21:35 +0200 Subject: [PATCH] Add debugging information to dart format check workflow --- .github/workflows/format-check-dart.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.github/workflows/format-check-dart.yml b/.github/workflows/format-check-dart.yml index 976ccfbe2..419fad535 100644 --- a/.github/workflows/format-check-dart.yml +++ b/.github/workflows/format-check-dart.yml @@ -18,6 +18,29 @@ jobs: - name: Check dart format version run: | dart format --version + + - name: Debug environment + run: | + echo "=== System Info ===" + uname -a + echo "=== Dart Info ===" + dart --version + which dart + echo "=== Current Directory ===" + pwd + echo "=== Git Config ===" + git config --list | grep -E "(core\.|user\.)" || true + echo "=== Line endings config ===" + git config core.autocrlf || echo "not set" + git config core.eol || echo "not set" + echo "=== Check .gitattributes ===" + if [ -f .gitattributes ]; then cat .gitattributes; else echo "No .gitattributes"; fi + echo "=== Sample Dart file (first 5) ===" + find . -name "*.dart" -not -path "*/.*" | head -5 | while read f; do + echo "File: $f" + file "$f" + od -c "$f" | head -2 + done - name: Format Dart run: ./formatters/format-dart.sh