Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix to not write error when package is already installed, warning suffices #1367

Merged
merged 4 commits into from
Aug 17, 2023

Conversation

anamnavi
Copy link
Member

@anamnavi anamnavi commented Aug 16, 2023

PR Summary

If the user tries to install a package already on their machine, we currently write a warning and an error. This fix ensures only warning is written if the package is already installed and -Reinstall is not provided.

PR Context

Resolves #1365

PR Checklist

@anamnavi anamnavi merged commit 107abf5 into PowerShell:master Aug 17, 2023
3 checks passed
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.

Install-PSResource -RequiredResourceFile ends in error if the machine is already in the correct state
2 participants