diff --git a/cmd/protoc-gen-go/main.go b/cmd/protoc-gen-go/main.go index 55a58df8..a354df90 100644 --- a/cmd/protoc-gen-go/main.go +++ b/cmd/protoc-gen-go/main.go @@ -24,7 +24,7 @@ import ( func main() { if len(os.Args) == 2 && os.Args[1] == "--version" { fmt.Fprintf(os.Stderr, "%v %v\n", filepath.Base(os.Args[0]), version.String()) - os.Exit(1) + os.Exit(0) } var (