x/tools/gopls: set non-zero exit code on check
command when there are errors
#67078
Labels
FeatureRequest
gopls
Issues related to the Go language server, gopls.
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
Tools
This label describes issues relating to any tools in the x/tools repository.
Milestone
Proposal Details
gopls check
is useful to lint code, but it currently always sets exit code 0 which is not ideal when one wants to run it for example on a CI:I suggest to either always set exit code to non-zero when there are errors, or introduce a new
--exit-code
option to do the same.The text was updated successfully, but these errors were encountered: