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

ModuleFast adds trailing zeros to version numbers #3

Closed o-l-a-v closed 8 months ago

o-l-a-v commented 1 year ago

Reproduce

Install SetBIOS which in PowerShellGallery has version 1.0.

What happens

ModuleFast creates a folder 1.0.0, instead of 1.0.

This is a problem because

Expected behavior

ModuleFast does not modify version number from PowerShellGallery.

Screenshot

image

First folder 1.0 was installed by PackageManagement\Save-Package, 1.0.0 was installed using ModuleFast.

JustinGrote commented 1 year ago

@o-l-a-v sorry for the delay, I observed this too. It has to do with the very complicated logic we need to do to reconcile both the legacy .NET version syntax and the new semantic versioning syntax.

JustinGrote commented 8 months ago

Should be fixed by https://github.com/JustinGrote/ModuleFast/pull/11