Open AvogatoWizardWhisker opened 1 month ago
Hi I'm an AI powered bot that finds similar issues based off the issue title.
Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!
winget upgrade --all
reports packages with unknown version numbers, that --include-unknown
does not list (#2929), similarity score: 0.86--include-unknown
does not work (#3477), similarity score: 0.80--include-unknown
not functioning as expected (#1939), similarity score: 0.79Note: You can give me feedback by thumbs upping or thumbs downing this comment.
I double checked with winget upgrade --include-unknown
, there was only one package
@florelis accurately described the issue in #2458
I took a quick look at the code and saw two possible sources for inconsistencies with the unknown count
- When listing available upgrades we first filter the unknown installed versions and count them there, but we may later remove other packages that are not available from any source. So the count of unknown includes those un-available packages that are not listed with --include-unknown. That's probably what happened here.
- When performing the upgrades we first filter the unknown versions and count them there, but we later remove packages where the update is not applicable (e.g., mismatched architecture). So the count of unknown includes the non-applicable updates that are not applied with --include-unknown.
Brief description of your issue
I ran
winget upgrade
to update available packages. When it was done, i got the following textBut when run
winget upgrade --include-unknown
, there was only one package whose version is unknownSteps to reproduce
winget upgrade --all -h
86 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
Expected behavior
I'm expecting for packages to successfully update.
Actual behavior
When winget finished updating packages, this message shows up
86 package(s) have version numbers that cannot be determined. Use --include-unknown to see all results.
Even tho i runwinget upgrade --include-unknown
, there's only one package (NirSoft.BlueScreenView) with unknown version.Environment