Skip to content

keyservice: update protobuf to an recent release#1576

Closed
Foxboron wants to merge 1 commit intogetsops:mainfrom
Foxboron:morten/protobuf-fix
Closed

keyservice: update protobuf to an recent release#1576
Foxboron wants to merge 1 commit intogetsops:mainfrom
Foxboron:morten/protobuf-fix

Conversation

@Foxboron
Copy link
Copy Markdown
Contributor

@Foxboron Foxboron commented Aug 5, 2024

I'm unable to build this project with a recent version of protobuf and it seems like this hasn't been updated in a while.

In an effort to try make it buildable here is the needed patches.

Signed-off-by: Morten Linderud <morten@linderud.pw>
Copy link
Copy Markdown
Contributor

@felixfontein felixfontein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution! Sorry it took me so long to take a closer look...

Comment thread Makefile

%.pb.go: %.proto
protoc --go_out=plugins=grpc:. $<
protoc --go_grpc_opt=require_unimplemented_servers=false --go_grpc_out=. --go_out=. $<
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't get this working with go_grpc, I have to use go-grpc:

Suggested change
protoc --go_grpc_opt=require_unimplemented_servers=false --go_grpc_out=. --go_out=. $<
protoc --go-grpc_opt=require_unimplemented_servers=false --go-grpc_out=. --go_out=. $<

I installed it with go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest (and go install google.golang.org/protobuf/cmd/protoc-gen-go@latest).

(With the latest version the generated files also look differently.)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll take another stab at this then.

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.

2 participants