Bug When Trying to Run Choco List --by-tag-only
- 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.


#### References
* [ZenDesk Ticket](https://chocolatey.zendesk.com/agent/tickets/11022)
Contributor 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