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

Upgrade same package twice #4848

Open
ewanm89 opened this issue Oct 3, 2024 · 2 comments
Open

Upgrade same package twice #4848

ewanm89 opened this issue Oct 3, 2024 · 2 comments
Labels
Command-Upgrade Issue related to WinGet Upgrade Issue-Bug It either shouldn't be doing this or needs an investigation.

Comments

@ewanm89
Copy link

ewanm89 commented Oct 3, 2024

Brief description of your issue

When upgrading packages (probably installing too, but not tested), if you list them twice on the command line but so the package is matched two different ways for example $ winget upgrade Brave Brave.Brave, it will download and install the same package upgrade twice:
image

Steps to reproduce

Upgrade package, list it twice where once is a partial name that will match and once is the full id.

Expected behavior

It to recognise that it is the same package twice and drop the duplicate from being downloaded and installed.

Actual behavior

It will download and install the package twice.

Environment

Windows Package Manager v1.8.1911
Windows: Windows.Desktop v10.0.19045.4780
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.23.1911.0
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage Issue need to be triaged label Oct 3, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@ewanm89
Copy link
Author

ewanm89 commented Oct 3, 2024

In regards to the duplicate the bot has found, that is a previous similar bug where the search terms is exactly the same twice. Here it is doing the fuzzy match and the exact ID match basically using different search input to get the same package each time.

@denelon denelon added Issue-Bug It either shouldn't be doing this or needs an investigation. Command-Upgrade Issue related to WinGet Upgrade and removed Needs-Triage Issue need to be triaged labels Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-Upgrade Issue related to WinGet Upgrade Issue-Bug It either shouldn't be doing this or needs an investigation.
Projects
None yet
Development

No branches or pull requests

2 participants