Don't mention subcommand in flutter suggestion (#3994)
diff --git a/lib/src/sdk/flutter.dart b/lib/src/sdk/flutter.dart
index 2151e87..0421b75 100644
--- a/lib/src/sdk/flutter.dart
+++ b/lib/src/sdk/flutter.dart
@@ -69,7 +69,7 @@
@override
String get installMessage =>
- 'Flutter users should run `flutter pub get` instead of `dart pub get`.';
+ 'Flutter users should use `flutter pub` instead of `dart pub`.';
@override
Version? get version {
diff --git a/test/hosted/fail_gracefully_with_hint_test.dart b/test/hosted/fail_gracefully_with_hint_test.dart
index 7d95695..78406fd 100644
--- a/test/hosted/fail_gracefully_with_hint_test.dart
+++ b/test/hosted/fail_gracefully_with_hint_test.dart
@@ -33,7 +33,7 @@
'name': 'foo',
'version': '1.2.3',
'environment': {
- 'flutter': 'any', // generates hint -> flutter pub get
+ 'flutter': 'any', // generates hint -> flutter pub
},
}),
]),
@@ -55,7 +55,7 @@
exitCode: exit_codes.UNAVAILABLE,
error: allOf(
contains('Try again without --offline!'),
- contains('flutter pub get'), // hint that
+ contains('flutter pub'), // hint that
),
);
diff --git a/test/sdk_test.dart b/test/sdk_test.dart
index adcbf9c..cac874c 100644
--- a/test/sdk_test.dart
+++ b/test/sdk_test.dart
@@ -158,8 +158,7 @@
Because myapp depends on foo from sdk which doesn't exist (the
Flutter SDK is not available), version solving failed.
- Flutter users should run `flutter pub get` instead of `dart pub
- get`.
+ Flutter users should use `flutter pub` instead of `dart pub`.
"""),
exitCode: exit_codes.UNAVAILABLE,
);
diff --git a/test/testdata/goldens/hosted/fail_gracefully_with_hint_test/supports two hints.txt b/test/testdata/goldens/hosted/fail_gracefully_with_hint_test/supports two hints.txt
index a45b0f0..ae7d2e5 100644
--- a/test/testdata/goldens/hosted/fail_gracefully_with_hint_test/supports two hints.txt
+++ b/test/testdata/goldens/hosted/fail_gracefully_with_hint_test/supports two hints.txt
@@ -6,7 +6,7 @@
[STDERR] Because foo <1.2.4 requires the Flutter SDK and foo >=1.2.4 depends on bar any, every version of foo requires bar any.
[STDERR] So, because bar doesn't exist (could not find package bar in cache) and myapp depends on foo any, version solving failed.
[STDERR]
-[STDERR] Flutter users should run `flutter pub get` instead of `dart pub get`.
+[STDERR] Flutter users should use `flutter pub` instead of `dart pub`.
[STDERR]
[STDERR] Try again without --offline!
[EXIT CODE] 69
diff --git a/test/version_solver_test.dart b/test/version_solver_test.dart
index feb3977..2a41434 100644
--- a/test/version_solver_test.dart
+++ b/test/version_solver_test.dart
@@ -1283,7 +1283,7 @@
error: equalsIgnoringWhitespace('''
Because myapp requires the Flutter SDK, version solving failed.
- Flutter users should run `flutter pub get` instead of `dart pub get`.
+ Flutter users should use `flutter pub` instead of `dart pub`.
'''),
);
});
@@ -1304,7 +1304,7 @@
Because myapp depends on foo any which requires the Flutter SDK, version
solving failed.
- Flutter users should run `flutter pub get` instead of `dart pub get`.
+ Flutter users should use `flutter pub` instead of `dart pub`.
'''),
);
});
@@ -1337,7 +1337,7 @@
error: equalsIgnoringWhitespace('''
Because myapp requires the Flutter SDK, version solving failed.
- Flutter users should run `flutter pub get` instead of `dart pub get`.
+ Flutter users should use `flutter pub` instead of `dart pub`.
'''),
);
});