-
Notifications
You must be signed in to change notification settings - Fork 189
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
Install-Package should only find exact matches #169
Comments
Hi John, I think this problem exists because the chocolatey provider returns 2 instead of 1 results back to OneGet. You should contact the chocolatey team here https://github.com/chocolatey/chocolatey-oneget |
Thanks, @quoctruong. I've added an issue there now as well. Would you like me to close this issue now or would you like to wait for a response from the chocolatey-oneget project? Thanks again. |
@quoctruong, It seems like the https://github.com/chocolatey/chocolatey-oneget project has accepted the issue, and is willing to keep it open while it is fixed. |
Thanks John. I'll close this issue then! |
I tried to install VirtualBox, but got this error:
Clearly, I want to install VirtualBox. I got around this by using
Find-Package
and piping intoInstall-Package
, but this shouldn't really be necessary. I noticed similar issues with npm and 7zip.Here's what I suggest:
If
Install-Package
is able to find an exact match, install that since it's probably what I wanted.Install-Package -Name PackageName
should just work.If partial matches are desired, then a switch to turn them on/off from the default would work, or a wildcard syntax using asterisks.
The text was updated successfully, but these errors were encountered: