Browse Source

do not instrument intermediate protos

pull/8065/head
William Banfield 3 years ago
parent
commit
94f74b09dc
No known key found for this signature in database GPG Key ID: EFAD3442BF29E3AC
3 changed files with 1 additions and 5 deletions
  1. +0
    -2
      proto/intermediate/abci/types.proto
  2. +0
    -2
      proto/intermediate/types/types.proto
  3. +1
    -1
      scripts/abci-gen.sh

+ 0
- 2
proto/intermediate/abci/types.proto 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";


+ 0
- 2
proto/intermediate/types/types.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";


+ 1
- 1
scripts/abci-gen.sh 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"


Loading…
Cancel
Save