From 0a4b985020eab6b2ca088f7784830c7103f067e4 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 17 Jan 2025 02:50:36 -0600 Subject: start saving and setting the Uuid --- main.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'main.go') diff --git a/main.go b/main.go index 75f82ba..381b2fd 100644 --- a/main.go +++ b/main.go @@ -51,6 +51,11 @@ func main() { os.Exit(-1) } + if argv.Regret { + // this will override the manditory Uuid checks + os.Setenv("PROTOBUF_REGRET", "true") + } + pf := new(File) pb.Files = append(pb.Files, pf) pf.Filename = argv.Proto @@ -61,7 +66,7 @@ func main() { // parse sort & marshal options from the .proto file // this goes through the .proto files and looks // for `autogenpb: ` lines - if err := pb.protoParse(pf); err != nil { + if err := pf.protoParse(); err != nil { log.Info("autogenpb parse error:", err) badExit(err) } -- cgit v1.2.3