JustinGrote / ModuleFast

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

Fails if the psd1 contains scriptblocks and the selected version is not the latest one. #22

Closed JustinGrote closed 8 months ago

JustinGrote commented 8 months ago

https://github.com/JustinGrote/ModuleFast/blob/61eb4526b6d17bdc5c06af6bae9eac395a08ce16/ModuleFast.psm1#L1293

Example: PRTGAPI Already Installed

Try to install PRTGAPI, it reads the existing manifest and fails with a dynamic because there is script logic in the .psd1 file.

Probably should skip and force overwrite if a newer version is found, this has to be handled both in the above code and in the installer code for when it encounters a same-name same-version folder

JustinGrote commented 8 months ago

Fixed #40