From f5e036fed2cf2f55662142125c068ed72aa23f69 Mon Sep 17 00:00:00 2001 From: Matthew Witkowski Date: Tue, 12 Mar 2024 11:49:17 -0400 Subject: [PATCH] Remove make proto-gen-any. --- Makefile | 6 ------ scripts/protocgen-any.sh | 21 --------------------- 2 files changed, 27 deletions(-) delete mode 100755 scripts/protocgen-any.sh diff --git a/Makefile b/Makefile index 1ffcee76f6..995af2515c 100644 --- a/Makefile +++ b/Makefile @@ -566,12 +566,6 @@ proto-gen: mv .go.mod.bak go.mod go mod tidy -# This generates the SDK's custom wrapper for google.protobuf.Any. It should only be run manually when needed -proto-gen-any: - @echo "Generating Protobuf Any" - $(DOCKER) run --rm -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage) sh ./scripts/protocgen-any.sh - go mod tidy - proto-swagger-gen: @echo "Generating Protobuf Swagger" if docker ps -a --format '{{.Names}}' | grep -Eq "^${containerProtoGenSwagger}$$"; then \ diff --git a/scripts/protocgen-any.sh b/scripts/protocgen-any.sh deleted file mode 100755 index 4a2c83b6e6..0000000000 --- a/scripts/protocgen-any.sh +++ /dev/null @@ -1,21 +0,0 @@ -#!/usr/bin/env bash - -# This script generates a custom wrapper for google.protobuf.Any in -# codec/types/any.pb.go with a custom generated struct that lives in -# codec/types/any.go - -set -eo pipefail - -go install github.com/cosmos/gogoproto/protoc-gen-gogotypes - -buf generate --template third_party/proto/buf.gen.gogo.yaml third_party/proto/google/protobuf/any.proto - -exit 0 - -mv codec/types/google/protobuf/any.pb.go codec/types -rm -rf codec/types/third_party - -# This removes the call to RegisterType in the custom generated Any wrapper -# so that only the Any type provided by gogo protobuf is registered in the -# global gogo protobuf type registry, which we aren't actually using -sed '/proto\.RegisterType/d' codec/types/any.pb.go > tmp && mv tmp codec/types/any.pb.go