JustinGrote / ModuleFast

A "fast and loose" way to install modules from Powershell Gallery quickly. Meant for CICD, not production
Other
74 stars 5 forks source link

WhatIf errors on non-existent folder #68

Closed ThomasNieto closed 6 months ago

ThomasNieto commented 6 months ago

I just installed ModuleFast and tried to run the following command and it errors:

PS C:\> Install-ModuleFast az -WhatIf
What if: Performing the operation "C:\Users\Thomas\AppData\Local\powershell\Modules" on target "Create Destination Folder".
Install-ModuleFast: Cannot find path 'C:\Users\Thomas\AppData\Local\powershell\Modules' because it does not exist.
JustinGrote commented 6 months ago

Well it whatif bails out on the first action step it might need to take. You can try -Plan which will set up the necessary folders but not install any modules.

I currently don't have plans to make -whatif do a full end to end simulation while trying to simulate every initial setup step, it's too many likely edge cases to handle.