2021-10-27 01:24:35 +03:00
|
|
|
#!/bin/sh -e
|
|
|
|
|
|
|
|
INC=$(go list -f '{{ .Dir }}' -m go.unistack.org/micro-proto/v3)
|
|
|
|
INC_CODEC=$(go list -f '{{ .Dir }}' -m go.unistack.org/micro/v3)
|
|
|
|
ARGS="-I${INC}"
|
|
|
|
CODEC_ARGS="-I${INC_CODEC}"
|
|
|
|
|
2022-03-03 18:01:37 +03:00
|
|
|
protoc $ARGS $CODEC_ARGS -Iproto --go_out=paths=source_relative:./proto/ proto/*.proto
|
|
|
|
|
2021-10-27 01:24:35 +03:00
|
|
|
protoc $ARGS $CODEC_ARGS -Iproto --go-micro_out=components="micro|http",debug=true,tag_path=./proto/,paths=source_relative:./proto/ proto/*.proto
|
|
|
|
|
|
|
|
protoc $ARGS $CODEC_ARGS -Iproto --go-micro_out=openapi_file=apidocs.swagger.json,components="openapiv3",debug=true,paths=source_relative:./proto/ proto/*.proto
|
|
|
|
|