Skip to content

Commit

Permalink
tooling: generate protoset file
Browse files Browse the repository at this point in the history
Extends the `proto` make target to generate a protoset file for use with
grpcurl etc.
  • Loading branch information
boxofrad committed May 15, 2023
1 parent be7d2a4 commit fd8d0fb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build-support/scripts/protobuf.sh
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ function main {

status "Generated gRPC rate limit mapping file"

generate_protoset_file

status "Generated protoset file"

return 0
}

Expand Down Expand Up @@ -152,5 +156,9 @@ function generate_rate_limit_mappings {
}
}

function generate_protoset_file {
print_run buf build -o "${SOURCE_DIR}/pkg/consul.protoset"
}

main "$@"
exit $?

0 comments on commit fd8d0fb

Please sign in to comment.