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 shows wrong package id with name #3072

Open
joshmar opened this issue Mar 14, 2023 · 1 comment
Open

Winget shows wrong package id with name #3072

joshmar opened this issue Mar 14, 2023 · 1 comment
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@joshmar
Copy link

joshmar commented Mar 14, 2023

Brief description of your issue

I'm dependent on winget to list the version numbers of a package for me, right now Python.

When I use winget list it shows me all the Python versions installed, however I need to know if an exact version of Python has been installed as well, hence the use of winget list -e. (ps. the issue also already persists in the winget list as shown below)
image

This however returns an unexpected result:
image

Instead of getting the message: No installed package found matching input criteria. I am now dumbfounded with a python 2.7.14 having an Id of Python.Python.3.9

Steps to reproduce

  1. run: winget install --id=Python.Python.2 -e
  2. run: winget list --id=Python.Python.3.9 -e

Expected behavior

return:

Name                   Id                 Version    Available Source
---------------------------------------------------------------------
Python 2.7.14 (64-bit) Python.Python.2 < 3.12.0a1 3.12.0a5  winget

Actual behavior

return

Name                   Id                Version Available Source
-----------------------------------------------------------------
Python 2.7.14 (64-bit) Python.Python.3.9 < 3.9.0 3.9.13    winget

Environment

Windows Package Manager v1.4.10173
Copyright (c) Microsoft Corporation. All rights reserved.

Windows: Windows.Desktop v10.0.22000.1574
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.19.10173.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
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Mar 14, 2023
@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Area-Matching Issue related to correlation between installed package and manifest and removed Needs-Triage Issue need to be triaged labels Mar 14, 2023
@denelon denelon added this to the v.Next-Client milestone Jun 5, 2023
@BlockyTheDev
Copy link

Similar thing (I think it has the same origin) on my side since the version Python 3.12 beta 4 (Problem was not present, when only the Python alpha versions were in the package manifest repository.) was added to the package manifest repository in the commit microsoft/winget-pkgs@7becc69 .

On my system I have installed Python version 3.11.4 as a user installation, installed with the Installer from https://www.python.org/. Since the new version is in the manifest repository, winget shows me the following:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Matching Issue related to correlation between installed package and manifest Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

3 participants