From 2fd95a7fa1d6f244cba3a89b9c0f401873230b51 Mon Sep 17 00:00:00 2001 From: Alexey Palazhchenko Date: Fri, 8 Jan 2021 18:19:52 +0300 Subject: [PATCH] feat: add protoc-gen-go-grpc See https://github.com/golang/protobuf/issues/1070 Signed-off-by: Alexey Palazhchenko --- protoc-gen-go-grpc/pkg.yaml | 26 ++++++++++++++++++++++++++ tools/pkg.yaml | 1 + 2 files changed, 27 insertions(+) create mode 100644 protoc-gen-go-grpc/pkg.yaml diff --git a/protoc-gen-go-grpc/pkg.yaml b/protoc-gen-go-grpc/pkg.yaml new file mode 100644 index 0000000..a789410 --- /dev/null +++ b/protoc-gen-go-grpc/pkg.yaml @@ -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 + 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: / diff --git a/tools/pkg.yaml b/tools/pkg.yaml index 9f96ac5..dde4d0b 100644 --- a/tools/pkg.yaml +++ b/tools/pkg.yaml @@ -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