[flutter_tools] make precache force blow away stamp files (#61003)
update flutter precache --force to delete all stamp files. In the event that a user is hitting a cache issue, this should be easier than re-downloading all artifacts or manually blowing away the cache. This is probably how it should have worked in the first place
This commit is contained in:
@@ -48,6 +48,7 @@ import 'src/commands/train.dart';
|
||||
import 'src/commands/update_packages.dart';
|
||||
import 'src/commands/upgrade.dart';
|
||||
import 'src/commands/version.dart';
|
||||
import 'src/features.dart';
|
||||
import 'src/globals.dart' as globals;
|
||||
import 'src/runner/flutter_command.dart';
|
||||
import 'src/web/compile.dart';
|
||||
@@ -98,7 +99,13 @@ Future<void> main(List<String> args) async {
|
||||
LogsCommand(),
|
||||
MakeHostAppEditableCommand(),
|
||||
PackagesCommand(),
|
||||
PrecacheCommand(verboseHelp: verboseHelp),
|
||||
PrecacheCommand(
|
||||
verboseHelp: verboseHelp,
|
||||
cache: globals.cache,
|
||||
logger: globals.logger,
|
||||
platform: globals.platform,
|
||||
featureFlags: featureFlags,
|
||||
),
|
||||
RunCommand(verboseHelp: verboseHelp),
|
||||
ScreenshotCommand(),
|
||||
ShellCompletionCommand(),
|
||||
|
||||
Reference in New Issue
Block a user