Skip to content
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 search --allversions" lists very packages and only one version per package #1982

Open
mbunkus opened this issue Jan 6, 2020 · 5 comments

Comments

@mbunkus
Copy link

mbunkus commented Jan 6, 2020

What is Expected?

When I do choco search <packagename> and choco search <packagename> --allversions I expect the latter command to output at least the same list of packages as the the former. In addition I expect that the latter lists all versions known for all packages found.

What You Are Seeing?

choco search <packagename> -a lists far fewer packages than choco search <packagename>.

How Did You Get This To Happen? (Steps to Reproduce)

Run the following two commands and compare their output:

PS C:\WINDOWS\system32> choco search virtualbox
Chocolatey v0.10.15 Professional
virtualbox 6.1.0 [Approved]
VirtualBox.ExtensionPack 5.1.10.20161223 [Approved]
enigmavirtualbox 9.20 [Approved] Downloads cached for licensed users - Possibly broken for FOSS users (due to original download location changes by vendor)
virtualbox-guest-additions-guest.install 6.1.0 [Approved] Downloads cached for licensed users
VBoxHeadlessTray 4.2.0.3
VBoxVmService 6.1 [Approved] Downloads cached for licensed users
multipass 1.0.0 [Approved]
psievm 0.2.7.29815 [Approved]
disk2vhd 2.01.0.20160213 [Approved] Downloads cached for licensed users
packer 1.5.1 [Approved]
vagrant 2.2.6 [Approved] Downloads cached for licensed users
VBoxGuestAdditions.install 99.99.99.99 [Approved]
docker-toolbox 19.03.1 [Approved] Downloads cached for licensed users
13 packages found.

vs.

PS C:\WINDOWS\system32> choco search virtualbox -a
Chocolatey v0.10.15 Professional
VirtualBox.ExtensionPack 5.1.10.20161223 [Approved]
VBoxGuestAdditions.install 99.99.99.99 [Approved]
2 packages found.

It works nicely with other packages (notepadplusplus works as expected).

This looks trivial to reproduce, therefore I don't include logs. If you cannot reproduce it with a simple choco search virtualbox -a, I'll gladly produce debug logs etc.

@steviecoaster
Copy link
Contributor

Could you provide logs? on a fresh 2019 box with choco 10.15 business `choco search virtualbox -a returns 29 packages on my system.

@mbunkus
Copy link
Author

mbunkus commented Jan 9, 2020

Sure thing. I've just run choco search virtualbox -a again, and now I also see 29 results:

PS C:\WINDOWS\system32> choco search virtualbox -a
Chocolatey v0.10.15 Professional
VirtualBox.ExtensionPack 5.1.10.20161223 [Approved]
VBoxGuestAdditions.install 99.99.99.99 [Approved]
Devbox-VirtualBox 4.2.10
Devbox-VirtualBox 4.2.12
disk2vhd 2.01 - Possibly broken
disk2vhd 2.01.0.20160213 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.0 [Approved] Downloads cached for licensed users
docker-toolbox 17.06.0 [Approved] Downloads cached for licensed users
docker-toolbox 17.07.0 [Approved] Downloads cached for licensed users
docker-toolbox 17.06.2 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.1 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.2 [Approved] Downloads cached for licensed users
docker-toolbox 17.10.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.3 [Approved] Downloads cached for licensed users
docker-toolbox 18.01.0 [Approved] Downloads cached for licensed users
docker-toolbox 17.12.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.02.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.03.0 [Approved] Downloads cached for licensed users
docker-toolbox 19.03.1 [Approved] Downloads cached for licensed users
docker-toolbox 17.03.1 [Approved] Downloads cached for licensed users - Possibly broken for FOSS users (due to original download location changes by vendor)
docker-toolbox 17.05.0 [Approved] Downloads cached for licensed users
enigmavirtualbox 8.10 [Approved] Downloads cached for licensed users - Possibly broken for FOSS users (due to original download location changes by vendor)
enigmavirtualbox 8.20 [Approved] Downloads cached for licensed users
enigmavirtualbox 9.00 [Approved] Downloads cached for licensed users
enigmavirtualbox 9.20 [Approved] Downloads cached for licensed users - Possibly broken for FOSS users (due to original download location changes by vendor)
genymotion 1.0
genymotion 1.1.0
genymotion 1.2.1
genymotion 1.3.0
29 packages found.

However: no mention of the virtualbox package itself (!!), only other packages whose names include virtualbox, whereas choco search virtualbox does include the virtualbox package itself in v6.1.0 at the moment.

The verbose debug log output is here.

@ferventcoder
Copy link
Member

This may be due to caching with chocolatey.org and issues over there. However there is some semblance that this could also be a bug here in the choco code base. - Leaving this at triaging for now.

@peruihkxt
Copy link

I'm still seeing this issue.

PS C:\Windows\system32> choco search virtualbox -a
Chocolatey v0.10.15
VirtualBox.ExtensionPack 5.1.10.20161223 [Approved]
VBoxGuestAdditions.install 99.99.99.99 [Approved]
Devbox-VirtualBox 4.2.10
Devbox-VirtualBox 4.2.12
disk2vhd 2.01 - Possibly broken
disk2vhd 2.01.0.20160213 [Approved] Downloads cached for licensed users
docker-toolbox 19.03.1 [Approved] Downloads cached for licensed users
docker-toolbox 17.03.1 [Approved] Downloads cached for licensed users - Possibly broken for FOSS users (due to original download location changes by vendor)
docker-toolbox 17.05.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.0 [Approved] Downloads cached for licensed users
docker-toolbox 17.07.0 [Approved] Downloads cached for licensed users
docker-toolbox 17.06.2 [Approved] Downloads cached for licensed users
docker-toolbox 17.06.0 [Approved] Downloads cached for licensed users
docker-toolbox 17.10.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.1 [Approved] Downloads cached for licensed users
docker-toolbox 17.12.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.01.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.02.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.03.0 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.2 [Approved] Downloads cached for licensed users
docker-toolbox 18.09.3 [Approved] Downloads cached for licensed users
enigmavirtualbox 8.10 [Approved] Downloads cached for licensed users - Possibly broken for FOSS users (due to original download location changes by vendor)
enigmavirtualbox 8.20 [Approved] Downloads cached for licensed users
enigmavirtualbox 9.00 [Approved] Downloads cached for licensed users
enigmavirtualbox 9.20 [Approved] Downloads cached for licensed users
genymotion 1.0
genymotion 1.1.0
genymotion 1.2.1
genymotion 1.3.0
29 packages found.

If I include the -e switch, it shows a single version rather than all the versions with that exact name.

PS C:\Windows\system32> choco search virtualbox -a -e
Chocolatey v0.10.15
virtualbox 6.1.8 [Approved]
1 packages found.

@ferventcoder
Copy link
Member

@jeremylee that -e item is a known issue #1843 and has been fixed for v0.10.16 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants