Skip to content

Conversation

@anamnavi
Copy link
Member

@anamnavi anamnavi commented Oct 20, 2025

PR Summary

Uninstall-PSResource currently silently fails when a package has only stable versions installed and Uninstall-PSResource -Name pkg -Prerelease is run. Including the -Prerelease parameter for Uninstall-PSResource means only prerelease versions should be uninstalled, not stable ones. If a package doesn't have prerelease versions installed then instead of silently failing PSResourceGet should write a warning. Also updated warnings for other scenarios where PSResourceGet was silently failing, i.e if multiple packages were requested for uninstallation, and only a subset were able to be uninstalled then write warnings for the other packages.

PR Context

Resolves #842

PR Checklist

@anamnavi
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anamnavi anamnavi force-pushed the uninstall-failure-warnings branch from d1a94cf to f7f5e49 Compare October 24, 2025 19:00
@anamnavi
Copy link
Member Author

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uninstall-PSResource silently fails when -Prerelease is used

3 participants