Skip to content

Winget-CLI Issue - winget upgrade Not Showing Results #5202

@davidldennison

Description

@davidldennison

Brief description of your issue

When running:

winget source update --verbose && winget upgrade --include-unknown --include-pinned --verbose

the command initially shows available upgrades. However, after subsequent executions, no results are displayed, even though no updates were performed in between. Running winget source update --verbose does not resolve the issue.

Updates were not performed in between running "winget upgrade" commands, so they should still appear - however they do not.

Extensive logs and system diagnostics can be found on the Microsoft Feedback Hub here: https://aka.ms/AAug4te

Image

Steps to reproduce

  1. Run: winget source update --verbose && winget upgrade --include-unknown --include-pinned --verbose
  2. The first execution correctly lists available updates.
  3. Run the same command again without installing any updates.
  4. No upgrade results appear, despite multiple attempts and source updates.

Expected behavior

winget upgrade should consistently display available upgrades whenever updates are detected.

Actual behavior

After one or two successful runs, winget upgrade intermittently fails to list any upgradeable packages, even though they should still be available.

Environment

Windows 11 Canary Insider Program - Build 27788.rs_prerelease.250131-1609

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

Windows: Windows.Desktop v10.0.27788.1000
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.280.0

Winget Directories
---------------------------------------------------------------------------------------------------------------------------------------------
Logs                               C:\Users\david\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir
User Settings                      C:\Users\david\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\settings.json
Portable Links Directory (User)    C:\Users\david\AppData\Local\Microsoft\WinGet\Links
Portable Links Directory (Machine) C:\Program Files\WinGet\Links
Portable Package Root (User)       C:\
Portable Package Root              C:\
Portable Package Root (x86)        C:\
Installer Downloads                C:\Users\david\Downloads
Configuration Modules              C:\Users\david\AppData\Local\Microsoft\WinGet\Configuration\Modules

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


Group Policy                                                       State
--------------------------------------------------------------------------
Enable Windows Package Manager                                     Enabled
Enable Windows Package Manager Settings                            Enabled
Enable Windows App Installer Experimental Features                 Enabled
Enable Windows App Installer Local Manifest Files                  Enabled
Enable Windows App Installer Hash Override                         Enabled
Enable Windows App Installer Local Archive Malware Scan Override   Enabled
Enable Windows Package Manager command line interfaces             Enabled
Enable Windows Package Manager Configuration                       Enabled
Set Windows Package Manager Source Auto Update Interval In Minutes 5

Admin Setting                             State
--------------------------------------------------
LocalManifestFiles                        Enabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride                     Enabled
LocalArchiveMalwareScanOverride           Enabled
ProxyCommandLineOptions                   Disabled
DefaultProxy                              Disabled

Metadata

Metadata

Assignees

No one assigned

    Labels

    In-PRIssue related to a PRIssue-BugIt either shouldn't be doing this or needs an investigation.

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions