protocols: replace gogo/types.Empty and Any

by Google versions.

Signed-off-by: Beraldo Leal <bleal@redhat.com>
This commit is contained in:
Beraldo Leal
2023-11-01 23:15:32 +00:00
parent c61f4a8592
commit 16fa2c39e6
21 changed files with 10547 additions and 32526 deletions

View File

@@ -54,11 +54,13 @@ generate_go_sources() {
[ "$dir_path" == "$proto_file" ] && dir_path="."
local root_path=$(realpath ../)/libs/protocols/protos
local output_path=$(realpath ../)/runtime/virtcontainers/pkg/agent/protocols/$dir_path
local mapping="Mgoogle/protobuf/empty.proto=google.golang.org/protobuf/types/known/emptypb"
local cmd="protoc -I$GOPATH/src:${root_path} \
--gogottrpc_out=plugins=ttrpc,paths=source_relative,\
Mgoogle/protobuf/empty.proto=github.com/gogo/protobuf/types\
:$(realpath ../)/runtime/virtcontainers/pkg/agent/protocols/$dir_path \
${root_path}/$file_name"
--go_out=paths=source_relative,$mapping:$output_path \
--go-ttrpc_out=paths=source_relative,$mapping:$output_path \
${root_path}/$file_name"
echo $cmd
$cmd