Skip to content

Commit

Permalink
feat: add protoc-gen-go-grpc
Browse files Browse the repository at this point in the history
See golang/protobuf#1070

Signed-off-by: Alexey Palazhchenko <[email protected]>
  • Loading branch information
AlekSi committed Jan 8, 2021
1 parent 4689294 commit 92cfc60
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions protoc-gen-go-grpc/pkg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: protoc-gen-go-grpc
dependencies:
- stage: base
- stage: golang
steps:
- sources:
- url: https://github.com/grpc/grpc-go/archive/v1.34.0.tar.gz
destination: grpc-go.tar.gz
sha256: 44eef6f9d159f289383ba844ca1a5b56eaf1a34463ee4b8e9e55c98d62108c1d
sha512: 4e71741a97a575a0257bd4deb2b8f35c78f564c492c889a12c3ef8218e0aff33e881f85c05d25d48cefcf51990e4ef1a8861065a4847fe08044d468c5d9c6fa0
prepare:
- |
tar -xzf grpc-go.tar.gz --strip-components=1
build:
- |
export PATH=${TOOLCHAIN}/go/bin:${PATH}
export GO111MODULE=on
cd cmd/protoc-gen-go-grpc-grpc
go build .
install:
- |
mkdir -p /rootfs${TOOLCHAIN}/bin
mv cmd/protoc-gen-go-grpc/protoc-gen-go-grpc /rootfs${TOOLCHAIN}/bin
finalize:
- from: /rootfs
to: /
1 change: 1 addition & 0 deletions tools/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ dependencies:
- stage: pkg-config
- stage: protobuf
- stage: protoc-gen-go
- stage: protoc-gen-go-grpc
- stage: python2
- stage: python3
- stage: rhash
Expand Down

0 comments on commit 92cfc60

Please sign in to comment.