Skip to content

Commit

Permalink
print file
Browse files Browse the repository at this point in the history
  • Loading branch information
mmsqe committed Apr 15, 2024
1 parent 6c99a83 commit f6ec380
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@ cd proto
proto_dirs=$(find . -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
for dir in $proto_dirs; do
for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do
echo file $file
if grep "option go_package" $file &> /dev/null ; then
buf generate --template buf.gen.gogo.yaml $file
echo after buf generate --template buf.gen.gogo.yaml $file
fi
done
done
Expand Down

0 comments on commit f6ec380

Please sign in to comment.