* Disables Verbose progress during install and upgrade (#175).#178
Open
rcarpenter79 wants to merge 2 commits intochocolatey:developmentfrom
Open
* Disables Verbose progress during install and upgrade (#175).#178rcarpenter79 wants to merge 2 commits intochocolatey:developmentfrom
rcarpenter79 wants to merge 2 commits intochocolatey:developmentfrom
Conversation
added 2 commits
July 7, 2023 09:55
Assigns $env:ChocolateyInstall from the System environment variable if $env:ChocolateyInstal is $null (chocolatey#174)
bozho
added a commit
to bozho/cChoco
that referenced
this pull request
Mar 6, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description Of Changes
Disables the PowerShell verbose progress when installing or updating a package. Fixes #175
Fixes an issue that may occur if Chocolatey is installed in the same session that this resource is run in. The PowerShell Environment variable $env:ChocolateyInstall may be null. If this happens then assign it the value from the System environment variable ChocolateyInstall. Fixes #174
Motivation and Context
Disabling the PowerShell Verbose progress stops the log being filled with unnecessary information.
Fixing the environment variable prevents this provider crashing when the Chocolatey appliction is installed in the same session.
Testing
Disabling progress was tested by running an installation on a server with Verbose logging enabled. The excessive logging was not disaplyed with the change.
The provider crash was seen when running on a new server intermittently.
With this change the provider did not crash in 4 runs.
No changes have been made to the Pester tests.
Operating Systems Testing
Server 2022
Change Types Made
Change Checklist
Related Issue
#175, #174
Fixes #