microsoft / microsoft/winget-create
Using Winget REST api to check for duplicate packages prior to submission
Nobody has claimed this yet.
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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