Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/connectrpc/go/v2.0.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/v2.0.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.26
FROM --platform=$BUILDPLATFORM golang:1.27.1-trixie@sha256:9baa6b4187bbb98d240372a8a235ac0bb6b5ddd52bba1431dc2f7c0705862728 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/v2/cmd/protoc-gen-connect-go@v2.0.0 \
&& 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/v2.0.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: v2.0.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/v2. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols.
deps:
- plugin: buf.build/protocolbuffers/go:v1.36.12
output_languages:
- go
registry:
go:
min_version: "1.26"
deps:
- module: connectrpc.com/connect/v2
version: v2.0.0
opts:
- paths=source_relative
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-go/blob/v2.0.0/LICENSE
2 changes: 2 additions & 0 deletions plugins/connectrpc/gosimple/source.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@ source:
github:
owner: connectrpc
repository: connect-go
# connect-go v2 generates the simple API by default, use connectrpc/go for v2
max_version: 2.0.0

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Connect may be one exception where we continue to publish 1.x versions of connectrpc/go in addition to connectrpc/simple. Will evaluate it if/when we release off the v1 branch.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:lnbX0OY51EFKxFR5XrteI33vHCs5FO9HjtWecqzIbUQ=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:8Ond+l+jysrMHFNlJg47NUOj4lLeW/C1HSMbms71s2Y=
Loading