mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 23:04:20 +01:00
protocols: replace gogo/types.Empty and Any
by Google versions. Signed-off-by: Beraldo Leal <bleal@redhat.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user