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 Jun 26, 2023
1 parent d5d3a3d commit e8a08db
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 e8a08db

Please sign in to comment.