Skip to content

Commit 2f7bcbd

Browse files
committed
ci: ignore OWNERS file for protolock commands
1 parent f0982ee commit 2f7bcbd

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

scripts/check.sh

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ check-protos-compatible() {
2222
if [ ! -f "$GOPATH/bin/protolock" ]; then
2323
GO111MODULE=off go install github.com/nilslice/protolock/cmd/[email protected]
2424
fi
25+
which protolock || {
26+
echo "not found protolock in PATH."
27+
ls -l "$GOPATH/bin/protolock"
28+
exit 1
29+
}
2530

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
2833
else
2934
echo "Meet break compatibility problem, please check the code."
3035
# 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
3237
fi
3338
# git report error like "fatal: detected dubious ownership in repository at" when reading the host's git folder
3439
git config --global --add safe.directory $(pwd)

0 commit comments

Comments
 (0)