Skip to content

Commit 1286100

Browse files
committed
Updated command to use right dart commands
1 parent ad699ce commit 1286100

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/src/checkers/dart_project_style_guide_checker.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class DartProjectStyleGuideChecker extends CodeStyleViolationsChecker {
8282
@protected
8383
Future<void> runPubGet() {
8484
return Process.run(
85-
'pub',
86-
<String>['get'],
85+
'dart',
86+
<String>['pub', 'get'],
8787
runInShell: true,
8888
stdoutEncoding: utf8,
8989
stderrEncoding: utf8,

lib/src/checkers/flutter_project_style_guide_checker.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class FlutterProjectStyleGuideChecker extends DartProjectStyleGuideChecker {
5353
Future<void> runPubGet() {
5454
return Process.run(
5555
'flutter',
56-
<String>['packages', 'get'],
56+
<String>['pub', 'get'],
5757
runInShell: true,
5858
stderrEncoding: utf8,
5959
stdoutEncoding: utf8,

0 commit comments

Comments
 (0)