Skip to content

[flutter_tool] Do not continue with a no-op 'upgrade' - #46011

Merged
tvolkert merged 1 commit into
flutter:masterfrom
zanderso:no-op-upgrade-no-welcome
Dec 4, 2019
Merged

tvolkert merged 1 commit into
flutter:masterfrom
zanderso:no-op-upgrade-no-welcome

Conversation

@zanderso

@zanderso zanderso commented Dec 3, 2019

Copy link
Copy Markdown
Member

Description

If the result of the git pull --ff during the flutter upgrade command lands us on the exact same channel and revision, then do not continue with the rest of the upgrade.

Related Issues

#46004

Tests

I added the following tests:

Added a test to upgrade_test.dart

Breaking Change

Does your PR require Flutter developers to manually update their apps to accommodate your change?

  • Yes, this is a breaking change (Please read [Handling breaking changes]). Replace this with a link to the e-mail where you asked for input on this proposed change.
  • No, this is not a breaking change.

@zanderso zanderso added the tool Affects the "flutter" command-line tool. See also t: labels. label Dec 3, 2019

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we trace here that we've stopped the upgrade?

@jonahwilliams jonahwilliams left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nit

@christopherfujino christopherfujino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tvolkert
tvolkert merged commit 4484ae4 into flutter:master Dec 4, 2019
@zanderso
zanderso deleted the no-op-upgrade-no-welcome branch December 4, 2019 15:54
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants