mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-29 04:04:45 +00:00
agent/protocols: Remove some unnecessary include directives from protoc
The generate_go_sources() function in update-generate-proto.sh adds a number of include directives to the protoc command line. Some of these don't appear to be necessary to correctly compile the agent's protocol files, so remove them. Amongst other things were directives pointing at the old Kata1 runtime and agent repositories. Those ones could be actively harmful by causing odd dependencies of the Kata2 build on the Kata1 repositories. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
2b4520904c
commit
a19cf28c26
@ -47,7 +47,7 @@ show_usage() {
|
||||
}
|
||||
|
||||
generate_go_sources() {
|
||||
local cmd="protoc -I$GOPATH/src/github.com/kata-containers/agent/vendor/github.com/gogo/protobuf:$GOPATH/src/github.com/kata-containers/agent/vendor:$GOPATH/src/github.com/gogo/protobuf:$GOPATH/src/github.com/gogo/googleapis:$GOPATH/src:$GOPATH/src/github.com/kata-containers/kata-containers/src/agent/protocols/protos \
|
||||
local cmd="protoc -I$GOPATH/src:$GOPATH/src/github.com/kata-containers/kata-containers/src/agent/protocols/protos \
|
||||
--gogottrpc_out=plugins=ttrpc+fieldpath,\
|
||||
import_path=github.com/kata-containers/kata-containers/src/runtime/virtcontainers/pkg/agent/protocols/grpc,\
|
||||
\
|
||||
|
Loading…
Reference in New Issue
Block a user