microsoft / microsoft/winget-cli
Fails to uninstall using manifest files
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 26.4k
- Forks
- 1.8k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 15
Description
Brief description of your issue
Fails to uninstall an application installed by Winget using manifest files.
received the error "Failed when opening source(s); try the 'source reset' command if the problem persists."
Steps to reproduce
PS C:\apps> Winget install --manifest C:\apps\code
Found Microsoft Visual Studio Code [Microsoft.VisualStudioCode] Version 1.100.2
This application is licensed to you by its owner.
Microsoft is not responsible for, nor does it grant any licenses to, third-party packages.
Downloading https://apps.blob.core.windows.net/winget-pkgs/manifests/m/Microsoft/VisualStudioCode/1.100.2/VSCodeUserSetup-x64-1.100.2.exe
██████████████████████████████ 103 MB / 103 MB
Successfully verified installer hash
Starting package install...
Successfully installed
PS C:\apps> Winget uninstall --manifest C:\apps\code --force
Failed when opening source(s); try the 'source reset' command if the problem persists.
Expected behavior
Visual Studio Code uninstalled without failure.
Actual behavior
recieving "Failed when opening source(s); try the 'source reset' command if the problem persists."
Environment
Windows Package Manager v1.10.390
Copyright (c) Microsoft Corporation. All rights reserved.
Windows: Windows.Desktop v10.0.19045.5854
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.390.0
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 reported winget install --manifest and winget uninstall --manifest --force commands with the provided Visual Studio Code manifest and environment details. Trace how manifest-based uninstall handles sources; done means the installed application is removed without the “Failed when opening source(s)” error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 40/100