diff options
| author | Jeff Carr <[email protected]> | 2025-01-14 12:49:22 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-14 12:49:22 -0600 |
| commit | 97c65be0a0bdadca494956fd9c2b58d94e8a5fcc (patch) | |
| tree | 1440857daaa54ead0314541faae4ad64cd199145 | |
| parent | 81d6cd6b74fa4b4c94ec13bf02c5b9ac768d36d6 (diff) | |
use the fhelp package
| -rw-r--r-- | protoParse.go | 7 | ||||
| -rw-r--r-- | 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 { @@ -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") |
