Skip to content

fix(app): pass the row's --source on upgrade, uninstall and pin - #52

Merged
FedeB2160 merged 1 commit into
mainfrom
claude/v2-fix-source-4b5d5d
Nov 10, 2026
Merged

FedeB2160 merged 1 commit into
mainfrom
claude/v2-fix-source-4b5d5d

Conversation

@FedeB2160

Copy link
Copy Markdown
Owner

Point 2 of the Phase 1 parity check (2.0 only).

Upgrade, Uninstall, PinAdd and PinRemove did 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 with Install; ARP rows and rows without a source are unchanged.

  • The source travels with the row: Updates, Installed, Retry failed, Retry as administrator (elevated batch) and the unelevated retry of ADR 0018 all build the command from the same row.
  • Tests: WinGetCommandsTests (with source / without for ARP, all four commands); ViewModel tests now assert --source winget reaches update, retry, pin/unpin, uninstall and the elevated batch.
  • ADR 0025: note under decision 2.

Verified

  • dotnet test --solution app\WinGetStudio.sln green.
  • Windows Sandbox, msstore left broken: Notepad++ update and 7-Zip pin/unpin succeed in the app. From the command line there, winget pin add --blocking --id 7zip.7zip -e fails with 0x8A15003B, the same with --source winget succeeds.

Not covered: the unelevated retry (ADR 0018) can't be exercised in Sandbox (always elevated); covered by the tests only.

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.
@FedeB2160
FedeB2160 merged commit 8b3cee0 into main Nov 10, 2026
3 checks passed
@FedeB2160
FedeB2160 deleted the claude/v2-fix-source-4b5d5d branch November 10, 2026 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant