-
Notifications
You must be signed in to change notification settings - Fork 904
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Choco returns inconsistent version info for packages #3297
Comments
@o-l-a-v I can reproduce this, where |
I agree, the fault seems to be with the API of the community repository. Where do I create an issue for that? That being said, the CLI passes different filters to the API when using |
Cache where, in the API? This is still a bug IMO, we just don't know what caused it, and we can't reproduce it today. Why not include |
I'm having the exact same problem with another package, Funnily enough, Chocolatey GUI doesn't have this problem — I used the "Check for outdated packages (forced)" button and it successfully picked up this package as outdated: I was trying to find a way to run the same "forced" check for outdated packages on the CLI, but |
There are several layers of caching in play with Chocolatey and Chocolatey GUI. Let me quickly recap them. NOTE: The following assumes that you are using 2.x.x of both Chocolatey CLI and GUI.
Issues for the Chocolatey Community Repository would be raised here: https://github.com/chocolatey/home/issues However, the issue that you are seeing it likely covered by this issue: chocolatey/home#8 Feel free to add additional information to there.
I honestly do not believe that this is required. Almost everywhere in Chocolatey, everything defaults to the stable version numbers. You have to opt-in to get prerelease versions. As such, explicitly stating Hopefully the above helps to understand what is going on, and what the different caching solutions are in place for Chocolatey GUI and CLI. Let me know if you have any questions about any of the above. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Dear contributor, As this issue seems to have been inactive for quite some time now, it has been automatically closed. |
AFAIK this is not fixed, so please open again. Going stale != Fixed. |
@o-l-a-v As pointed out in the comments above, this is a caching issue which is related to chocolatey/home#8.
After no response to the previous two comments on 10 August and 10 September, the issue is closed automatically. This is the process we have in place for this repository. |
Checklist
What You Are Seeing?
Choco 2.2.2 just got released, I have v2.2.0. It's also updated in the repositories:
I first check for outdated packages with
choco outdated
, says no packages are outdated.I then try
choco search chocolatey --exact
, says newest version of Chocolatey is v2.2.0.I then do
choco search chocolatey
which returns a lot of packages, also Chocolatey. Says latest version of Chocolatey is v2.2.2.I then check the
chocolatey.log
, the API request when searching exact is:It says v2.2.0 is the latest version. But if you add "not IsPrerelease" to the query, like the search without exact does, voila:
What is Expected?
I expect a consistent experience when searching and updating a package, with or without
--exact
.choco
should use the API consistently to not get inconsistent results.I also expect the API to return the latest non-prerelease version of a package, even if not specifying
not IsPrerelease
.How Did You Get This To Happen?
See first section.
System Details
Installed Packages
Output Log
Additional Context
No response
The text was updated successfully, but these errors were encountered: