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 -Plan
to 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 Found
if 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
Find
operator to support thePlan
parameter. - Did the prompt come from AnyPackage or ModuleFast? Also what was the
$ConfirmPreference
set to or wasConfirm
parameter 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 handlingShouldProcess
calls so that if the user saysYes to All
it 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 aPromptDependencies
for providers to indicates this package would also include X dependencies. Then the user would be able to sayYes to All
for all package dependencies for as many packages or providers called in a single invoke. I do something similar withPromptUntrustedSource
where if an untrusted source is called multiple times ifYes to All
orNo to All
is 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)