-
Notifications
You must be signed in to change notification settings - Fork 25
Open
Labels
Description
Use Case
the package::windows task uses chocolatey to install packages. By default in chocolatey (docs), the package script exit code is passed through. This can be a variety of exit codes.
However, the task code here throws an exception if choco returns non-zero.
Describe the Solution You Would Like
Support non-zero exit codes. Some ideas for how to implement that:
- check the chocolatey
usePackageExitCodesconfig setting withchoco config get <name>(although this seems to error if not set.. needs more investigation) - checking stderr
- checking for
-ne -1or probably a number of other ways
Describe Alternatives You've Considered
catch errors when calling the task.
Additional Context
n/a
Reactions are currently unavailable