You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you call Get-Dependency -InputObject $dependencies
Parsed dependency is:
(...)
Name : PsDepend
Version : {Version, Parameters}
PSDependOptions : {AddToPath, DependencyType, Parameters, Target}
Raw :
As you can see, the whole hashtable is used as version field value. Indeed the Parse-Dependency function in Get-Dependency.ps1 considers that when DependencyType is set to 'PSGalleryModule' in PSDependOptions, the dependency value is a string.
A solution is to always take into account the type of the $Dependencyhash variable.