File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -22,13 +22,18 @@ check-protos-compatible() {
22
22
if [ ! -f " $GOPATH /bin/protolock" ]; then
23
23
GO111MODULE=off go install github.com/nilslice/protolock/cmd/
[email protected]
24
24
fi
25
+ which protolock || {
26
+ echo " not found protolock in PATH."
27
+ ls -l " $GOPATH /bin/protolock"
28
+ exit 1
29
+ }
25
30
26
- if protolock status -lockdir=scripts -protoroot=proto; then
27
- protolock commit -lockdir=scripts -protoroot=proto
31
+ if protolock status -lockdir=scripts -protoroot=proto --ignore=OWNERS ; then
32
+ protolock commit -lockdir=scripts -protoroot=proto --ignore=OWNERS
28
33
else
29
34
echo " Meet break compatibility problem, please check the code."
30
35
# In order not to block local branch development, when meet break compatibility will force to update `proto.lock`.
31
- protolock commit --force -lockdir=scripts -protoroot=proto
36
+ protolock commit --force -lockdir=scripts -protoroot=proto --ignore=OWNERS
32
37
fi
33
38
# git report error like "fatal: detected dubious ownership in repository at" when reading the host's git folder
34
39
git config --global --add safe.directory $( pwd)
You can’t perform that action at this time.
0 commit comments