chocolatey / chocolatey/choco

Bug When Trying to Run Choco List --by-tag-only

Open
#2,309 1 comment 0 reactions 0 assignees View on GitHub
0 - Triaging Bug Customer
Dominant language
C#
Stars
11.5k
Forks
961
PR merge metrics
No merged PRs in 30d

Description

### What You Are Seeing?
When searching for packages running a `choco list --by-tag-only` command I am not presented with all the packages that have the tag that I search by in my command.

### What is Expected?
When doing a `choco list --by-tag-only` I should be presented with all packages that contain the tag I am searching for and not just the first result.
### How Did You Get This To Happen? (Steps to Reproduce)

- Internalized Google Chrome package which has tag google. Also pulled dependency chocolatey.core.extension which has tag chocolatey. Pushed both to my repository.
- Created package named bob that has tags google and chocolatey.
- Ran `choco list --by-tag-only google` and only get google chrome package as output.
- Ran `choco list --by-tag-only chocolatey` and only got chocolatey.core.extension package as output.
- Below are my packages with tags listed and commands run with output. Tried with both Artifactory and Nexus repositories to rule out possible issue with repo being used.
![image](https://user-images.githubusercontent.com/57045117/128076568-4d7b66da-66a2-49ec-be3f-2cad156b06d2.png)

![image](https://user-images.githubusercontent.com/57045117/128076472-8823dc46-f628-4deb-b2ad-c3f76a52d625.png)

#### References
* [ZenDesk Ticket](https://chocolatey.zendesk.com/agent/tickets/11022)

Contributor guide

Open the contributing guide

Research direction

Reproduce the reported behavior with `choco list --by-tag-only google` and `choco list --by-tag-only chocolatey` against a repository containing multiple matching packages. No files or tests are named; trace the CLI handling for `--by-tag-only`, then verify that the command lists every package containing the requested tag for both Artifactory and Nexus repositories.

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
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.