microsoft / microsoft/winget-cli

The type of a source should be automatically detected when possible.

Open
#1,477 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

When adding a source, winget should try to figure out what kind of source it is to prevent confusing behavior.

Proposed technical implementation details (optional)

It could be as simple as making a request to the /information endpoint, if it responds with a 200 and the correct information then it is a REST source, if not, it tries to pull a preindexed file, if that doesn't work then return an error.

Right now, types aren't shown in the source list, which means when troubleshooting you get funny errors because winget assumes you are adding a preindexed source (which is the least common kind of source, given there's no documentation on how to create one :D).

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 with the source-add flow and the /information endpoint behavior described in the issue, then examine how preindexed files are handled and how source types are represented in the source list. Done means winget detects REST sources when the endpoint returns the correct response, falls back to preindexed sources when possible, and reports an error otherwise.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.