-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 -r / --recurse / --all stopped working #4628
Comments
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! Closed similar issues:
|
Can you share what you get when you run After the command finishes, it'll open up the WinGet logs directory, can you share the latest log file generated? (should be the first file if you sort by last modified time) |
Well, I guess the problem is in the specific package then as direct targeted upgrade does not work either. It sucks that I do not get ANY error at all when running -r, though. Generated log: |
But I guess you can close the issue, or maybe should I change it to something like "Errors hidden and ignored when running -r"? |
|
Also worth noting is that removing the package and installing it again will result in the newest version being installed. So there definitely is a bug, just not in the --recurse option necessarily (beyond it hiding all errors) |
@drujd I'm curious if the command succeeds for you if you run If not, can you try running a source reset through @Trenly - this seems related to:
Would you have any thoughts around this issue? |
I think the error in the logs here is pretty clear
This means that you have a user scoped install on your machine, but the manifest in winget-pkgs specifies a machine scoped installer.
In this case ther error appears to be related specifically to the msstore. However, I don’t think this is the same issue as #4328 @mdanish-kh; It presents woth the same symptoms, but the endpoint is different and the region appears to be set. This leads me to believe two things -
|
I did some more digging. Based on the log files, it seems the deserialization of the Response Details is what fails, and that happens in the HttpClientHelper. On lines 462 to 463 of the attached log, it's possible to see the logging -that correlates to lines 174 and 176 of the HttpClientHelper
winget-cli/src/AppInstallerCommonCore/HttpClientHelper.cpp Lines 172 to 181 in 43425fe
I wonder if a different method from the |
However, If you follow the code back, the Edit: It may be in the winget-cli/src/cpprestsdk/cpprestsdk/Release/src/utilities/asyncrt_utils.cpp Lines 605 to 607 in 43425fe
|
I have already upgraded and cannot replciate the issue. The point remains that --recurse should not hide all errors and just skip problematic packages. It should print the same errors you see when upgrading a single package |
Brief description of your issue
I have upgraded to v1.8.1911 and now the -r / --recurse / --all options do not work at all.
Steps to reproduce
Have some packages (one is enough) ready to ugprade. Run
winget upgrade -r
.Expected behavior
Packages that have newer versions available should start upgrading.
Actual behavior
Example output:
Nothing starts upgrading, just a list of packages ready to upgrade.
Environment
The text was updated successfully, but these errors were encountered: