protoc-gen-go: unable to determine Go import path for "person.proto"

Posted 生夏如花

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了protoc-gen-go: unable to determine Go import path for "person.proto"相关的知识,希望对你有一定的参考价值。

protoc-gen-go: unable to determine Go import path for "person.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.

提示以上错误可以通过将protoc-gen-go版本降至v1.3.2及一下解决

安装命令:

go get -u github.com/golang/protobuf/protoc-gen-go@v1.3.2

更多问题可以参考go-zero网站

https://go-zero.dev/error.html

 

以上是关于protoc-gen-go: unable to determine Go import path for "person.proto"的主要内容,如果未能解决你的问题,请参考以下文章

Nacos 启动报错 Unable to start web server……Unable to start embedded Tomcat

unable to inject dll into target怎么解决?

出现unable to open the service tomcat怎么办

unable to access jarfile baksmali.jar 怎么办

tomcat报错-----》Unable to open debugger port IDEA Unable to open debugger port

unable to connect to :5555