chocolatey / chocolatey/choco

Choco List command gives unexpected output when run against none existing source

Open
#2,224 3 comments 0 reactions 0 assignees View on GitHub
0 - Triaging Enhancement
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

### What You Are Seeing?

When running choco list against a source that is not configured within the config of chocolatey sources on the machine the output of the command is "0 packages found."

### What is Expected?

If you try to run a choco list against a source that is not configured on your machine the output should say source not configured on machine, please reference output of `choco source list`

### How Did You Get This To Happen? (Steps to Reproduce)

Run `choco list -s ` with a source that is not configured within Chocolatey on the machine and you will get "0 packages found." for output.

### Output Log
![image](https://user-images.githubusercontent.com/57045117/114030392-67b64d80-9848-11eb-97d3-e013671117ea.png)

Contributor guide

Open the contributing guide

Research direction

Start by tracing the `choco list -s ` command's handling of source lookup, then compare it with the output behavior of `choco source list`. The change is complete when an unconfigured source reports that it is not configured instead of showing "0 packages found."

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.