winget hash should automatically detect msix/appx, not force me to say -m

Open
#768 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by tracing the winget hash command and the existing handling for the -m option. Check how file extensions and signature hashes are processed, then verify that MSIX/AppX inputs produce both hashes without breaking established output used by automation.

Written by the indexing model from the issue text.

Description

Issue-Feature

Description of the new feature/enhancement

It is roughly possible to detect an msix (simply based on file extension) or appx and try to do a signature hash. The risk of guessing wrong is nonexistent (we cannot calculate a signature hash if there is no msix/appx signature)... so winget hash should simply automatically spit out both hashes.

This is likely complicated by the fact that folks will have built up automation around the output of "winget hash".

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

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.

More from microsoft/winget-cli

All issues in microsoft/winget-cli

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.