Giter Site home page Giter Site logo

Comments (4)

ethanbergstrom avatar ethanbergstrom commented on September 24, 2024

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.

ethanbergstrom avatar ethanbergstrom commented on September 24, 2024

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.

ethanbergstrom avatar ethanbergstrom commented on September 24, 2024

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.

ethanbergstrom avatar ethanbergstrom commented on September 24, 2024

@dougpuob,

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.