Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make upgrade command correctly select latest applicable version #796

Merged
merged 1 commit into from
Mar 15, 2021

Conversation

yao-msft
Copy link
Contributor

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

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