Skip to content

Commit 0db7ff2

Browse files
authored
Run formatter directly in grind.dart (#1654)
grinder's Pub class is broken in 2.17 (see google/grinder.dart#385), so we need to run the formatter directly.
1 parent 33f18c4 commit 0db7ff2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tool/grind.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ void all() {}
6767

6868
@Task('Run the Dart formatter.')
6969
void format() {
70-
Pub.run('dart_style',
71-
script: 'format', arguments: ['--overwrite', '--fix', '.']);
70+
run('dart',
71+
arguments: ['run', 'dart_style:format', '--overwrite', '--fix', '.']);
7272
}
7373

7474
@Task('Installs dependencies from npm.')

0 commit comments

Comments
 (0)