[flutter_tools] remove all pub caching logic (#66776)
There have been some more additional reports of a missing 'package:characters' import after upgrading flutter, as well as problems with detecting the correct language version. This has me concerned that our pub caching logic is incorrect. Instead of the tool attempting to guess when pub should be run, always delegate to pub.
This commit is contained in:
@@ -950,9 +950,9 @@ abstract class FlutterCommand extends Command<void> {
|
||||
// First always update universal artifacts, as some of these (e.g.
|
||||
// ios-deploy on macOS) are required to determine `requiredArtifacts`.
|
||||
await globals.cache.updateAll(<DevelopmentArtifact>{DevelopmentArtifact.universal});
|
||||
|
||||
await globals.cache.updateAll(await requiredArtifacts);
|
||||
}
|
||||
Cache.releaseLock();
|
||||
|
||||
await validateCommand();
|
||||
|
||||
@@ -979,11 +979,7 @@ abstract class FlutterCommand extends Command<void> {
|
||||
context: PubContext.getVerifyContext(name),
|
||||
generateSyntheticPackage: project.manifest.generateSyntheticPackage,
|
||||
);
|
||||
// All done updating dependencies. Release the cache lock.
|
||||
Cache.releaseLock();
|
||||
await project.ensureReadyForPlatformSpecificTooling(checkProjects: true);
|
||||
} else {
|
||||
Cache.releaseLock();
|
||||
}
|
||||
|
||||
setupApplicationPackages();
|
||||
|
||||
Reference in New Issue
Block a user