winget-cli
winget-cli copied to clipboard
Reset-WinGetSource removes the source, but does not add it back
Brief description of your issue
Reset should remove and "re-add" a source.
Steps to reproduce
PS C:\Users\denelon> Reset-WinGetSource -Name msstore
PS C:\Users\denelon> Get-WinGetSource
Name Argument Type
---- -------- ----
winget https://cdn.winget.microsoft.com/cache Microsoft.PreIndexed.Package
PS C:\Users\denelon> winget source reset
The following sources will be reset if the --force option is given:
Name Argument Explicit
------------------------------------------------------
winget https://cdn.winget.microsoft.com/cache false
PS C:\Users\denelon> winget source reset --force
Resetting all sources...Done
PS C:\Users\denelon> winget source list
Name Argument Explicit
--------------------------------------------------------------
msstore https://storeedgefd.dsx.mp.microsoft.com/v9.0 false
winget https://cdn.winget.microsoft.com/cache false
Expected behavior
The source should have been retained.
Actual behavior
The source was removed.
Environment
Microsoft.WinGet.Client 1.8.1133
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!
Open similar issues:
- winget source reset
removes default sources (#1575) , similarity score: 0.78
Note: You can give me feedback by thumbs upping or thumbs downing this comment.