diff --git a/plugins/connectrpc/go/v1.18.0/.dockerignore b/plugins/connectrpc/go/v1.18.0/.dockerignore new file mode 100644 index 00000000..5d0f124f --- /dev/null +++ b/plugins/connectrpc/go/v1.18.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/connectrpc/go/v1.18.0/Dockerfile b/plugins/connectrpc/go/v1.18.0/Dockerfile new file mode 100644 index 00000000..2e9bd90e --- /dev/null +++ b/plugins/connectrpc/go/v1.18.0/Dockerfile @@ -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/protoc-gen-connect-go@v1.18.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" ] diff --git a/plugins/connectrpc/go/v1.18.0/buf.plugin.yaml b/plugins/connectrpc/go/v1.18.0/buf.plugin.yaml new file mode 100644 index 00000000..48969ce4 --- /dev/null +++ b/plugins/connectrpc/go/v1.18.0/buf.plugin.yaml @@ -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 diff --git a/tests/testdata/buf.build/connectrpc/go/v1.18.0/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/go/v1.18.0/eliza/plugin.sum new file mode 100644 index 00000000..ef786770 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/go/v1.18.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:u23hequoE+Iv/KIkcXvKs9udlNUQAhml/9mKE4M9vUc= diff --git a/tests/testdata/buf.build/connectrpc/go/v1.18.0/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/go/v1.18.0/petapis/plugin.sum new file mode 100644 index 00000000..4aba81da --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/go/v1.18.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:AgnlcVVjlOtjzOJY9m9yC5oH80DRlmvsmpwUTJG5RWM=