Merge pull request #2955 from abarth/flutter_upgrade
`flutter upgrade` needed twice if sky_services dependencies change
This commit is contained in:
@@ -43,6 +43,11 @@ class UpgradeCommand extends FlutterCommand {
|
||||
if (code != 0)
|
||||
return code;
|
||||
|
||||
// Causes us to update our locally cached packages.
|
||||
code = await runCommandAndStreamOutput(<String>[
|
||||
'bin/flutter', '--version'
|
||||
], workingDirectory: ArtifactStore.flutterRoot);
|
||||
|
||||
printStatus('');
|
||||
code = await runCommandAndStreamOutput([sdkBinaryName('pub'), 'upgrade']);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user