-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Packages with the same ID and name in multiple repos break "winget show" and "winget install" #840
Comments
Great catch @jedieaston. We've been thinking about adding preferences to the settings that would allow a user to specify which source should be used when there are multiple matches. I like the idea of comparing which has the latest version. One of the challenges is the store source doesn't currently expose the version. |
@deadundead, this happens when there are two identical package identifiers in two different sources. You will need to specify the source to disambiguate.
It looks like we need to clarify the messaging, and display the sources in this case. |
This is literally happening to me right now. Look at this screenshot: |
I don't think this is just a documentation issue. Consider the following:
|
I experienced the same issue installing Oracle.JDK.17 |
[Policy] Area-Matching |
Brief description of your issue
Packages with the same ID and name in multiple repos break
winget show
andwinget install
Steps to reproduce
winget show --exact --id Microsoft.WindowsTerminal
--exact --id
, there are still two results.Expected behavior
WinGet should put the different repos in the returned table, and say "This package exists in multiple repos, specify which you want to show/install from with
--source
".Alternatively, it should just pick whichever one has the highest version (or the user's specified version if they pass
-v
), which is what other package managers do when faced with this problem (this probably makes a bit more sense in the long run, given that one of the major reasons people add additional repositories is to get access to newer versions of software that aren't ready for public consumption, like canary versions of browsers).Actual behavior
WinGet tells me it found multiple results, but doesn't tell me why (since there are no repos in the table), making it extremely difficult to figure out why I can't install Windows Terminal.
Environment
The text was updated successfully, but these errors were encountered: