flutter/packages should enforce an expected clang-format version #39767
Labels
c: contributor-productivity
Team-specific productivity, code health, technical debt.
p: tooling
Affects the flutter_plugin_tools package
P3
Issues that are less important to the Flutter project
package
flutter/packages repository. See also p: labels.
team-ecosystem
Owned by Ecosystem team
triaged-ecosystem
Triaged by Ecosystem team
Right now our formatting tools use whatever version of
clang-format
is in the user's path, but CI always usesclang-format-7
. Apparently this has also changed over time, since looking at the related issue #12864 there's some mention of CI usingclang-format-5
. Formatting differences fromclang-format
version mismatches are hard to diagnose and can even be introduced just from running the formatting tool without any arguments. Ideallypub global run flutter_plugin_tools format
should know whatclang-format
version CI is expecting and either download it itself (ideal) or throw if it can't find it.The text was updated successfully, but these errors were encountered: