cmd/vet: exit code should be 1 in case a problem is reported, not 2 #45515
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputCurrently
go vet
exit code is2
both when it is invoked incorrectly (e.g. flags) and a problem is reported.I think that in the case a problem is reported,
go vet
exit code should be1
instead of2
, to differentiate the two cases.The text was updated successfully, but these errors were encountered: