x/tools/go/analysis/unitchecker: does not exit 1 when json output is enabled #53509
Labels
Analysis
Issues related to static analysis (vet, x/tools/go/analysis)
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Tools
This label describes issues relating to any tools in the x/tools repository.
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
OutputWhat did you do?
Ran go vet on a test file,
What did you expect to see?
go vet fails because
Id
field tag is not formatted correctly and prints "failed" in the shell.What did you see instead?
It prints ok.
I think this is because if the json flag is enabled the command exits gracefully in this branch.
The text was updated successfully, but these errors were encountered: