Checklist
What You Are Seeing?
In the documentation for Chocolatey CLI, as well as the default template for the choco new command, there is mention of an environment variable called ChocolateyPackageExitCode, and that this is set by the Set-PowerShellExitCode function. However, that function actually sets an environment variable called ChocolateyExitCode. One of these things is not correct!
What is Expected?
The documentation should match what the source code is using.
How Did You Get This To Happen?
Read the source code and compared it to the documentation, and noticed the difference. This came up as part of reviewing @AdmiringWorm PR here:
#3241 (comment)
System Details
- Operating System: Windows 11
- Windows PowerShell version: 7.5.1
- Chocolatey CLI Version: 2.4.3
- Chocolatey Licensed Extension version: 6.3.1
- Chocolatey License type: Business
- Terminal/Emulator: PowerShell
Installed Packages
N/A
Output Log
N/A
Additional Context
This is related to the changes that were being done in this PR:
#3241