ModuleFast
ModuleFast copied to clipboard
AnyPackage Provider
A ModuleFast AnyPackage provider has been published. Give it a shot and let me know if you run into any issues: https://www.powershellgallery.com/packages/AnyPackage.ModuleFast
Awesome! When I get done with the next release and Github Action I'll try it out and make sure it is compatible. You're the best!
@ThomasNieto Looks pretty good! Some thoughts:
- You could use
Install-ModuleFast -Planto provide a package get/find operator - If multiple packages are specified to install together (e.g. -name 'package1','package2', they should all be provided together to modulefast both for efficient and for dependency resolution, as well as not getting 500 Install-Package prompts.
- It currently reports
Package Not Foundif a package is already installed. On my todo is to fix both -Plan and -PassThru to include modules that were part of the plan but already installed, once I fix that it will probably report more "correctly". Tracked in https://github.com/JustinGrote/ModuleFast/issues/80
@JustinGrote
- I like the idea of adding
Findoperator to support thePlanparameter. - Did the prompt come from AnyPackage or ModuleFast? Also what was the
$ConfirmPreferenceset to or wasConfirmparameter passed? The problem is that the provider interface only handles one package at a time via PackageRequest to property cycle through each provider if a package isn't found. The provider interface does support handlingShouldProcesscalls so that if the user saysYes to Allit would work for all packages and providers. That was a common problem in OneGet where it would keep prompting. I have also thought of adding aPromptDependenciesfor providers to indicates this package would also include X dependencies. Then the user would be able to sayYes to Allfor all package dependencies for as many packages or providers called in a single invoke. I do something similar withPromptUntrustedSourcewhere if an untrusted source is called multiple times ifYes to AllorNo to Allis honored. If you have any ideas I'd be welcome to hear them. - That would work
Find-Package support was added in the latest release (v0.1.2)
I'm going to close this as it seems to work great for me, thanks @ThomasNieto!