Skip to content

yarn audit exit code overflow #6748

@MRoci

Description

@MRoci

Do you want to request a feature or report a bug?
Bug

What is the current behavior?
yarn audit set the exit code related to the number of issues found.
If the number of issues is greater than 255 the exit code overflows
This means that if are found exactly 256 issues the exit code is 0.

If the current behavior is a bug, please provide the steps to reproduce.
This is a package.json crafted to trigger exactly 256 issues

https://gist.github.com/MRoci/e28694334ff6771cc7fd14e6d762f355

What is the expected behavior?
The expected behaviour should be an exit status always different from 0 in case of failure

Please mention your node.js, yarn and operating system version.
yarn version v1.12.3
node version: any that i know
OS: OSX Mojave 10.14.x

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions