Skip to content

Commit 51dd325

Browse files
committed
Merge branch 'stable'
* stable: (doc) add exit codes to gen doc headings (doc) update generated docs (version) 0.10.12 (doc) fix grammar (GH-1038) remove note on off recommendation (GH-1746) allow shutting off validation warnings (doc) update release notes for licensed extension (maint) whitespace (doc) update release notes (maint) formatting (GH-1758)(doc) provide exit code docs (doc) info - add usage / examples (doc) outdated - note ignore unfound (doc) scripting - point to scripting reference (doc) scripting - how to get exit code w/powershell (GH-1724) search - exit 2 on no results (GH-1758) control enhanced exit codes w/feature (doc) update release notes for 0.10.12 release (doc) update older release notes
2 parents 23da326 + 096fc37 commit 51dd325

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+1050
-62
lines changed

.uppercut

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
<property name="version.minor" value="10" overwrite="false" />
2020
<property name="version.patch" value="12" overwrite="false" />
2121
<property name="version.fix" value="0" overwrite="false" />
22-
<property name="version.nuget.prerelease" value="beta" overwrite="false" />
23-
<property name="version.use.build_date" value="true" overwrite="false" />
22+
<property name="version.nuget.prerelease" value="" overwrite="false" />
23+
<property name="version.use.build_date" value="false" overwrite="false" />
2424
<property name="assembly.description" value="${project.name} is a product of ${company.name} - All Rights Reserved." overwrite="false" />
2525
<property name="assembly.copyright" value="Copyright © 2017 - 2018 ${company.name} Copyright © 2011 - 2017, RealDimensions Software, LLC - All Rights Reserved." overwrite="false" />
2626
<property name="sign.project_with_key" value="true" overwrite="false" />

CHANGELOG.md

+62-9
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,67 @@ This covers changes for the "chocolatey" and "chocolatey.lib" packages, which ar
33

44
**NOTE**: If you have a licensed edition of Chocolatey ("chocolatey.extension"), refer to this in tandem with [Chocolatey Licensed CHANGELOG](https://github.com/chocolatey/choco/blob/master/CHANGELOG_LICENSED.md).
55

6-
## 0.10.12 - (Unreleased)
7-
### Bug Fixes
8-
* Fix - Uninstall-ChocolateyZipPackage - Corrected issue with null passed to Test-Path - see [#1546](https://github.com/chocolatey/choco/issues/1546) and [#1550](https://github.com/chocolatey/choco/issues/1550)
9-
* Fix - Get-ChocolateyWebFile - Setting Security Protocol to SSL3 is not supported with PowerShell 6.0.3 - see [#1623](https://github.com/chocolatey/choco/issues/1623)
6+
## [0.10.12](https://github.com/chocolatey/choco/issues?q=milestone%3A0.10.12+is%3Aclosed) - (March 14, 2019)
7+
We are pretty excited to finally share a new Chocolatey release! And this release won't disappoint. Loads of bug fixes, enhanced exit codes for search, list, info and outdated when results are returned versus nothing being returned, and some really nice improvements.
108

11-
### Improvements
12-
* Performance of `choco outdated` command - see [#1397](https://github.com/chocolatey/choco/issues/1397)
13-
* Added ability to get consistent hash of ConfigFileSettings class - see [#1612](https://github.com/chocolatey/choco/issues/1612)
9+
Perhaps the biggest addition this release is the ability to halt installation if a reboot is detected ([#1038](https://github.com/chocolatey/choco/issues/1038)). Once you turn this feature on, if you are installing some packages and somewhere in the middle of that there is a need for a reboot, Chocolatey will stop and exit with either exit code 350 (pending reboot prior to anything) or 1604 (install incomplete), indicating a reboot is needed to continue. It won't reboot for you, as it is just a package manager - but it will stop execution so nothing that may error on install is attemtped. You'll need to opt into this feature, so see [#1038](https://github.com/chocolatey/choco/issues/1038) for details.
10+
11+
If you've long hated the default console colors, we've spent quite a bit of time detecting the background console color and adjusting the colorization output of Chocolatey for this release ([#1131](https://github.com/chocolatey/choco/issues/1131)). You might give that a whirl and see if you can turn back on console colors for good.
12+
13+
We've added the ability to validate the configuration and system state at a global level ([#1746](https://github.com/chocolatey/choco/issues/1746)). It's early, but expect that we'll do a lot more to really provide good experiences in this area.
14+
15+
A bug that is worth noting as fixed is having choco exit when a source fails instead of ignoring it ([#612](https://github.com/chocolatey/choco/issues/612)). This is now fixed!
16+
17+
The last thing worth noting in the summary is Enhanced Exit Codes, or providing more intentional exit codes that mean something instead of just 0 or 1 ([#1758](https://github.com/chocolatey/choco/issues/1758)). In this release, outdated and search commands will have additional exit codes that mean something. This is noted in the next section, so please read over and see how to shut off this behavior if you see it breaking any integration you might be using (including your own scripts).
18+
19+
### BREAKING CHANGES
20+
* outdated - Exit 2 when there are packages out of date - see [#1602](https://github.com/chocolatey/choco/issues/1602)
21+
* search/list/info - Exit 2 when no results are returned - see [#1724](https://github.com/chocolatey/choco/issues/1724)
22+
23+
We've listed these as breaking changes as it may affect tools that are integrating with Chocolatey and interpreting the output of the exit code. In these cases, it would likely temporarily break those tools until they've had a chance to release new versions of their tools. If you run into this, you simply need to turn off the feature "useEnhancedExitCodes". That is as simple as `choco feature disable --name="'useEnhancedExitCodes'"` ([#1758](https://github.com/chocolatey/choco/issues/1758)).
24+
25+
### FEATURES
26+
* Exit when reboot is detected - w/350 for pending & w/1604 on dependency package requiring reboot - see [#1038](https://github.com/chocolatey/choco/issues/1038)
27+
28+
### BUG FIXES
29+
* [Security] Fix - upgrade - remove automation scripts prior to upgrade even if changed - see [#1689](https://github.com/chocolatey/choco/issues/1689)
30+
* [Security] Fix - scripts - Digitally sign the init.ps1 PowerShell file as well - see [#1665](https://github.com/chocolatey/choco/issues/1665)
31+
* Fix - When a source fails, choco exits instead of moving to next source - see [#612](https://github.com/chocolatey/choco/issues/612)
32+
* Fix - Upgrade all reuses overridden package parameters when useRememberedArgumentsForUpgrades feature is turned on - see [#1443](https://github.com/chocolatey/choco/issues/1443)
33+
* Fix - Passing `--execution-timeout=0` doesn't override the default execution timeout in the configuration - see [#1747](https://github.com/chocolatey/choco/issues/1747)
34+
* Fix - ChocolateyLastPathUpdate environment variable stores date as locale-specific - see [#1604](https://github.com/chocolatey/choco/issues/1604)
35+
* [POSH Host] Fix - install/upgrade/uninstall - PowerShell host should exit with 1 instead of -1 if there is a package error - see [#1734](https://github.com/chocolatey/choco/issues/1734)
36+
* Fix - Logging - warnings for ".registry.bad." files are emitted with "-r" switch - see [#1580](https://github.com/chocolatey/choco/issues/1580)
37+
* Fix - Logging - ".registry.bad" files are created for actually valid registry snapshots - see [#1581](https://github.com/chocolatey/choco/issues/1746)
38+
* Fix - list/search - Listing local packages fails if no sources are enabled - see [#661](https://github.com/chocolatey/choco/issues/661)
39+
* Fix - uninstall - Object reference exception when there are no sources - see [#1584](https://github.com/chocolatey/choco/issues/1584)
40+
* Fix - Logging - self-service errors attempting to write to the config when using Chocolatey GUI - see [#1649](https://github.com/chocolatey/choco/issues/1649)
41+
* Fix - source list - running with -r fails to escape pipe (|) char - see [#1614](https://github.com/chocolatey/choco/issues/1614)
42+
* Fix - source add - Adding a source allows an empty url - see [#1582](https://github.com/chocolatey/choco/issues/1582)
43+
* Fix - Get-ChocolateyWebFile - Ensure PSVersionTable is used for PowerShell Version - see [#1623](https://github.com/chocolatey/choco/issues/1623)
44+
* Fix - Install-ChocolateyShortcut - Don't create a folder if environment variable is used - see [#1687](https://github.com/chocolatey/choco/issues/1687)
45+
* Fix - `choco --version` includes warnings, breaks version parsing - see [#1562](https://github.com/chocolatey/choco/issues/1562)
46+
* Fix - Uninstall-ChocolateyZipPackage failing with Path error - see [#1550](https://github.com/chocolatey/choco/issues/1550)
47+
* Fix - Uninstall-ChocolateyZipPackage fails from null passed to Test-Path - see [#1546](https://github.com/chocolatey/choco/issues/1546)
48+
* Fix - Get-ChocolateyUnzip - Ensure 7z cmd window is hidden - see [#1642](https://github.com/chocolatey/choco/issues/1642)
49+
* [API] Fix - Resolve assemblies globally without locking - see [#1735](https://github.com/chocolatey/choco/issues/1735)
50+
51+
### IMPROVEMENTS
52+
* [Security] tools - Update 7z to 18.06 Enhancement Security - see [#1704](https://github.com/chocolatey/choco/issues/1704)
53+
* [Security] Refreshenv script leaves temporary file behind - see [#1549](https://github.com/chocolatey/choco/issues/1549)
54+
* Control enhanced exit codes with a feature switch - see [#1758](https://github.com/chocolatey/choco/issues/1758)
55+
* Logging - better default colors - see [#1131](https://github.com/chocolatey/choco/issues/1131)
56+
* Validate config / system state across everything - see [#1746](https://github.com/chocolatey/choco/issues/1746)
57+
* upgrade - switch for not installing if not installed - see [#1646](https://github.com/chocolatey/choco/issues/1646)
58+
* outdated - improve performance of `choco outdated` - see [#1397](https://github.com/chocolatey/choco/issues/1397)
59+
* search/list - Add alias "find" for search - see [#1744](https://github.com/chocolatey/choco/issues/1744)
60+
* apikey - Enable removal of API key via CLI - see [#1301](https://github.com/chocolatey/choco/issues/1301)
61+
* Logging - Choco --log-file option should create log files relative to current directory - see [#1603](https://github.com/chocolatey/choco/issues/1603)
62+
* Logging - Don't suggest installing separate "checksum" tool - see [#981](https://github.com/chocolatey/choco/issues/981)
63+
* template - Add notes to uninstaller file string on how to correctly parse the value from the registry - see [#1644](https://github.com/chocolatey/choco/issues/1644)
64+
* Pro/Business - license - If license is found in top-level folder or named wrong, choco should warn - see [#1503](https://github.com/chocolatey/choco/issues/1503)
65+
* [API] Allow verifying DI Container in release build - see [#1738](https://github.com/chocolatey/choco/issues/1738)
66+
* [API] ability to get consistent hash of ConfigFileSettings class - see [#1612](https://github.com/chocolatey/choco/issues/1612)
1467

1568

1669
## [0.10.11](https://github.com/chocolatey/choco/issues?q=milestone%3A0.10.11+is%3Aclosed) (May 4, 2018)
@@ -552,10 +605,10 @@ This further restricts the default installation location by removing all permiss
552605
* Fix - Chocolatey command help output written to standard error instead of standard out - see [#468](https://github.com/chocolatey/choco/issues/468)
553606
* Fix - Logger doesn't clear cached NullLoggers - see [#516](https://github.com/chocolatey/choco/issues/516)
554607
* Fix - DISM "/All" argument in the wrong position - see [#480](https://github.com/chocolatey/choco/issues/480)
555-
* Fix - Pro - Installing/uninstalling extensions should rename files in use - see [#594](https://github.com/chocolatey/choco/issues/594)
608+
* Fix - Pro/Business - Installing/uninstalling extensions should rename files in use - see [#594](https://github.com/chocolatey/choco/issues/594)
556609
* Fix - Running Get-WebFileName in PowerShell 5 fails and sometimes causes package errors - see [#603](https://github.com/chocolatey/choco/issues/603)
557610
* Fix - Merging assemblies on a machine running .Net 4.5 or higher produces binaries incompatible with .Net 4 - see [#392](https://github.com/chocolatey/choco/issues/392)
558-
* Fix - API - Incorrect log4net version in chocolatey.lib dependencies - see [#390](https://github.com/chocolatey/choco/issues/390)
611+
* Fix - [API] - Incorrect log4net version in chocolatey.lib dependencies - see [#390](https://github.com/chocolatey/choco/issues/390)
559612
* [POSH Host] Fix - Message after Download progress is on the same line sometimes - see [#525](https://github.com/chocolatey/choco/issues/525)
560613
* [POSH Host] Fix - PowerShell internal process - "The handle is invalid." - see [#526](https://github.com/chocolatey/choco/issues/526)
561614
* [POSH Host] Fix - The handle is invalid - when output is being redirected and a package attempts to write to a filestream - see [#572](https://github.com/chocolatey/choco/issues/572)

CHANGELOG_LICENSED.md

+29
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,35 @@ This covers changes for the "chocolatey.extension" package, where the licensed e
44

55
**NOTE**: If you have a licensed edition of Chocolatey, refer to this in tandem with [Chocolatey Open source CHANGELOG](https://github.com/chocolatey/choco/blob/master/CHANGELOG.md).
66

7+
## 2.0.0 (March 14, 2019)
8+
### FEATURES
9+
* Chocolatey Central Management tie in - Brings Central Management client configuration to Chocolatey. Requires Chocolatey v0.10.12 along with Chocolatey Agent v0.9.0 to allow communication with Central Maangement.
10+
* [Security] Self-Service - allow uninstalls of ONLY packages installed by a user. Allows restricting what a user can uninstall to only what they have installed - see [licensed #2](https://github.com/chocolatey/chocolatey-licensed-issues/issues/2)
11+
12+
### BUG FIXES
13+
* Self-Service / Background Mode:
14+
* Fix - Package arguments not being passed from Agent to choco.exe properly (client side fixes) - see [licensed #60](https://github.com/chocolatey/chocolatey-licensed-issues/issues/60)
15+
* Fix - Background Service does not pass the exit code back to the console (client side) - see [licensed #51](https://github.com/chocolatey/chocolatey-licensed-issues/issues/51)
16+
* Package Internalizer (Choco Download):
17+
* Fix - PackageInternalizer - UseOriginalLocation switch being appended inappropriately when line continuation is used with no arguments on first line - see [licensed #64](https://github.com/chocolatey/chocolatey-licensed-issues/issues/64)
18+
* Package Upload UI:
19+
* Fix - Package Uploader is unable to push to a non https source - see [licensed #49](https://github.com/chocolatey/chocolatey-licensed-issues/issues/49)
20+
* Package Builder (Choco New):
21+
* Fix - Nuspec files section should not be commented out as it doesn't allow subdirectories
22+
* Fix - Ensure Architect and MSP are able to use Package Builder
23+
* Fix - Escape XML characters in generated nuspec file
24+
* Windows Service Management Functions:
25+
* Fix - When shutting down a Windows service it may hold a lock on a file for a second after it shuts down
26+
* Fix - Type detection holds file locks if it times out - see [licensed #59](https://github.com/chocolatey/chocolatey-licensed-issues/issues/59)
27+
* Fix - Ensure Architect edition has all features set appropriately
28+
29+
### IMPROVEMENTS
30+
* Package Builder - Remove "v" as part of "Name v2.2.23" In product names
31+
* Package Upload UI - Ability to auto populate Source dropdown list - see [licensed #50](https://github.com/chocolatey/chocolatey-licensed-issues/issues/50)
32+
* Package Internalizer - Allow downloading all installed packages with `--installed-packages`
33+
* PowerShell - Cmdlets for Getting/Setting encrypted values in JSON files
34+
35+
736
## 1.12.12 (June 12, 2018)
837
### FEATURES
938
* Package Upload UI - Ability to right click on a nupkg, and access UI for selecting where package is pushed to

GenerateDocs.ps1

+1-1
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ param(
192192
return
193193
}
194194
$commandText = $commandText -creplace '^(.+)(\s+Command\s*)$', "# `$1`$2 (choco $commandName)"
195-
$commandText = $commandText -replace '^(Usage|Troubleshooting|Examples|Connecting to Chocolatey.org|See It In Action|Alternative Sources|Resources|Packages.config)', '## $1'
195+
$commandText = $commandText -creplace '^(Usage|Troubleshooting|Examples|Exit Codes|Connecting to Chocolatey.org|See It In Action|Alternative Sources|Resources|Packages.config|Scripting \/ Integration - Best Practices \/ Style Guide)', '## $1'
196196
$commandText = $commandText -replace '^(Commands|How To Pass Options)', '## $1'
197197
$commandText = $commandText -replace '^(WebPI|Windows Features|Ruby|Cygwin|Python)\s*$', '### $1'
198198
$commandText = $commandText -replace 'NOTE\:', '**NOTE:**'

docs/generated/CommandsApiKey.md

+19
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ user name and password specified as 'user:password' for the API key. Please see
3434
your repository's documentation (for Nexus, please see
3535
https://bit.ly/nexus2apikey).
3636

37+
**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to
38+
write proper scripts and integrations.
39+
3740

3841
## Connecting to Chocolatey.org (Community Package Repository)
3942

@@ -45,6 +48,19 @@ In order to save your API key for https://push.chocolatey.org/,
4548
choco apikey -k <your key here> -s https://push.chocolatey.org/
4649

4750

51+
## Exit Codes
52+
53+
Exit codes that normally result from running this command.
54+
55+
Normal:
56+
- 0: operation was successful, no issues detected
57+
- -1 or 1: an error has occurred
58+
59+
If you find other exit codes that we have not yet documented, please
60+
file a ticket so we can document it at
61+
https://github.com/chocolatey/choco/issues/new/choose.
62+
63+
4864
## Options and Switches
4965

5066
**NOTE:** Options and switches apply to all items passed, so if you are
@@ -162,6 +178,9 @@ Includes [[default options/switches|CommandsReference#default-options-and-switch
162178
this is either a key or it could be a user name and password specified
163179
as 'user:password'.
164180
181+
--rem, --remove
182+
Removes an API key from Chocolatey
183+
165184
~~~
166185

167186
[[Command Reference|CommandsReference]]

docs/generated/CommandsConfig.md

+16
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,22 @@ Chocolatey will allow you to interact with the configuration file settings.
2323
choco config unset proxy
2424
choco config unset --name proxy
2525

26+
**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to
27+
write proper scripts and integrations.
28+
29+
30+
## Exit Codes
31+
32+
Exit codes that normally result from running this command.
33+
34+
Normal:
35+
- 0: operation was successful, no issues detected
36+
- -1 or 1: an error has occurred
37+
38+
If you find other exit codes that we have not yet documented, please
39+
file a ticket so we can document it at
40+
https://github.com/chocolatey/choco/issues/new/choose.
41+
2642

2743
## See It In Action
2844

docs/generated/CommandsFeature.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ Chocolatey will allow you to interact with features.
1515
choco feature disable -n=bob
1616
choco feature enable -n=bob
1717

18+
**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to
19+
write proper scripts and integrations.
20+
21+
22+
## Exit Codes
23+
24+
Exit codes that normally result from running this command.
25+
26+
Normal:
27+
- 0: operation was successful, no issues detected
28+
- -1 or 1: an error has occurred
29+
30+
If you find other exit codes that we have not yet documented, please
31+
file a ticket so we can document it at
32+
https://github.com/chocolatey/choco/issues/new/choose.
33+
34+
1835
## Options and Switches
1936

2037
**NOTE:** Options and switches apply to all items passed, so if you are
@@ -124,8 +141,8 @@ Includes [[default options/switches|CommandsReference#default-options-and-switch
124141
0.8+.
125142
126143
-n, --name=VALUE
127-
Name - the name of the source. Required with some actions. Defaults to
128-
empty.
144+
Name - the name of the source. Required with actions other than list.
145+
Defaults to empty.
129146
130147
~~~
131148

docs/generated/CommandsFeatures.md

+19-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,23 @@ Chocolatey will allow you to interact with features.
1515
choco feature disable -n=bob
1616
choco feature enable -n=bob
1717

18+
**NOTE:** See scripting in [[how to pass arguments|CommandsReference#how-to-pass-options--switches]] (`choco -?`) for how to
19+
write proper scripts and integrations.
20+
21+
22+
## Exit Codes
23+
24+
Exit codes that normally result from running this command.
25+
26+
Normal:
27+
- 0: operation was successful, no issues detected
28+
- -1 or 1: an error has occurred
29+
30+
If you find other exit codes that we have not yet documented, please
31+
file a ticket so we can document it at
32+
https://github.com/chocolatey/choco/issues/new/choose.
33+
34+
1835
## Options and Switches
1936

2037
**NOTE:** Options and switches apply to all items passed, so if you are
@@ -124,8 +141,8 @@ Includes [[default options/switches|CommandsReference#default-options-and-switch
124141
0.8+.
125142
126143
-n, --name=VALUE
127-
Name - the name of the source. Required with some actions. Defaults to
128-
empty.
144+
Name - the name of the source. Required with actions other than list.
145+
Defaults to empty.
129146
130147
~~~
131148

0 commit comments

Comments
 (0)