From d1b4021a9546456c5f9fed1941811499db706634 Mon Sep 17 00:00:00 2001 From: Steve Manuel Date: Wed, 27 Mar 2019 14:52:27 -0600 Subject: [PATCH] quickfix: regression on commit command (#106) --- cmd/protolock/main.go | 4 +++- proto.lock | 5 +++++ testdata/test.proto | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/protolock/main.go b/cmd/protolock/main.go index 5ff1a08..f25953f 100644 --- a/cmd/protolock/main.go +++ b/cmd/protolock/main.go @@ -132,7 +132,9 @@ func status(cfg *protolock.Config) { os.Exit(1) } - os.Exit(code) + if code != 0 { + os.Exit(code) + } } func saveToLockFile(cfg protolock.Config, r io.Reader) error { diff --git a/proto.lock b/proto.lock index f49e0a7..c109950 100644 --- a/proto.lock +++ b/proto.lock @@ -363,6 +363,11 @@ "name": "age", "type": "int32" }, + { + "id": 101, + "name": "newnew", + "type": "int32" + }, { "id": 44, "name": "msg", diff --git a/testdata/test.proto b/testdata/test.proto index 28466ca..29b7265 100644 --- a/testdata/test.proto +++ b/testdata/test.proto @@ -22,6 +22,7 @@ message Channel { string description = 3; string foo = 4; int32 age = 5; + int32 newnew = 101; message A { int32 id = 1; }