Skip to content

Winget upgrade fails #3384

@MaStr11

Description

@MaStr11

Describe the bug

Running winget upgrade "GitHub CLI" from an elevated prompt, succeeds but does not actually perform the upgrade.

Steps to reproduce the behavior

  1. Enable Upgrade Command experimental feature (see winget features for details) on winget
  2. (optional) Enable List Command experimental feature on winget
  3. Run winget upgrade "GitHub CLI"

Expected vs actual behavior

Expected

Installation succeeds and new version is installed.

Actual

Installation succeeds, but version is not incremented.

Workaround

The upgrade method mentioned on the homepage works:

WinGet does not have a specialized upgrade command yet, but the install command should work for upgrading to a newer version of GitHub CLI.

Logs

Log via winget upgrade

C:\Users\Whatever> winget list "Github"
Name       ID         Version Verfügbar Quelle
----------------------------------------------
GitHub CLI GitHub.cli 1.7.0   1.8.1     winget
C:\Users\Whatever> winget upgrade "GitHub CLI"
Omitted for brevity
Installation successfull
C:\Users\Whatever> winget list "Github"
Name       ID         Version Verfügbar Quelle
----------------------------------------------
GitHub CLI GitHub.cli 1.7.0   1.8.1     winget

Log via winget install (as suggested in the readme)

C:\Users\Whatever> winget install "GitHub CLI"
Omitted for brevity
Installation successfull
C:\Users\Whatever> winget list "Github"
Name       ID         Version
-----------------------------
GitHub CLI GitHub.cli 1.8.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions