-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
- まずMakefileでprotoファイルの自動更新コマンドを作成する
- Github Actionでprobufが更新した時だけ以上のMakfileを更新する
補足: probufを複数定義するときは、そのpathの情報を読み取って、動的にMakfileのコマンドを変えれるように
1の例:
proto:
cd proto && protoc --go_out=../pkg/api --go_opt=paths=source_relative \
--go-grpc_out=../pkg/api --go-grpc_opt=paths=source_relative \
generate_message_service.proto
クライアントサイド(--go-grpc_out)は絶対パスで他のレポジトリを参照する
probufはサーバーのrepoで管理する
権限周りはおれやるわ