diff --git a/plugins/community/ftshp-connect-php/source.yaml b/plugins/community/ftshp-connect-php/source.yaml new file mode 100644 index 000000000..6f6b0a021 --- /dev/null +++ b/plugins/community/ftshp-connect-php/source.yaml @@ -0,0 +1,4 @@ +source: + github: + owner: ftshp + repository: connect-php diff --git a/plugins/community/ftshp-connect-php/v0.1.0/.dockerignore b/plugins/community/ftshp-connect-php/v0.1.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/ftshp-connect-php/v0.1.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/ftshp-connect-php/v0.1.0/Dockerfile b/plugins/community/ftshp-connect-php/v0.1.0/Dockerfile new file mode 100644 index 000000000..1ce26b3de --- /dev/null +++ b/plugins/community/ftshp-connect-php/v0.1.0/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.27 +FROM --platform=$BUILDPLATFORM golang:1.27.3-trixie@sha256:c65ecfe613b539ac74c62a4c3b2c27e8f8a6076384c8f27e8a3c0f3be17cc385 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 github.com/ftshp/connect-php/cmd/protoc-gen-connect-php@v0.1.0 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-php /go/bin/protoc-gen-connect-php || true + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-connect-php / +USER nobody +ENTRYPOINT [ "/protoc-gen-connect-php" ] diff --git a/plugins/community/ftshp-connect-php/v0.1.0/buf.plugin.yaml b/plugins/community/ftshp-connect-php/v0.1.0/buf.plugin.yaml new file mode 100644 index 000000000..ee6035b70 --- /dev/null +++ b/plugins/community/ftshp-connect-php/v0.1.0/buf.plugin.yaml @@ -0,0 +1,12 @@ +version: v1 +name: buf.build/community/ftshp-connect-php +plugin_version: v0.1.0 +source_url: https://github.com/ftshp/connect-php +integration_guide_url: https://github.com/ftshp/connect-php#generated-code +description: Generates a PHP service interface and a PSR-18 client per service for ftshp/connect, an unofficial PHP implementation of the Connect protocol for unary RPCs. Use alongside protocolbuffers/php for the message classes. +deps: + - plugin: buf.build/protocolbuffers/php:v36.2 +output_languages: + - php +spdx_license_id: Apache-2.0 +license_url: https://github.com/ftshp/connect-php/blob/v0.1.0/LICENSE diff --git a/tests/testdata/buf.build/community/ftshp-connect-php/v0.1.0/eliza/plugin.sum b/tests/testdata/buf.build/community/ftshp-connect-php/v0.1.0/eliza/plugin.sum new file mode 100644 index 000000000..5bb24d858 --- /dev/null +++ b/tests/testdata/buf.build/community/ftshp-connect-php/v0.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:u4NrDi5YnYuuI7eZNl2LLc/m3nAS9VS2ZZm1BcJ7omM= diff --git a/tests/testdata/buf.build/community/ftshp-connect-php/v0.1.0/petapis/plugin.sum b/tests/testdata/buf.build/community/ftshp-connect-php/v0.1.0/petapis/plugin.sum new file mode 100644 index 000000000..5500cd79b --- /dev/null +++ b/tests/testdata/buf.build/community/ftshp-connect-php/v0.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:QzWFCBKKEVC1WRVEMpJsZL6QeO0rAQRJJzC4D2sksTo=