proto stuff
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user