-
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
Not all package versions are returned when running running choco list --all-versions --exact #1843
Comments
+1 to have this fixed. |
This is affecting us on the https://github.com/joomla/joomla-cms project too At a quick diff - I believe that 97a171f is the commit responsible for this? It's returning when exact is passed in so the all versions flag is skipped |
+1 to fix this. 🙃 |
@wilsonge thank you for that - we are aware of what commit caused this. I believe if you turn off repository optimizations it should return the way it did before. It's worth a quick check as there is a way to make it work the way it did previously. |
And apologies for all affected - we didn't realize there was a want to return multiple versions of something when you were searching in this way, so it made sense for us to go for the repository optimizations route on this one. |
So in our use case we're running the slight abomination Which basically allows us for a given minor PHP to install the latest available release (it's kinda a hack around there not being alias' for a major/minor release of a language). Turning off repository optimizations doesn't seem to work either - still only get the latest package back - debug build: https://ci.appveyor.com/project/release-joomla/joomla-cms/builds/26488368/job/ptejxkh6f7xj2i42 |
@wilsonge the solution right now seems to be to just downgrade to a version that actually works with regards to |
Recommended workaround to chocolatey/choco#1843
That works :) thanks for the pointer! |
Recommended workaround to chocolatey/choco#1843
Is there any update? Is it possibnle to fix this without downgrading Choco? |
Previously, choco 0.10.15 switched to a new method of finding an exact package based on the name, however that change also meant it would only retrieve one version of a package. There is however a scenario of using the `--exact` switch to retrieve all available versions of a package. This method was used in some integration tools. The change put in for 0.10.15 broke this scenario completely. Check for all versions and return all packages for an exact search along with other search criteria. If not returning all versions, continue to use the updated method of retrieving a package.
* stable: (GH-1843) Fix: search exact all versions returns 1
* upstream/master: (21 commits) (doc) Changed cla links from clahub to cla-assistant (chocolateyGH-2055) remove logs/config folder in nupkg (version) 0.10.16-beta (chocolateyGH-2023) Install git in the docker container (chocolateyGH-1859) Fix error message for missing 32-bit URL (chocolateyGH-1859) Fix error message for missing 32-bit URL (chocolateyGH-2051) Fix: workingDirectory always replaced w/cacheLocation (chocolateyGH-1983) exit-on-reboot-detected environment variable (maint) update resharper settings (maint) formatting (chocolateyGH-1843) Fix: search exact all versions returns 1 (chocolateyGH-1020) fix build (chocolateyGH-1020) Direct platform only for windows tests (chocolateyGH-1020) WindowsOnly tests by platform, not ignore (chocolateyGH-1020) Docker add ChocolateyInstall Env Var (chocolateyGH-1020) Docker use code_drop instead of build_output (doc) Update mono installation instructions in README (chocolateyGH-1020) Dockerfile and Travis to Mono 5.20.1 (chocolateyGH-1020) Add mono-4.5 configuration Add missing start of comment block ...
This reverts commit d24512f.
…ion are specified Changed * Change default search to use exact package name if both package name and required version are specified (#20) * Requires downgrade to Chocolatey 0.10.13 due to [a Chocolatey defect](chocolatey/choco#1843) until 0.10.16 is released Fixed * AppVeyor builds no longer fail due to change in build image permissions * Version min/max comparison should now work properly
@ferventcoder hello. any ideas on when this release is due. I know covid and everything has made life tricky - but it's pretty much been a year since you said a couple of weeks - so at least an idea on timescales would be useful! |
@wilsonge this is slated to go out in the 0.10.16 release, which I am actively working on just now. Having said that though, we don't put any firm dates on when this will ship. |
@wilsonge just wanted to additionally note that the latest beta release of chocolatey includes the fix for the problem described in this issue if you are interested. https://community.chocolatey.org/packages/chocolatey/0.10.16-beta-20200806 |
What You Are Seeing?
In previous Chocolatey releases if you had a package installed with multiple versions, doing
choco.exe list --all-versions --exact <package>
would show all the versions installed. Since 0.10.14 (and 15), adding--exact
will only show the latest version present.What is Expected?
All versions will be displayed with
--all-versions --exact
.How Did You Get This To Happen? (Steps to Reproduce)
Use the following script to create the test packages
Once created run the following commands to install them
Now run the following to get the list output
Output Log
On Chocolatey 0.10.13 this is the output
On Chocolatey 0.10.14+ this is the output
You can see that on
choco --local-only --all-versions
shows both versions installed but as soon as--exact
is used it only shows the latest version.Full Log Output
The text was updated successfully, but these errors were encountered: