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/v1.19.2/.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.19.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.23
FROM --platform=$BUILDPLATFORM golang:1.26.2-trixie@sha256:c0074c718b473f3827043f86532c4c0ff537e3fe7a81b8219b0d1ccfcc2c9a09 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/protoc-gen-connect-go@v1.19.2 \
&& 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.19.2/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.19.2
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.11
output_languages:
- go
registry:
go:
min_version: "1.24"
deps:
- module: connectrpc.com/connect
version: v1.19.2
opts:
- paths=source_relative
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-go/blob/v1.19.2/LICENSE
2 changes: 2 additions & 0 deletions plugins/connectrpc/gosimple/v1.19.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/connectrpc/gosimple/v1.19.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.23
FROM --platform=$BUILDPLATFORM golang:1.26.2-trixie@sha256:c0074c718b473f3827043f86532c4c0ff537e3fe7a81b8219b0d1ccfcc2c9a09 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/protoc-gen-connect-go@v1.19.2 \
&& 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" ]
21 changes: 21 additions & 0 deletions plugins/connectrpc/gosimple/v1.19.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
version: v1
name: buf.build/connectrpc/gosimple
plugin_version: v1.19.2
source_url: https://github.com/connectrpc/connect-go
integration_guide_url: https://connectrpc.com/docs/go/getting-started
description: Generates client and server stubs with simple function signatures for connectrpc.com/connect. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols.
deps:
- plugin: buf.build/protocolbuffers/go:v1.36.11
output_languages:
- go
registry:
go:
min_version: "1.24"
deps:
- module: connectrpc.com/connect
version: v1.19.2
opts:
- paths=source_relative
- simple
spdx_license_id: Apache-2.0
license_url: https://github.com/connectrpc/connect-go/blob/v1.19.2/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=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:YRv9BxkN+euOH9Z4cbDJsBcE7PV5bMc/CRdumQ7YG7g=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:2OQOwNtie1hgyVA/bEr78VRW00AAnq+bUNLs4XkVLTw=
Loading