microsoft / microsoft/winget-pkgs

[New Feature]: Validate against Portable Command Collisions

Open
#79,890 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Validation-Pipeline Issue-Feature
Dominant language
No language data
Stars
11.1k
Forks
9.7k
Avg merge
1h 32m
Merged PRs (30d)
376

Description

Related to #16576 and #36752

With Portable apps being available in the Repo, it is foreseeable that at some point, two different applications will attempt to use the same command alias.

The CLI should already protect the user against this by not modifying the symlink if the target file is different (needs verification?)

With Zip packages coming soon, there will be support for multiple portable apps as a suite inside of the Zip package. Each of these apps receives their own command alias. This increases the chances that two portable apps will have the same command.

There should be some form of warning, and possibly even an error, when a package is submitted that would introduce a command alias conflict.

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

Review related issues #16576 and #36752, then inspect the CLI's portable-app alias handling and package-submission validation; the issue provides no file or test names. Done should be a defined warning or error when a submitted package introduces a command alias collision, with behavior verified for differing targets and Zip suites.

Written by the indexing model from the issue text.

Assessment

Domain
cli, tooling
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.