You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 usePackageExitCodes config setting with choco config get <name> (although this seems to error if not set.. needs more investigation)
checking stderr
checking for -ne -1 or probably a number of other ways
Describe Alternatives You've Considered
catch errors when calling the task.
Additional Context
n/a
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
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:
usePackageExitCodes
config setting withchoco config get <name>
(although this seems to error if not set.. needs more investigation)-ne -1
or probably a number of other waysDescribe Alternatives You've Considered
catch errors when calling the task.
Additional Context
n/a
The text was updated successfully, but these errors were encountered: