Skip to content

Fallback to exact if REST source has no result for ID substring#6309

Open
Trenly wants to merge 1 commit into
microsoft:masterfrom
Trenly:trenly/fix-msstore-id-search-5104
Open

Fallback to exact if REST source has no result for ID substring#6309
Trenly wants to merge 1 commit into
microsoft:masterfrom
Trenly:trenly/fix-msstore-id-search-5104

Conversation

@Trenly

@Trenly Trenly commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

📖 Description

This fixes winget search --id <msstoreId> behavior for REST-backed sources (including msstore) when --exact is not provided.

Search now preserves existing substring behavior, but when a request is a single Id substring filter and returns no matches, it retries through the optimized exact-ID manifest lookup path. This makes exact Store IDs resolve without forcing --exact while keeping partial-ID matching intact.

🔗 References

🔍 Validation

  • User validated locally.
  • Added REST interface unit tests covering fallback behavior and non-regression for existing substring matches.

✅ Checklist

📋 Issue Type

  • Bug fix
  • Feature
  • Task
Microsoft Reviewers: Open in CodeFlow

Add a REST search fallback that retries single-ID substring misses through the optimized exact-ID path so msstore IDs resolve without requiring --exact while preserving partial-ID behavior.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@Trenly Trenly marked this pull request as ready for review June 21, 2026 03:29
@Trenly Trenly requested a review from a team as a code owner June 21, 2026 03:29
@Trenly Trenly changed the title Fix msstore search by id fallback Fallback to exact if REST source has no result for ID substring Jun 21, 2026
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 list --id does not work with msstore apps Use of winget search --id <<msstoreId>> doesn't work unless --exact is provided also.

1 participant