cms-template-proto/generate.sh
Vasiliy Tolstov a911e8aef0 initial import
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2024-08-25 15:36:01 +03:00

14 lines
508 B
Bash
Executable File

#!/bin/sh -ex
PROTO_ARGS=" \
--proto_path=$(go list -f '{{ .Dir }}' -m github.com/envoyproxy/protoc-gen-validate) \
--proto_path=$(go list -f '{{ .Dir }}' -m go.unistack.org/micro-proto/v3) \
--go_out=paths=source_relative:. \
--go-micro_out=module=go.unistack.org/cms-template-proto,components=micro|grpc,standalone=true:./micro \
--validate_out=paths=source_relative,lang=go:."
export PATH=$(pwd)/bin:$PATH
export GOWORK=off
rm -rf micro *.pb.go *.pb.*.go
mkdir -p micro
protoc -I. $PROTO_ARGS ./*.proto