chocolatey / chocolatey/choco

Сhoco search returns different results for GHC package

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

Description

### What You Are Seeing?
We use choco during GitHub hosted images generation in https://github.com/actions/virtual-environments repository.
We have been observing an intermittent issue since GHC 9.0.1 was released in March — sometimes `choco search ghc --allversions` returns 9.0.1 and sometimes doesn't. As a result, different ghc versions are available on the final VM image, which is confusing.

### What is Expected?
`choco search ghc --allversions` returns version 9.0.1 among the others

### How Did You Get This To Happen? (Steps to Reproduce)
Just run `choco search ghc --allversions` and check the results. It happens pretty irregularly, maybe 1 or 2 times a week.

### Output Log

The log from `choco search ghc --allversions --verbose --trace` in one of such cases is more than the allowed comment size so I uploaded it to the repo:
https://github.com/miketimofeev/Choco-search-log/blob/main/Log.log

Contributor guide

Open the contributing guide

Research direction

Start by reproducing `choco search ghc --allversions` and compare runs using the linked verbose trace log as a reference. Trace the search path responsible for package-version results and determine why 9.0.1 is intermittently omitted; done means the command consistently includes 9.0.1 among the available versions.

Written by the indexing model from the issue text.

Assessment

Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 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.