do not instrument intermediate protos

This commit is contained in:
William Banfield
2022-03-03 12:12:29 -05:00
parent b5e8d798aa
commit 94f74b09dc
3 changed files with 1 additions and 5 deletions

View File

@@ -1,8 +1,6 @@
syntax = "proto3";
package tendermint.abci;
option go_package = "github.com/tendermint/tendermint/abci/types";
// For more information on gogo.proto, see:
// https://github.com/gogo/protobuf/blob/master/extensions.md
import "tendermint/crypto/proof.proto";

View File

@@ -1,8 +1,6 @@
syntax = "proto3";
package tendermint.types;
option go_package = "github.com/tendermint/tendermint/proto/tendermint/types";
import "gogoproto/gogo.proto";
import "google/protobuf/timestamp.proto";
import "tendermint/crypto/proof.proto";

View File

@@ -5,7 +5,7 @@ cp ./proto/intermediate/abci/types.proto ./proto/tendermint/abci/types.proto
cp ./proto/intermediate/types/types.proto ./proto/tendermint/types/types.proto
MODNAME="$(go list -m)"
find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/types.proto" \
find ./proto/tendermint -name '*.proto' -not -path "./proto/tendermint/abci/types.proto" -not -path "./proto/intermediate" \
-exec sh ./scripts/protopackage.sh {} "$MODNAME" ';'
sh ./scripts/protopackage.sh ./proto/tendermint/abci/types.proto $MODNAME "abci/types"