mirror of
https://github.com/flutter/flutter.git
synced 2025-06-03 00:51:18 +00:00
flutter upgrade
needed twice if sky_services dependencies change
Now we run `flutter --version` to update our local cache of packages before running `pub upgrade`, which reads from that cache. Fixes #2953
This commit is contained in:
parent
641604ad94
commit
3824e88df7
@ -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']);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user