proto stuff

This commit is contained in:
David Terpay
2023-08-17 16:51:12 -04:00
parent b50fb816c8
commit ecdb7395e3
10 changed files with 23 additions and 29 deletions
+2 -2
View File
@@ -8,7 +8,7 @@ set -e
echo "Generating Protocol Buffer code..."
cd proto
proto_dirs=$(find ./pob -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
proto_dirs=$(find ./sdk -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
if grep go_package $file &> /dev/null ; then
@@ -20,7 +20,7 @@ done
cd ..
# move proto files to the right places
cp -r github.com/skip-mev/pob/* ./
cp -r github.com/skip-mev/block-sdk/* ./
rm -rf github.com
# go mod tidy --compat=1.20