Skip to content

Fix/ci format language version - #7

Merged
AmisKwok merged 3 commits into
mainfrom
fix/ci-format-language-version
Sep 21, 2026
Merged

AmisKwok merged 3 commits into
mainfrom
fix/ci-format-language-version

Conversation

@AmisKwok

Copy link
Copy Markdown
Member

No description provided.

dart format derives each file's language version from .dart_tool/package_config.json. Formatting without it (what the auto-format bot did) falls back to the pubspec lower bound and emits the pre-3.7 style, which CI - running after pub get - rejects. Also adds the trailing comma that flutter's analyzer wants in the runZonedGuarded callback.
The workflow ran 'dart format' on a checkout without .dart_tool/package_config.json, so the formatter used the pubspec lower bound (3.4) and committed the pre-3.7 style. CI, which installs dependencies first, expects the current style - so every bot commit kept 'Check formatting' red. Now all three packages run pub get / flutter pub get before formatting.
@AmisKwok
AmisKwok merged commit d38d974 into main Sep 21, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant