-
Notifications
You must be signed in to change notification settings - Fork 7
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
[Issue] Failed to Install-Package with -RequiredVersion
option
#20
Comments
Hey @dougpuob, Glad to hear ChocolateyGet is making life easier for you! The issue you're describing seems to be more of a quirk with choco itself, rather than ChocolateyGet. If you run From what I can find, this seems to be related to this choco issue that was opened a while ago, but is now closed and doesn't look like anyone is going to fix it. It looks like most folks are working around the problem by passing the Since ChocolateyGet is going to return whatever choco.exe does, what you'd probably need to run is: Hope that works for you! |
Actually, thinking about this a little more, I think I could make that experience better: to assume |
Will need to downgrade the version of the choco Native API DLL to version 0.10.13 due to a different choco issue that won't be fixed until the 0.10.16 API is released in order for the |
…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
ChocolateyGet v2.1.0 is now out on PSGallery, and my tests indicate it now works without having to sometimes pass This does however, introduce a possible new with issue with Please see the updated documentation in the readme for more details. |
Hi @jianyunt, thank you for your project. It makes script easier to install packages with choco. I found a tricky behavior, seems like an issue when I Install-Package with the
-RequiredVersion
option.❌Failed case
Install-Package -Provider ChocolateyGet -ErrorAction Stop -Verbose -AcceptLicense ninja -RequiredVersion 1.10.2
VERBOSE: Using the provider 'ChocolateyGet' for searching packages.
VERBOSE: Source selected: chocolatey
Install-Package: No match was found for the specified search criteria and package name 'ninja'. Try Get-PackageSource to see all available registered package sources.
✅Passed case
Install-Package -Provider ChocolateyGet -ErrorAction Stop -Verbose -AcceptLicense ninja
VERBOSE: Using the provider 'ChocolateyGet' for searching packages.
VERBOSE: Performing the operation "Install Package" on target "Package 'ninja' version '1.10.2' from 'chocolatey'.".
The text was updated successfully, but these errors were encountered: