mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 00:24:40 +01:00
![]() When building the project with protoc-gen-go version 1.5.1, it fails with the following: ``` protoc -I. ui.proto --go_out=plugins=grpc:../daemon/ui/protocol/ protoc-gen-go: unable to determine Go import path for "ui.proto" Please specify either: • a "go_package" option in the .proto source file, or • a "M" argument on the command line. See https://developers.google.com/protocol-buffers/docs/reference/go-generated#package for more information. --go_out: protoc-gen-go: Plugin failed with status code 1. ``` This can be fixed by adding the full go package as an option in the proto file. To make sure the code is generated to the correct path, we also have to add add the `paths=source_relative` option to the protoc plugin. After this, the code is generated correctly, but the generated code references classes like grpc.ClientConnInterface which were introduced in 1.27.0. |
||
---|---|---|
.. | ||
.gitignore | ||
Makefile | ||
ui.proto |