Repository navigation
fix(app): pass the row's --source on upgrade, uninstall and pin - #52
Merged
Merged
Conversation
Without --source winget looks the Id up in every source, and a broken msstore (0x8A15003B, seen in Windows Sandbox) fails the whole command. Upgrade, Uninstall, PinAdd and PinRemove now pass the row's source, like Install already did, through one shared helper; ARP rows and rows without a source are unchanged. The source travels with the row, so Retry failed, Retry as administrator and the unelevated retry (ADR 0018) repeat it. Checked in Windows Sandbox with msstore left broken: Notepad++ update and 7-Zip pin/unpin succeed; plain `winget pin add` there fails with 0x8A15003B.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Point 2 of the Phase 1 parity check (2.0 only).
Upgrade,Uninstall,PinAddandPinRemovedid not pass--source: winget then looks the Id up in every source, and a broken msstore (0x8A15003B, seen in Windows Sandbox) fails the whole command. They now pass the row's source through a helper shared withInstall; ARP rows and rows without a source are unchanged.WinGetCommandsTests(with source / without for ARP, all four commands); ViewModel tests now assert--source wingetreaches update, retry, pin/unpin, uninstall and the elevated batch.Verified
dotnet test --solution app\WinGetStudio.slngreen.winget pin add --blocking --id 7zip.7zip -efails with0x8A15003B, the same with--source wingetsucceeds.Not covered: the unelevated retry (ADR 0018) can't be exercised in Sandbox (always elevated); covered by the tests only.