PSResourceGet icon indicating copy to clipboard operation
PSResourceGet copied to clipboard

Uninstall-PSResource WhatIf doesn't show version

Open ThomasNieto opened this issue 3 years ago • 1 comments

Prerequisites

  • [X] Write a descriptive title.
  • [X] Make sure you are able to repro it on the latest released version
  • [X] Search the existing issues.

Steps to reproduce

I am uninstalling multiple versions of a resource and did a WhatIf. It currently doesn't show which versions are getting uninstalled.

I'd also assume this issue applies to the other commands as well.

Expected behavior

Uninstall-PSResource pester -Version '(,5.3.0)' -SkipDependencyCheck -WhatIf
What if: Performing the operation "Uninstall-PSResource" on target "Uninstall resource 'Pester' version 'x' from the machine.".
What if: Performing the operation "Uninstall-PSResource" on target "Uninstall resource 'Pester' version 'y' from the machine.".

Actual behavior

Uninstall-PSResource pester -Version '(,5.3.0)' -SkipDependencyCheck -WhatIf
What if: Performing the operation "Uninstall-PSResource" on target "Uninstall resource 'Pester' from the machine.".
What if: Performing the operation "Uninstall-PSResource" on target "Uninstall resource 'Pester' from the machine.".

Error details

No response

Environment data

ModuleType Version    PreRelease Name
---------- -------    ---------- ----
Binary     3.0.14     beta14     PowerShellGet

Name                           Value
----                           -----
PSVersion                      7.2.4
PSEdition                      Core
GitCommitId                    7.2.4
OS                             Microsoft Windows 10.0.19043
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

ThomasNieto avatar Jun 09 '22 15:06 ThomasNieto

Thanks @ThomasNieto for bringing this up... this may require some slight design changes to how we call uninstall

SydneyhSmith avatar Jun 09 '22 18:06 SydneyhSmith