summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-01-17 02:50:36 -0600
committerJeff Carr <[email protected]>2025-01-17 02:50:36 -0600
commit0a4b985020eab6b2ca088f7784830c7103f067e4 (patch)
tree256133d1ca5a65ca110f6efd4f99899ff4278afe /main.go
parent97c65be0a0bdadca494956fd9c2b58d94e8a5fcc (diff)
start saving and setting the Uuidv0.0.45
Diffstat (limited to 'main.go')
-rw-r--r--main.go7
1 files changed, 6 insertions, 1 deletions
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)
}