Skip to content

Conversation

anamnavi
Copy link
Member

@anamnavi anamnavi commented Oct 18, 2022

PR Summary

Fix bug related to updating a prerelease version package. If the package has latest prerelease version, the discrepancy with System.Version and NuGetVersion instances used for latest version comparison was causing the latest preview version to be attempted to be reinstalled. With this fix it can detect correctly if it the latest version is the latest and not reinstall.

PR Context

Resolves #464 #818 #749 #619

PR Checklist

@anamnavi anamnavi added PR-Bug This pull request resolves an issue bug Release This pull request is part the next release labels Oct 19, 2022
@anamnavi anamnavi changed the title Prerelease update bug Bugfix for Update cmdlet attempting to reinstall latest preview version Oct 19, 2022
Copy link
Contributor

@alyssa1303 alyssa1303 left a comment

Choose a reason for hiding this comment

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

This might also fix this issue too #749

@alerickson alerickson merged commit ab4da8f into PowerShell:master Dec 28, 2022
@SydneyhSmith SydneyhSmith removed PR-Bug This pull request resolves an issue bug Release This pull request is part the next release labels May 22, 2023
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.

Update-PSResource -Prerelease removes PowerShellGet 3.0

4 participants