Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dart pub cache clean command on pub.dart #128171

Merged
merged 4 commits into from
Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/flutter_tools/lib/src/dart/pub.dart
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ class _DefaultPub implements Pub {
_logger.printStatus('''
Found an existing Pub cache at $pubCachePath.
It can be repaired by running `dart pub cache repair`.
It can be reset by running `dart pub cache clear`.''');
It can be reset by running `dart pub cache clean`.''');
}
}
final String? home = _platform.environment['HOME'];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -940,6 +940,8 @@ exit code: 66
context: PubContext.flutterTests);
expect(logger.statusText,
contains('Found an existing Pub cache at /global/.pub-cache'));
expect(logger.statusText,
contains('It can be reset by running `dart pub cache clean`'));
expect(
logger.statusText,
contains(
Expand Down