The new prerelease functionality for update-module is generating an inappropriate warning in some cases, and requiring the user to use -Force. This may be related to the Install-Module issue previously filed.
Current behavior
Repro case:
PS:> Install-Module mymodule -RequiredVersion 2.0.0-alpha -AllowPrerelease
PS:> #above item will succeed
PS:> Update-Module mymodule -RequiredVersion 2.0.0
PS:> #above results in no-op & warning that the user is trying to update the same version.
PS:> Update-Module mymodule -RequiredVersion 2.0.0-beta -AllowPrerelease
PS:> #above results in no-op & warning that the user is trying to update the same version.
Expected Behavior
Update-module should succeed in both cases without warning.
In the first case, note that -allowprerelease is not specified, because the user is not installing a prerelease version.
The new prerelease functionality for update-module is generating an inappropriate warning in some cases, and requiring the user to use -Force. This may be related to the Install-Module issue previously filed.
Current behavior
Repro case:
Expected Behavior
Update-module should succeed in both cases without warning. In the first case, note that -allowprerelease is not specified, because the user is not installing a prerelease version.
Your Environment