Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add build instruction and fix protoc make file #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PichuChen
Copy link

目前版本不知道從什麼時候開始 proto 會編譯失敗,原先會看到的錯誤訊息有兩項:

--go_out: protoc-gen-go: plugins are not supported; use 'protoc --go-grpc_out=...' to generate gRPC

以及

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

這個 PR 針對這兩項問題進行更新,測試可用的版本資訊如下:
$ protoc --version
libprotoc 3.17.3
$ go version
go version go1.16.2 darwin/amd64
$ protoc-gen-go-grpc --version
protoc-gen-go-grpc 1.1.0
$ protoc-gen-go --version
protoc-gen-go v1.26.0

另外在 README.md 中新增了如何編譯的指引。

holishing added a commit to clamtestbbs/pttweb-ctb that referenced this pull request May 25, 2022
holishing added a commit to clamtestbbs/pttweb-ctb that referenced this pull request May 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant