diff --git a/cmd/protoc-gen-go/main.go b/cmd/protoc-gen-go/main.go index a354df90..d3187bbd 100644 --- a/cmd/protoc-gen-go/main.go +++ b/cmd/protoc-gen-go/main.go @@ -23,7 +23,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()) + fmt.Fprintf(os.Stdout, "%v %v\n", filepath.Base(os.Args[0]), version.String()) os.Exit(0) }