Comments (4)
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 Install-Package
or Find-Package
with the -debug
flag, it will actually list out the command line arguments passed to choco.exe. For ninja 1.10.2, that's choco.exe search ninja --version 1.10.2 --source Chocolatey
which also returns no results.
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 --exact
flag to choco, which skips package description text search and assumes your search text is the exact package name you want.
Since ChocolateyGet is going to return whatever choco.exe does, what you'd probably need to run is:
Install-Package ninja -ProviderName ChocolateyGet -RequiredVersion 1.10.2 -AdditionalArguments '--exact'
Hope that works for you!
from chocolateyget.
Actually, thinking about this a little more, I think I could make that experience better: to assume --exact
behavior if package name and required version are specified.
from chocolateyget.
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 exact
behavior to work with the OneGet MinimumVersion
\ MaximumVersion
\ AllVersions
flags.
from chocolateyget.
ChocolateyGet v2.1.0 is now out on PSGallery, and my tests indicate it now works without having to sometimes pass -AdditionalArguments '--exact'
depending on how many results match in the repository.
This does however, introduce a possible new with issue with -MaximumVersion
and -AllVersion
flags that is in turn caused by a defect in Chocolatey itself, but there are a few workarounds available.
Please see the updated documentation in the readme for more details.
from chocolateyget.
Related Issues (20)
- Missing Packages from Repo HOT 1
- Get-Package lists chocolatey twice
- Hash for package 'ChocolateyGet' does not match hash provided from the server. HOT 3
- No concept of 'upgrades'
- Choco.exe doesn't install automatically due to TLS 1.2 changes HOT 1
- No support for -AcceptLicense flag
- PowerShell 7 support
- VLC installation using Provider Name ChocolateyGet HOT 13
- Need test coverage for a node without Chocolatey already installed
- Uninstall without dependencies HOT 1
- Updating to newest choco (0.11.1) HOT 1
- PackageManagement version superseded HOT 2
- Find-Package : A parameter cannot be found that matches parameter name 'Provider'. HOT 4
- Section Keep packages up to date: the "latest" keyword is not needed HOT 2
- Is there a way to set ChocolateyGet's package source as trusted? HOT 37
- Packages with no checksum appear to fail HOT 1
- Provider installed as PowerShellGet HOT 5
- Proxy Support HOT 5
- Search problem HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chocolateyget.