From 97c65be0a0bdadca494956fd9c2b58d94e8a5fcc Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Tue, 14 Jan 2025 12:49:22 -0600 Subject: [PATCH] use the fhelp package --- protoParse.go | 7 ++++--- protoc.go | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/protoParse.go b/protoParse.go index c039028..9efe2fd 100644 --- a/protoParse.go +++ b/protoParse.go @@ -66,9 +66,10 @@ func (pb *Files) hasPluralMessage(f *File) error { func (pb *Files) protoParse(pf *File) error { // does the file conform to the standard? (also reads in UUID & Version) - if err := pb.hasPluralMessage(pf); err != nil { - return err - } + // if err := pb.hasPluralMessage(pf); err != nil { + // return err + // } + // os.Exit(0) uuid, version, err := fhelp.ValidProtobuf(pf.Filename) if err != nil { diff --git a/protoc.go b/protoc.go index 3645b57..5f17a19 100644 --- a/protoc.go +++ b/protoc.go @@ -63,6 +63,7 @@ func (pb *Files) protocBuild(f *File) error { cmd := []string{"protoc", "--go_out=."} cmd = append(cmd, "--proto_path="+gopath) cmd = append(cmd, "--go_opt=M"+f.Filename+"="+gopath) + // cmd = append(cmd, "--print_free_field_numbers") // look for included proto files lines := strings.Split(string(data), "\n")