Closed johlju closed 8 months ago
Please try with Install-ModuleFast -WhatIf
and see if it still occurs.
Nevermind, there is a bug here. Note that -verbose and -debug have a lot of info.
DEBUG: webadministrationdsc [4.1.1-preview0001, 4.1.1-preview0001]: Found satisfying version 4.1.1-preview0001 in the additional pages.
VERBOSE: WebAdministrationDsc@4.1.1-preview0001: Added to install plan
If it found a satisfying version it shouldn't have been added to the plan. I'll investigate.
Looks like the local match logic isn't working for prerelease, I might still have a basic version cast in there somewhere, or this step is just using the modulefolder version as a fast assumption and not checking the manifest for prerelease:
DEBUG: webadministrationdsc: Found a module C:\Users\JGrote\AppData\Local\powershell\Modules\WebAdministrationDsc\4.1.1\WebAdministrationDsc.psd1 that matches the name but does not satisfy the version spec webadministrationdsc [4.1.1-preview0001, 4.1.1-preview0001]. Skipping...
Should be fixed by https://github.com/JustinGrote/ModuleFast/pull/30
And Test Covered by: https://github.com/JustinGrote/ModuleFast/blob/dc352e3d3720ca8a16205dd21c5abcee83965387/ModuleFast.tests.ps1#L509
When expected versions are already installed
Get-ModuleFast
normally does not return those as missing. But for preview versions it always returns them as missing even though they are in fact installed. Below shows the difference where two modules are installed and only the preview one is always listed as missing/needed.