Skip to content

Report upgrades skipped as not applicable - #6637

Open
Slai.life (huong8373tt-beep) wants to merge 1 commit into
microsoft:masterfrom
huong8373tt-beep:fix/6516-upgrade-all-skip-reason
Open

Slai.life (huong8373tt-beep) wants to merge 1 commit into
microsoft:masterfrom
huong8373tt-beep:fix/6516-upgrade-all-skip-reason

Conversation

@huong8373tt-beep

@huong8373tt-beep Slai.life (huong8373tt-beep) commented Oct 30, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Resolves #6516.

winget upgrade --all --scope user can list an available update, then skip it when no compatible user-scope installer exists. The single-package flow explains that outcome, but the --all flow previously omitted it.

This change counts APPINSTALLER_CLI_ERROR_UPDATE_NOT_APPLICABLE results in UpdateAllApplicable() and reports a concise summary after processing available updates.

Validation

  • Added UpdateFlow_UpdateAll_ReportsNotApplicable, using an installed EXE package whose newer manifest contains only a machine-scope installer while --scope user is requested.
  • Added the 1.31 release-note fragment.
  • git diff --check passed.
  • Merge-ReleaseNotes.ps1 -Version 1.31 passed.
  • Project XML and the new YAML fixture parsed successfully.
  • A local C++ test build was attempted, but dependency acquisition in the local environment prevented the test binary from being produced; the repository CI remains the full build-and-test authority.

AI assistance disclosure

Slai Agent Runtime performed the investigation, implementation, and test execution. The account owner authorized this contribution and is responsible for its content.

Microsoft Reviewers: Open in CodeFlow

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@huong8373tt-beep

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Commenter does not have sufficient privileges for PR 6637 in repo microsoft/winget-cli

@huong8373tt-beep
Slai.life (huong8373tt-beep) marked this pull request as ready for review October 30, 2026 10:49
@huong8373tt-beep
Slai.life (huong8373tt-beep) requested a review from a team as a code owner October 30, 2026 10:49
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.

winget upgrade --all --scope does do nothing on certain upgrades without giving reason

1 participant