microsoft / microsoft/winget-cli
Install-WinGetPackage downloads installer even when package is up-to-date
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Relevant area(s)
WinGet CLI, PowerShell Module
Relevant command(s)
No response
Brief description of your issue
Install-WinGetPackage downloads the package installer for the package, even when the package is already up-to-date. winget install does not do this.
Steps to reproduce
Update-WinGetPackage Microsoft.PowerShell- Re-run
Update-WinGetPackage Microsoft.PowerShell- Notice how a download progress bar appears
- Compare with
winget install Microsoft.PowerShell
Expected behavior
It first checks if the package is up-to-date, and only downloads the installer if it is not.
Actual behavior
It always downloads the installer.
Environment
Windows Package Manager v1.12.350
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.22000.2538
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.27.350.0
[...]
Admin Setting State
--------------------------------------------------
LocalManifestFiles Disabled
BypassCertificatePinningForMicrosoftStore Disabled
InstallerHashOverride Disabled
LocalArchiveMalwareScanOverride Disabled
ProxyCommandLineOptions Disabled
DefaultProxy Disabled
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the behavior with Update-WinGetPackage Microsoft.PowerShell twice and compare it with winget install Microsoft.PowerShell. Trace the WinGet CLI and PowerShell Module paths involved in package state checks and downloads; done means an up-to-date package is detected before its installer is downloaded, while an outdated package still installs normally.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, powershell
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100