diff --git a/plugins/bufbuild/protoschema-jsonschema/v0.6.0/.dockerignore b/plugins/bufbuild/protoschema-jsonschema/v0.6.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/protoschema-jsonschema/v0.6.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/protoschema-jsonschema/v0.6.0/Dockerfile b/plugins/bufbuild/protoschema-jsonschema/v0.6.0/Dockerfile new file mode 100644 index 000000000..abf630534 --- /dev/null +++ b/plugins/bufbuild/protoschema-jsonschema/v0.6.0/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.23 +FROM --platform=$BUILDPLATFORM golang:1.26.2-trixie@sha256:4a7137ea573f79c86ae451ff05817ed762ef5597fcf732259e97abeb3108d873 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/bufbuild/protoschema-plugins/cmd/protoc-gen-jsonschema@v0.6.0 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-jsonschema /go/bin/protoc-gen-jsonschema || true + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-jsonschema / +USER nobody +ENTRYPOINT [ "/protoc-gen-jsonschema" ] diff --git a/plugins/bufbuild/protoschema-jsonschema/v0.6.0/buf.plugin.yaml b/plugins/bufbuild/protoschema-jsonschema/v0.6.0/buf.plugin.yaml new file mode 100644 index 000000000..2ad7ab3a5 --- /dev/null +++ b/plugins/bufbuild/protoschema-jsonschema/v0.6.0/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/bufbuild/protoschema-jsonschema +plugin_version: v0.6.0 +source_url: https://github.com/bufbuild/protoschema-plugins +description: Generates JSON Schema files from protobuf files. This implementation uses the latest Draft 2020-12. +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/protoschema-plugins/blob/v0.6.0/LICENSE diff --git a/plugins/bufbuild/protoschema-pubsub/v0.6.0/.dockerignore b/plugins/bufbuild/protoschema-pubsub/v0.6.0/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/bufbuild/protoschema-pubsub/v0.6.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/bufbuild/protoschema-pubsub/v0.6.0/Dockerfile b/plugins/bufbuild/protoschema-pubsub/v0.6.0/Dockerfile new file mode 100644 index 000000000..a2bc8f487 --- /dev/null +++ b/plugins/bufbuild/protoschema-pubsub/v0.6.0/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.23 +FROM --platform=$BUILDPLATFORM golang:1.26.2-trixie@sha256:4a7137ea573f79c86ae451ff05817ed762ef5597fcf732259e97abeb3108d873 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/bufbuild/protoschema-plugins/cmd/protoc-gen-pubsub@v0.6.0 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-pubsub /go/bin/protoc-gen-pubsub || true + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link /go/bin/protoc-gen-pubsub / +USER nobody +ENTRYPOINT [ "/protoc-gen-pubsub" ] diff --git a/plugins/bufbuild/protoschema-pubsub/v0.6.0/buf.plugin.yaml b/plugins/bufbuild/protoschema-pubsub/v0.6.0/buf.plugin.yaml new file mode 100644 index 000000000..6f2fb9766 --- /dev/null +++ b/plugins/bufbuild/protoschema-pubsub/v0.6.0/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/bufbuild/protoschema-pubsub +plugin_version: v0.6.0 +source_url: https://github.com/bufbuild/protoschema-plugins +description: Generates a PubSub schema in the form of a single self-contained messaged normalized to proto2. +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/protoschema-plugins/blob/v0.6.0/LICENSE diff --git a/plugins/community/nipunn1313-mypy-grpc/v5.1.0/.dockerignore b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/.dockerignore new file mode 100644 index 000000000..c8a679bc6 --- /dev/null +++ b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!requirements.txt diff --git a/plugins/community/nipunn1313-mypy-grpc/v5.1.0/Dockerfile b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/Dockerfile new file mode 100644 index 000000000..a4adf28f5 --- /dev/null +++ b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/Dockerfile @@ -0,0 +1,19 @@ +# syntax=docker/dockerfile:1.23 +FROM python:3.13.13-trixie@sha256:d52f7ef162003e17330f0dd9c3e0b4ac6775b39ea988be0c23de6d1461191569 AS build +WORKDIR /app +RUN python -mvenv /app +ADD /requirements.txt requirements.txt +RUN . ./bin/activate \ + && pip install --no-cache-dir -r requirements.txt \ + && pip uninstall --yes pip setuptools \ + && rm -f requirements.txt bin/activate.fish bin/activate.csh bin/Activate.ps1 \ + && rm -f bin/protoc-gen-mypy \ + && ln -sf /usr/bin/python /app/bin/python + +FROM gcr.io/distroless/python3-debian13:latest@sha256:ed3a4beb46f8f8baac068743ba1b1f95ea3f793422129cf6dd23967f779b6018 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/bin/protoc-gen-mypy_grpc" ] diff --git a/plugins/community/nipunn1313-mypy-grpc/v5.1.0/buf.plugin.yaml b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/buf.plugin.yaml new file mode 100644 index 000000000..ec6292db3 --- /dev/null +++ b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/buf.plugin.yaml @@ -0,0 +1,26 @@ +version: v1 +name: buf.build/community/nipunn1313-mypy-grpc +plugin_version: v5.1.0 +source_url: https://github.com/nipunn1313/mypy-protobuf +description: Generate mypy stub files for grpcio generated code. +spdx_license_id: Apache-2.0 +license_url: https://github.com/nipunn1313/mypy-protobuf/blob/v5.1.0/LICENSE +output_languages: + - python +registry: + python: + package_type: "stub-only" + # https://github.com/nipunn1313/mypy-protobuf/blob/v5.1.0/pyproject.toml#L21 + requires_python: ">=3.8" + deps: + # https://github.com/nipunn1313/mypy-protobuf/tree/v5.1.0#requirements-to-run-typecheckers-on-stubs-generated-by-mypy-protobuf + # > Earlier releases might work, but aren't tested. + - "types-protobuf >= 6.32" + - "protobuf >= 6.32" + # https://github.com/nipunn1313/mypy-protobuf/tree/v5.1.0#to-run-typecheckers-on-code-generated-with-grpc-plugin---youll-additionally-need + # > Earlier releases might work, but aren't tested + - "grpcio >= 1.70" + # https://pypi.org/project/grpcio-tools/ + - "grpcio-tools >= 1.70" + # https://pypi.org/project/types-grpcio/ + - "types-grpcio >= 1.0.0.20251009" diff --git a/plugins/community/nipunn1313-mypy-grpc/v5.1.0/requirements.txt b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/requirements.txt new file mode 100644 index 000000000..2cb7eceb4 --- /dev/null +++ b/plugins/community/nipunn1313-mypy-grpc/v5.1.0/requirements.txt @@ -0,0 +1,3 @@ +mypy-protobuf==5.1.0 +protobuf==6.33.1 +types-protobuf==6.32.1.20251105 diff --git a/plugins/community/nipunn1313-mypy/v5.1.0/.dockerignore b/plugins/community/nipunn1313-mypy/v5.1.0/.dockerignore new file mode 100644 index 000000000..c8a679bc6 --- /dev/null +++ b/plugins/community/nipunn1313-mypy/v5.1.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!requirements.txt diff --git a/plugins/community/nipunn1313-mypy/v5.1.0/Dockerfile b/plugins/community/nipunn1313-mypy/v5.1.0/Dockerfile new file mode 100644 index 000000000..d7178fa23 --- /dev/null +++ b/plugins/community/nipunn1313-mypy/v5.1.0/Dockerfile @@ -0,0 +1,19 @@ +# syntax=docker/dockerfile:1.23 +FROM python:3.13.13-trixie@sha256:d52f7ef162003e17330f0dd9c3e0b4ac6775b39ea988be0c23de6d1461191569 AS build +WORKDIR /app +RUN python -mvenv /app +ADD /requirements.txt requirements.txt +RUN . ./bin/activate \ + && pip install --no-cache-dir -r requirements.txt \ + && pip uninstall --yes pip setuptools \ + && rm -f requirements.txt bin/activate.fish bin/activate.csh bin/Activate.ps1 \ + && rm -f bin/protoc-gen-mypy_grpc \ + && ln -sf /usr/bin/python /app/bin/python + +FROM gcr.io/distroless/python3-debian13:latest@sha256:ed3a4beb46f8f8baac068743ba1b1f95ea3f793422129cf6dd23967f779b6018 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/bin/protoc-gen-mypy" ] diff --git a/plugins/community/nipunn1313-mypy/v5.1.0/buf.plugin.yaml b/plugins/community/nipunn1313-mypy/v5.1.0/buf.plugin.yaml new file mode 100644 index 000000000..b17799ee2 --- /dev/null +++ b/plugins/community/nipunn1313-mypy/v5.1.0/buf.plugin.yaml @@ -0,0 +1,19 @@ +version: v1 +name: buf.build/community/nipunn1313-mypy +plugin_version: v5.1.0 +source_url: https://github.com/nipunn1313/mypy-protobuf +description: Generate mypy stub files from Protobuf definitions. +spdx_license_id: Apache-2.0 +license_url: https://github.com/nipunn1313/mypy-protobuf/blob/v5.1.0/LICENSE +output_languages: + - python +registry: + python: + package_type: "stub-only" + # https://github.com/nipunn1313/mypy-protobuf/blob/v5.1.0/pyproject.toml#L21 + requires_python: ">=3.8" + deps: + # https://github.com/nipunn1313/mypy-protobuf/tree/v5.1.0#requirements-to-run-typecheckers-on-stubs-generated-by-mypy-protobuf + # > Earlier releases might work, but aren't tested. + - "types-protobuf >= 6.32" + - "protobuf >= 6.32" diff --git a/plugins/community/nipunn1313-mypy/v5.1.0/requirements.txt b/plugins/community/nipunn1313-mypy/v5.1.0/requirements.txt new file mode 100644 index 000000000..2cb7eceb4 --- /dev/null +++ b/plugins/community/nipunn1313-mypy/v5.1.0/requirements.txt @@ -0,0 +1,3 @@ +mypy-protobuf==5.1.0 +protobuf==6.33.1 +types-protobuf==6.32.1.20251105 diff --git a/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.6.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.6.0/eliza/plugin.sum new file mode 100644 index 000000000..d28454fe8 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.6.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:YdB8CZXJrV/LzjPrAWCB6v4O7KwwbmmFSk7XodxluVU= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.6.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.6.0/petapis/plugin.sum new file mode 100644 index 000000000..46be5e27c --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-jsonschema/v0.6.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:vt+y+5FMhdNn73lc7ptWIr9caNjSLf02h9p4par97es= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.6.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.6.0/eliza/plugin.sum new file mode 100644 index 000000000..37536f56d --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.6.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:L9RwJyIIdZ320achAuRucuQ51mW2AbpwT1ZWdddyURM= diff --git a/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.6.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.6.0/petapis/plugin.sum new file mode 100644 index 000000000..c382373e3 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/protoschema-pubsub/v0.6.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:J59Nbi1l4fBtI4C5YgnyOH4NLcxRZqbvJBKw/EQq0u4= diff --git a/tests/testdata/buf.build/community/nipunn1313-mypy-grpc/v5.1.0/eliza/plugin.sum b/tests/testdata/buf.build/community/nipunn1313-mypy-grpc/v5.1.0/eliza/plugin.sum new file mode 100644 index 000000000..86cf1e688 --- /dev/null +++ b/tests/testdata/buf.build/community/nipunn1313-mypy-grpc/v5.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:ZCm08z0mCv3h/XR1QyQOrxfa6Af1T06zxtb4pCE99ks= diff --git a/tests/testdata/buf.build/community/nipunn1313-mypy-grpc/v5.1.0/petapis/plugin.sum b/tests/testdata/buf.build/community/nipunn1313-mypy-grpc/v5.1.0/petapis/plugin.sum new file mode 100644 index 000000000..35ce144f2 --- /dev/null +++ b/tests/testdata/buf.build/community/nipunn1313-mypy-grpc/v5.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:SpWF0KKabrtFZXcfsCDmUapTz7BMZtK2OwFGAN1Vso4= diff --git a/tests/testdata/buf.build/community/nipunn1313-mypy/v5.1.0/eliza/plugin.sum b/tests/testdata/buf.build/community/nipunn1313-mypy/v5.1.0/eliza/plugin.sum new file mode 100644 index 000000000..c5986e219 --- /dev/null +++ b/tests/testdata/buf.build/community/nipunn1313-mypy/v5.1.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:Xqq23p9EECgGKCuBLK1+ho6UL9/+GOXAzN/FTVAKECc= diff --git a/tests/testdata/buf.build/community/nipunn1313-mypy/v5.1.0/petapis/plugin.sum b/tests/testdata/buf.build/community/nipunn1313-mypy/v5.1.0/petapis/plugin.sum new file mode 100644 index 000000000..9a1204fa5 --- /dev/null +++ b/tests/testdata/buf.build/community/nipunn1313-mypy/v5.1.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:5qhjqc7h0IKFvfc6FFm5KX7A+e7mvo1t0lPxymUS0yw=