[flutter_tools] pub get skips example dir if there is no pubspec.yaml (#74264)
This commit is contained in:
@@ -164,7 +164,7 @@ class PackagesGetCommand extends FlutterCommand {
|
||||
await rootProject.regeneratePlatformSpecificTooling();
|
||||
|
||||
// Get/upgrade packages in example app as well
|
||||
if (rootProject.hasExampleApp) {
|
||||
if (rootProject.hasExampleApp && rootProject.example.pubspecFile.existsSync()) {
|
||||
final FlutterProject exampleProject = rootProject.example;
|
||||
await _runPubGet(exampleProject.directory.path, exampleProject);
|
||||
await exampleProject.regeneratePlatformSpecificTooling();
|
||||
|
||||
Reference in New Issue
Block a user