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

winget upgrade offers older versions of already installed packages with non-standard versioning schemes #3126

Open
brkerez opened this issue Mar 31, 2023 · 1 comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Milestone

Comments

@brkerez
Copy link

brkerez commented Mar 31, 2023

Brief description of your issue

For some packages winget upgrade offers older versions of packages.

image

In this case, it is offering

  • for CrystalDiskMark it is offering 8.0.4 which is older than the already installed 8.0.4a
  • for Stardock.Fences it is offering 4.07.02 which is older than the already installed 4.1.0.6

I'm not sure how CrystalDiskMark was upgraded to 8.0.4a (probably manually by CrystalDiskMark installer by me), Fences was upgraded to 4.1.0.6 by its own built-in upgrade mechanism

I know that those applications have non-standard versioning schemes (a suffix for CrystalDiskMark and 0 prefix in the minor version number for Fences) and I don't know if this is really a bug and if that should be handled in the package manifests somehow but I'm reporting it just in case there is some space for winget version matching improvement (not sure whether this relates to Matching logic needs to be updated #2995
)

Steps to reproduce

run winget upgrade | grep -E "CrystalDiskMark|Fences" with the latest versions of CrystalDiskMark / Fences installed

Expected behavior

winget upgrade shouldn't be offering older versions of already installed packages

Actual behavior

winget upgrade is offering older versions of already installed packages with non-standard versioning schemes

Environment

@pavel λ winget --info
Windows Package Manager (Preview) v1.5.441-preview
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22621.1413
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.20.441.0

Logs: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir

User Settings: %LOCALAPPDATA%\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json

Links
---------------------------------------------------------------------------
Privacy Statement   https://aka.ms/winget-privacy
License Agreement   https://aka.ms/winget-license
Third Party Notices https://aka.ms/winget-3rdPartyNotice
Homepage            https://aka.ms/winget
Windows Store Terms https://www.microsoft.com/en-us/storedocs/terms-of-sale

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Disabled
LocalArchiveMalwareScanOverride           Disabled
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Mar 31, 2023
@stephengillie
Copy link

@stephengillie stephengillie added Issue-Bug It either shouldn't be doing this or needs an investigation. and removed Needs-Triage Issue need to be triaged labels Mar 31, 2023
@denelon denelon added this to the v.Next-Client milestone Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants