Skip to content

Commit

Permalink
Update connectrpc/go to v1.18.0 (#1651)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Jan 7, 2025
1 parent f880fc1 commit 7d58554
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/connectrpc/go/v1.18.0/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/connectrpc/go/v1.18.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.12
FROM --platform=$BUILDPLATFORM golang:1.23.4-bookworm AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags="-s -w" -trimpath connectrpc.com/connect/cmd/[email protected] \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-go /go/bin/protoc-gen-connect-go || true

FROM scratch
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd
COPY --from=build --link /go/bin/protoc-gen-connect-go /
USER nobody
ENTRYPOINT [ "/protoc-gen-connect-go" ]
20 changes: 20 additions & 0 deletions plugins/connectrpc/go/v1.18.0/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: v1
name: buf.build/connectrpc/go
plugin_version: v1.18.0
source_url: https://github.com/connectrpc/connect-go
integration_guide_url: https://connectrpc.com/docs/go/getting-started
description: Generates client and server stubs for connectrpc.com/connect. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols.
deps:
- plugin: buf.build/protocolbuffers/go:v1.36.2
output_languages:
- go
registry:
go:
min_version: "1.21"
deps:
- module: connectrpc.com/connect
version: v1.18.0
opts:
- paths=source_relative
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-go/blob/v1.18.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:u23hequoE+Iv/KIkcXvKs9udlNUQAhml/9mKE4M9vUc=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:AgnlcVVjlOtjzOJY9m9yC5oH80DRlmvsmpwUTJG5RWM=

0 comments on commit 7d58554

Please sign in to comment.