Skip to content

Commit

Permalink
fix proto-gen
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Feb 9, 2024
1 parent 8570df6 commit 6c53579
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 11 deletions.
3 changes: 3 additions & 0 deletions make/proto.mk
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ proto-gen:
@echo "Generating Protobuf files"
@echo $(protoImage) sh ./scripts/protocgen.sh;
@$(protoImage) sh ./scripts/protocgen.sh;
go mod tidy
cd api
go mod tidy

proto-format:
@echo "Formatting Protobuf files"
Expand Down
4 changes: 1 addition & 3 deletions scripts/protoc-pulsar-gen.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
#!/bin/bash
#
# this script is for generating protobuf files for the new google.golang.org/protobuf API

set -euox pipefail
set -eo pipefail

protoc_gen_install() {
go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest #2>/dev/null
Expand Down
10 changes: 2 additions & 8 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env bash

set -euox pipefail
set -e

# Get protoc-gen-gocosmos
go get github.com/cosmos/gogoproto 2>/dev/null
Expand All @@ -25,10 +25,4 @@ cd ..
cp -r github.com/cheqd/cheqd-node/* ./
rm -rf github.com

go mod tidy

sh ./scripts/protoc-pulsar-gen.sh

# go mod tidy in API folder
cd api
go mod tidy
./scripts/protoc-pulsar-gen.sh

0 comments on commit 6c53579

Please sign in to comment.