summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-09 15:03:05 -0600
committerJeff Carr <[email protected]>2025-01-09 15:03:05 -0600
commitff1721c250420fb4f1ce24f13d2e20721e40a07b (patch)
tree3a61ac908c628077368ad27158746b726f0a5659 /main.go
parente725c0cc8011ab6d2c418f83d9b86c7897fabef4 (diff)
compiles again
Diffstat (limited to 'main.go')
-rw-r--r--main.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/main.go b/main.go
index 6e85d5b..f9f62da 100644
--- a/main.go
+++ b/main.go
@@ -108,16 +108,10 @@ func main() {
protobase := strings.TrimSuffix(argv.Proto, ".proto")
f.Filebase = protobase
- // parse the .proto file
- if err := pb.protoParse(f); err != nil {
- log.Info("autogenpb parse error:", err)
- os.Exit(-1)
- }
-
// parse sort & marshal options from the .proto file
// this goes through the .proto files and looks
// for `autogenpb: ` lines
- if err := pb.protoParseNew(f); err != nil {
+ if err := pb.protoParse(f); err != nil {
log.Info("autogenpb parse error:", err)
os.Exit(-1)
}