-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use google.golang.org/protobuf instead of github.com/gogo/protobuf
This change replaces github.com/gogo/protobuf with google.golang.org/protobuf, except for the code generators. Signed-off-by: Kazuyoshi Kato <[email protected]>
- Loading branch information
Showing
20 changed files
with
977 additions
and
923 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,23 +107,20 @@ jobs: | |
sudo chmod -R go+rX /usr/local/include | ||
sudo chmod go+x /usr/local/bin/protoc | ||
- name: Install gogo/protobuf | ||
- name: Install protoc-gen-go | ||
run: | | ||
cd $GOPATH/src | ||
mkdir -p github.com/gogo | ||
cd github.com/gogo | ||
git clone --depth 1 --branch v1.3.2 https://github.com/gogo/protobuf | ||
go install google.golang.org/protobuf/cmd/[email protected] | ||
- name: Build protoc-gen-gogottrpc | ||
- name: Build protoc-gen-go-ttrpc | ||
working-directory: src/github.com/containerd/ttrpc | ||
run: | | ||
go build ./cmd/protoc-gen-gogottrpc | ||
go build ./cmd/protoc-gen-go-ttrpc | ||
- name: Run Protobuild | ||
working-directory: src/github.com/containerd/ttrpc | ||
run: | | ||
export PATH=$GOPATH/bin:$PWD:$PATH | ||
go install github.com/containerd/protobuild@7e5ee24bc1f70e9e289fef15e2631eb3491320bf | ||
cd example | ||
protobuild | ||
(cd example && protobuild) | ||
git diff --exit-code |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
version = "2" | ||
generators = ["go"] | ||
|
||
# Control protoc include paths. Below are usually some good defaults, but feel | ||
# free to try it without them if it works for your project. | ||
[includes] | ||
# Include paths that will be added before all others. Typically, you want to | ||
# treat the root of the project as an include, but this may not be necessary. | ||
before = ["."] | ||
|
||
# Paths that will be added untouched to the end of the includes. We use | ||
# `/usr/local/include` to pickup the common install location of protobuf. | ||
# This is the default. | ||
after = ["/usr/local/include"] | ||
|
||
# This section maps protobuf imports to Go packages. These will become | ||
# `-M` directives in the call to the go protobuf generator. | ||
[packages] | ||
"proto/status.proto" = "google.golang.org/genproto/googleapis/rpc/status" |
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
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
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.