winget-cli icon indicating copy to clipboard operation
winget-cli copied to clipboard

Reset-WinGetSource removes the source, but does not add it back

Open denelon opened this issue 1 year ago • 1 comments

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

denelon avatar Jul 30 '24 23:07 denelon

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:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

github-actions[bot] avatar Jul 30 '24 23:07 github-actions[bot]