Skip to content

Make upgrade command correctly select latest applicable version#796

Merged
yao-msft merged 1 commit into
microsoft:masterfrom
yao-msft:upgradetolatest
Mar 15, 2021
Merged

Make upgrade command correctly select latest applicable version#796
yao-msft merged 1 commit into
microsoft:masterfrom
yao-msft:upgradetolatest

Conversation

@yao-msft

@yao-msft yao-msft commented Mar 13, 2021

Copy link
Copy Markdown
Contributor

Fixes part of #794

Change

The code to select latest applicable upgrade version did not stop after it found the latest applicable version. The fix is to add a break once it did.

Validation

Tried out the scenario described in #794 and confirmed winget installs latest after the fix.
Added unit tests.

Microsoft Reviewers: Open in CodeFlow

@yao-msft yao-msft requested a review from a team as a code owner March 13, 2021 05:01
@yao-msft yao-msft merged commit 30ac6b4 into microsoft:master Mar 15, 2021
@yao-msft yao-msft deleted the upgradetolatest branch March 15, 2021 20:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants