Skip to content

Commit

Permalink
Merge pull request #511 from InjectiveLabs/f/fix-unnecessary-replace-…
Browse files Browse the repository at this point in the history
…goa-proto-buf

f/fix: remove unnecessary goa proto naming
  • Loading branch information
bangjelkoski authored Nov 6, 2024
2 parents 5b50ef9 + 831ec47 commit c55f0f6
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions proto/indexer/gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ BUILD_DIR=$ROOT_DIR/gen
PROTO_DIR=$ROOT_DIR/proto
TS_OUTPUT_DIR=$ROOT_DIR/proto-ts
TS_STUB_DIR=$ROOT_DIR/stub
injective_indexer_branch=v1.13.41
injective_indexer_branch=v1.13.62-RC.1

# remove old gen
rm -rf $BUILD_DIR
Expand Down Expand Up @@ -31,14 +31,6 @@ find $BUILD_DIR/api/gen/grpc -name '*.proto' -exec cp {} $PROTO_DIR \;

proto_dirs=$(find $PROTO_DIR -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)

# Rename all files to remove goadesign_goagen_ prefix.
# This is a patch to fix the script as the new goagen version that was introduced
# in the go.mod file generates files with a different prefix.
for file in $proto_dirs/goadesign_goagen_*.proto; do
new_file=$(basename "$file" | sed 's/^goadesign_goagen_//')
mv "$file" "$proto_dirs/$new_file"
done

# gen using ts-proto
npm --prefix $ROOT_DIR install
for dir in $proto_dirs; do
Expand Down

0 comments on commit c55f0f6

Please sign in to comment.