microsoft / microsoft/winget-cli

Deduplicating results from multiple sources

Open
#5,345 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Description of the new feature / enhancement

When I run winget install powertoys I get duplicate results for the "same package".

WinGet should be able to determine if the package from more than one WinGet source is a duplicate (SHA256 for example). I should be informed there is a setting I could use to specify which source to default to when this happens.

Image

Proposed technical implementation details

Add settings for the sequence to use when multiple sources return the "same" package (they may have different names, identifiers, and other metadata), but the installer is "unique" given the SHA256.

When WinGet detects duplicates and there are no sequences specified, the user should be informed about the feature.

When a user has settings for the sequence to be used when more than one source contains the same package, then WinGet should install the package from the preferred source (based on the sequence).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the winget install powertoys flow, how results from multiple WinGet sources are handled, and where source-related settings are defined. Done means duplicate packages can be recognized by installer SHA256, a source sequence can select the preferred result, and users are informed when no sequence is configured.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.