microsoft / microsoft/winget-cli

Allow searching by SHA256

Open
#3,884 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Search 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

I may have a package downloaded on my system but not installed and I can fairly easily get the SHA256 of the file. Alternatively, some publishers publish the expected hash of their file with the installer. Unless I run multiple searches for the name, publisher, or moniker, I can't be certain that the package doesn't exist in winget, since the package may be under a different ID or name than I would expect.

As a user, I would like to be able to run winget search <hash> or winget show <hash> to know if a specific package version already exists.

Proposed technical implementation details

No response

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 search <hash> and winget show <hash> command entry points and how they resolve package identifiers. Determine where SHA256 values are available for package versions and how lookup results are tested. Done means both commands can identify a matching package version by its SHA256 without requiring its name or ID.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.