x/vuln: json output always exits 0 #61704
Labels
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
vulncheck or vulndb
Issues for the x/vuln or x/vulndb repo
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce at the latest version of golang.org/x/vuln?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Followed the steps in https://go.dev/doc/tutorial/govulncheck.
Running
govulncheck ./...
has the expected output. Exit status is non-zero.Running
govulncheck -json ./...
has the expected json output. Exit status is zero.What did you expect to see?
If a vulnerability is detected the exit status should always be non-zero, regardless of output format.
What did you see instead?
Exit status changed because I set
-json
.The text was updated successfully, but these errors were encountered: