Skip to content

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
atheeshp committed Feb 9, 2024
1 parent f22b607 commit 8570df6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 1 addition & 3 deletions make/proto.mk
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
###############################################################################

DOCKER := $(shell which docker)
containerProtoVer=0.13.0
containerProtoVer=0.14.0
containerProtoImage=ghcr.io/cosmos/proto-builder:$(containerProtoVer)
protoImage=$(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage)
# containerProtoGen=cheqd-node-proto-gen-$(containerProtoVer)
Expand All @@ -19,7 +19,6 @@ proto-gen:
@echo "Generating Protobuf files"
@echo $(protoImage) sh ./scripts/protocgen.sh;
@$(protoImage) sh ./scripts/protocgen.sh;
# go mod tidy

proto-format:
@echo "Formatting Protobuf files"
Expand All @@ -31,7 +30,6 @@ proto-lint:
proto-swagger-gen:
@echo "Generating Protobuf Swagger"
@$(protoImage) sh ./scripts/protoc-swagger-gen.sh;
# go mod tidy

proto-pulsar-gen:
@echo "Generating Pulsar"
Expand Down
6 changes: 2 additions & 4 deletions scripts/protocgen.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#!/bin/bash
#!/usr/bin/env bash

set -euox pipefail

# Get protoc-gen-gocosmos
go get github.com/cosmos/gogoproto
# 2>/dev/null
go get github.com/cosmos/gogoproto 2>/dev/null

echo "Generating gogo proto code"
cd proto

echo "coming here"
# Find all proto files but exclude "v1" paths
proto_dirs=$(find ./ -type f -path '*/v1/*' -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
for proto_dir in $proto_dirs; do
Expand Down

0 comments on commit 8570df6

Please sign in to comment.