microsoft / microsoft/winget-create

Using Winget REST api to check for duplicate packages prior to submission

Open
#207 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Issue-Feature
Dominant language
C#
Stars
651
Forks
114
Avg merge
7h 52m
Merged PRs (30d)
3

Description

Description of the new feature / enhancement

In winget-create, at various stages we can check to see if a user is trying to submit duplicates to the repo:

First they put in a URL, we can check if the URL is already present in the repo
Next we download the file, we can check if the hash is already present
Next they specify a packageId, we can check if the packageId is already present

These aren't necessarily hard fails, maybe just warnings.
We can also add some of this logic to the validation pipeline

Once the REST api is deployed in production, we can call it to make these checks once we add nice endpoints that let us run these queries quickly.

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

The issue names no files or tests; begin with winget-create’s URL, download/hash, and packageId stages, then trace the validation pipeline and the production REST API availability. Define the duplicate-check endpoints and warning behavior, and verify each check through the relevant validation tests or end-to-end submissions.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.