Skip to content
This repository has been archived by the owner on Sep 22, 2023. It is now read-only.

Commit

Permalink
Add step to grab local protos before python code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Unique-Divine committed Oct 10, 2022
1 parent 1944c89 commit 58e7501
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 72 deletions.
72 changes: 0 additions & 72 deletions proto-gen-py.sh

This file was deleted.

8 changes: 8 additions & 0 deletions scripts/proto-gen-py.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,14 @@ protoc_gen_gocosmos() {
PKG_PATH="nibiru_proto"
PKG_PROTO_SUBDIR="$PKG_PATH/proto"

# TODO add PKG_PATH as dir if it doesn't exist.
echo > $PKG_PATH/__init__.py

# TODO copy protos from ../nibiru
rm -rf proto
cp -r ../nibiru/proto proto
# TODO clone nibiru when it's public to get the tag

echo "Refreshing proto files"
if [ $(basename $(pwd)) = sdk-proto-gen ]
then
Expand All @@ -36,6 +42,8 @@ cd ../nibiru;
protoc_gen_gocosmos
cosmos_sdk_dir=$(go list -f '{{ .Dir }}' -m github.com/cosmos/cosmos-sdk)



echo "grab all of the proto directories"
echo "current dir: $(pwd)"
cd -;
Expand Down

0 comments on commit 58e7501

Please sign in to comment.