forked from coredns/coredns
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to use the latest protobuf package to build pb (coredns#5193)
* Update to use the latest protobuf package to build pb The pb package was generated some time ago with old version of https://github.com/golang/protobuf which was deprecated and in favor of google.golang.org/protobuf (see deprecation notice in https://pkg.go.dev/github.com/golang/protobuf) This PR updates the generation of pb package with v1.27.1 of google.golang.org/protobuf. Signed-off-by: Yong Tang <[email protected]> * Exclude pb from import test Signed-off-by: Yong Tang <[email protected]>
- Loading branch information
Showing
6 changed files
with
229 additions
and
121 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,18 @@ | |
# from: https://github.com/golang/protobuf to make this work. | ||
# The generate dns.pb.go is checked into git, so for normal builds we don't need | ||
# to run this generation step. | ||
# Note: The following has been used when regenerate pb: | ||
# curl -OL https://github.com/protocolbuffers/protobuf/releases/download/v3.19.4/protoc-3.19.4-linux-x86_64.zip | ||
# go install google.golang.org/protobuf/cmd/[email protected] | ||
# go install google.golang.org/grpc/cmd/[email protected] | ||
# export PATH="$PATH:$(go env GOPATH)/bin" | ||
# rm pb/dns.pb.go pb/dns_grpc.pb.go | ||
# make pb | ||
|
||
all: dns.pb.go | ||
|
||
dns.pb.go: dns.proto | ||
protoc --go_out=plugins=grpc:. dns.proto | ||
protoc --go_out=. --go-grpc_out=. dns.proto | ||
|
||
.PHONY: clean | ||
clean: | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.