From c66ebc3ef4f016f41bed0d295da8b73edc8fc13b Mon Sep 17 00:00:00 2001 From: "app-token-plugins[bot]" <116026991+app-token-plugins[bot]@users.noreply.github.com> Date: Tue, 28 Nov 2023 11:39:45 -0600 Subject: [PATCH] Update grpc-java and ts-proto plugins (#928) --- .../stephenh-ts-proto/v1.165.0/.dockerignore | 3 + .../stephenh-ts-proto/v1.165.0/Dockerfile | 11 ++ .../v1.165.0/buf.plugin.yaml | 10 + .../v1.165.0/package-lock.json | 171 ++++++++++++++++++ .../stephenh-ts-proto/v1.165.0/package.json | 7 + plugins/grpc/java/v1.59.1/.dockerignore | 2 + plugins/grpc/java/v1.59.1/Dockerfile | 21 +++ plugins/grpc/java/v1.59.1/buf.plugin.yaml | 25 +++ .../v1.165.0/eliza/plugin.sum | 1 + .../v1.165.0/petapis/plugin.sum | 1 + .../grpc/java/v1.59.1/eliza/plugin.sum | 1 + .../grpc/java/v1.59.1/petapis/plugin.sum | 1 + 12 files changed, 254 insertions(+) create mode 100644 plugins/community/stephenh-ts-proto/v1.165.0/.dockerignore create mode 100644 plugins/community/stephenh-ts-proto/v1.165.0/Dockerfile create mode 100644 plugins/community/stephenh-ts-proto/v1.165.0/buf.plugin.yaml create mode 100644 plugins/community/stephenh-ts-proto/v1.165.0/package-lock.json create mode 100644 plugins/community/stephenh-ts-proto/v1.165.0/package.json create mode 100644 plugins/grpc/java/v1.59.1/.dockerignore create mode 100644 plugins/grpc/java/v1.59.1/Dockerfile create mode 100644 plugins/grpc/java/v1.59.1/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/petapis/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/java/v1.59.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/java/v1.59.1/petapis/plugin.sum diff --git a/plugins/community/stephenh-ts-proto/v1.165.0/.dockerignore b/plugins/community/stephenh-ts-proto/v1.165.0/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.165.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/community/stephenh-ts-proto/v1.165.0/Dockerfile b/plugins/community/stephenh-ts-proto/v1.165.0/Dockerfile new file mode 100644 index 000000000..2da12865b --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.165.0/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.6 +FROM node:20.10.0-alpine3.18 AS build +WORKDIR /app +COPY --link package*.json . +RUN npm ci +RUN sed -i -e 's|/usr/bin/env node|/nodejs/bin/node|g' /app/node_modules/ts-proto/protoc-gen-ts_proto + +FROM gcr.io/distroless/nodejs20-debian12 +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-ts_proto" ] diff --git a/plugins/community/stephenh-ts-proto/v1.165.0/buf.plugin.yaml b/plugins/community/stephenh-ts-proto/v1.165.0/buf.plugin.yaml new file mode 100644 index 000000000..860421e7f --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.165.0/buf.plugin.yaml @@ -0,0 +1,10 @@ +version: v1 +name: buf.build/community/stephenh-ts-proto +plugin_version: v1.165.0 +source_url: https://github.com/stephenh/ts-proto +integration_guide_url: https://github.com/stephenh/ts-proto#quickstart +description: An idiomatic protobuf generator for TypeScript. +output_languages: + - typescript +spdx_license_id: Apache-2.0 +license_url: https://github.com/stephenh/ts-proto/blob/v1.165.0/LICENSE diff --git a/plugins/community/stephenh-ts-proto/v1.165.0/package-lock.json b/plugins/community/stephenh-ts-proto/v1.165.0/package-lock.json new file mode 100644 index 000000000..09d8431fa --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.165.0/package-lock.json @@ -0,0 +1,171 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "1.165.0" + } + }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.4.tgz", + "integrity": "sha512-YyFaikqM5sH0ziFZCN3xDC7zeGaB/d0IUb9CATugHWbd1FRFwWwt4ld4OYMPWu5a3Xe01mGAULCdqhMlPl29Jg==" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz", + "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.0.tgz", + "integrity": "sha512-lljVXpqXebpsijW71PZaCYeIcE5on1w5DlQy5WH6GLbFryLUrBD4932W/E2BSpfRJWseIL4v/KPgBFxDOIdKpQ==", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1", + "@protobufjs/inquire": "^1.1.0" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==" + }, + "node_modules/@protobufjs/inquire": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.0.tgz", + "integrity": "sha512-kdSefcPdruJiFMVSbn801t4vFK7KB/5gd2fYvrxhuJYg8ILrmn9SKSX2tZdV6V+ksulWqS7aXjBcRXl3wHoD9Q==" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.0.tgz", + "integrity": "sha512-Vvn3zZrhQZkkBE8LSuW3em98c0FwgO4nxzv6OdSxPKJIEKY2bGbHn+mhGIPerzI4twdxaP8/0+06HBpwf345Lw==" + }, + "node_modules/@types/node": { + "version": "20.10.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.10.0.tgz", + "integrity": "sha512-D0WfRmU9TQ8I9PFx9Yc+EBHw+vSpIub4IDvQivcp26PtPrdMGAq5SDcpXEo/epqa/DXotVpekHiLNTg3iaKXBQ==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/case-anything": { + "version": "2.1.13", + "resolved": "https://registry.npmjs.org/case-anything/-/case-anything-2.1.13.tgz", + "integrity": "sha512-zlOQ80VrQ2Ue+ymH5OuM/DlDq64mEm+B9UTdHULv5osUMD6HalNTblf2b1u/m6QecjsnOkBpqVZ+XPwIVsy7Ng==", + "engines": { + "node": ">=12.13" + }, + "funding": { + "url": "https://github.com/sponsors/mesqueeb" + } + }, + "node_modules/detect-libc": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "integrity": "sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg==", + "bin": { + "detect-libc": "bin/detect-libc.js" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/dprint-node": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/dprint-node/-/dprint-node-1.0.8.tgz", + "integrity": "sha512-iVKnUtYfGrYcW1ZAlfR/F59cUVL8QIhWoBJoSjkkdua/dkWIgjZfiLMeTjiB06X0ZLkQ0M2C1VbUj/CxkIf1zg==", + "dependencies": { + "detect-libc": "^1.0.3" + } + }, + "node_modules/long": { + "version": "5.2.3", + "resolved": "https://registry.npmjs.org/long/-/long-5.2.3.tgz", + "integrity": "sha512-lcHwpNoggQTObv5apGNCTdJrO69eHOZMi4BNC+rTLER8iHAqGrUVeLh/irVIM7zTw2bOXA8T6uNPeujwOLg/2Q==" + }, + "node_modules/protobufjs": { + "version": "7.2.5", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.2.5.tgz", + "integrity": "sha512-gGXRSXvxQ7UiPgfw8gevrfRWcTlSbOFg+p/N+JVJEK5VhueL2miT6qTymqAmjr1Q5WbOCyJbyrk6JfWKwlFn6A==", + "hasInstallScript": true, + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.4", + "@protobufjs/eventemitter": "^1.1.0", + "@protobufjs/fetch": "^1.1.0", + "@protobufjs/float": "^1.0.2", + "@protobufjs/inquire": "^1.1.0", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.0", + "@types/node": ">=13.7.0", + "long": "^5.0.0" + }, + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/ts-poet": { + "version": "6.6.0", + "resolved": "https://registry.npmjs.org/ts-poet/-/ts-poet-6.6.0.tgz", + "integrity": "sha512-4vEH/wkhcjRPFOdBwIh9ItO6jOoumVLRF4aABDX5JSNEubSqwOulihxQPqai+OkuygJm3WYMInxXQX4QwVNMuw==", + "dependencies": { + "dprint-node": "^1.0.7" + } + }, + "node_modules/ts-proto": { + "version": "1.165.0", + "resolved": "https://registry.npmjs.org/ts-proto/-/ts-proto-1.165.0.tgz", + "integrity": "sha512-s7+RR/hcCXq8E4jDzwsaq0RXyVpu2pQ4XkT7meBA19xRrHWC32gfwMupcQrnpzoaR7n/F69AvK6FUyW7R+jYZQ==", + "dependencies": { + "case-anything": "^2.1.13", + "protobufjs": "^7.2.4", + "ts-poet": "^6.5.0", + "ts-proto-descriptors": "1.15.0" + }, + "bin": { + "protoc-gen-ts_proto": "protoc-gen-ts_proto" + } + }, + "node_modules/ts-proto-descriptors": { + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/ts-proto-descriptors/-/ts-proto-descriptors-1.15.0.tgz", + "integrity": "sha512-TYyJ7+H+7Jsqawdv+mfsEpZPTIj9siDHS6EMCzG/z3b/PZiphsX+mWtqFfFVe5/N0Th6V3elK9lQqjnrgTOfrg==", + "dependencies": { + "long": "^5.2.3", + "protobufjs": "^7.2.4" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + } + } +} diff --git a/plugins/community/stephenh-ts-proto/v1.165.0/package.json b/plugins/community/stephenh-ts-proto/v1.165.0/package.json new file mode 100644 index 000000000..9a0654a76 --- /dev/null +++ b/plugins/community/stephenh-ts-proto/v1.165.0/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-stephenh-ts-proto", + "version": "1.0.0", + "dependencies": { + "ts-proto": "1.165.0" + } +} diff --git a/plugins/grpc/java/v1.59.1/.dockerignore b/plugins/grpc/java/v1.59.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/java/v1.59.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/java/v1.59.1/Dockerfile b/plugins/grpc/java/v1.59.1/Dockerfile new file mode 100644 index 000000000..408ca5128 --- /dev/null +++ b/plugins/grpc/java/v1.59.1/Dockerfile @@ -0,0 +1,21 @@ +# syntax=docker/dockerfile:1.4 +FROM debian:bullseye-20231120 AS build + +ARG TARGETARCH + +WORKDIR /build +RUN apt-get update \ + && apt-get install -y curl +RUN arch=${TARGETARCH}; \ + if [ "${arch}" = "arm64" ]; then\ + arch="aarch_64"; \ + elif [ "${arch}" = "amd64" ]; then\ + arch="x86_64"; \ + fi; \ + echo "${arch}"; \ + curl -fsSL -o protoc-gen-grpc-java https://repo1.maven.org/maven2/io/grpc/protoc-gen-grpc-java/1.59.1/protoc-gen-grpc-java-1.59.1-linux-${arch}.exe + +FROM gcr.io/distroless/base-debian11 +COPY --from=build --link --chmod=0755 --chown=root:root /build/protoc-gen-grpc-java . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-java" ] diff --git a/plugins/grpc/java/v1.59.1/buf.plugin.yaml b/plugins/grpc/java/v1.59.1/buf.plugin.yaml new file mode 100644 index 000000000..787d52b67 --- /dev/null +++ b/plugins/grpc/java/v1.59.1/buf.plugin.yaml @@ -0,0 +1,25 @@ +version: v1 +name: buf.build/grpc/java +plugin_version: v1.59.1 +source_url: https://github.com/grpc/grpc-java +integration_guide_url: https://grpc.io/docs/languages/java/quickstart +description: Generates Java client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/protocolbuffers/java:v25.1 +output_languages: + - java +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-java/blob/v1.59.1/LICENSE +registry: + maven: + deps: + - io.grpc:grpc-core:1.59.1 + - io.grpc:grpc-protobuf:1.59.1 + - io.grpc:grpc-stub:1.59.1 + additional_runtimes: + - name: lite + deps: + - io.grpc:grpc-core:1.59.1 + - io.grpc:grpc-protobuf-lite:1.59.1 + - io.grpc:grpc-stub:1.59.1 + opts: [lite] diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/eliza/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/eliza/plugin.sum new file mode 100644 index 000000000..9c26d6dac --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:c2bL6MBuG1NJgUtCaESfyh0lhyWi/JmkenKns7OfSYQ= diff --git a/tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/petapis/plugin.sum b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/petapis/plugin.sum new file mode 100644 index 000000000..948536c58 --- /dev/null +++ b/tests/testdata/buf.build/community/stephenh-ts-proto/v1.165.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:aXVOiLAf7KA+JIaw/4CnnKA+5iDw6fQE9eS8/BVYejU= diff --git a/tests/testdata/buf.build/grpc/java/v1.59.1/eliza/plugin.sum b/tests/testdata/buf.build/grpc/java/v1.59.1/eliza/plugin.sum new file mode 100644 index 000000000..686c02441 --- /dev/null +++ b/tests/testdata/buf.build/grpc/java/v1.59.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:tc/kVj95LHw1/2ltmP3EEtW7EcrF5jYF2ay4pdTVkSc= diff --git a/tests/testdata/buf.build/grpc/java/v1.59.1/petapis/plugin.sum b/tests/testdata/buf.build/grpc/java/v1.59.1/petapis/plugin.sum new file mode 100644 index 000000000..426c336ea --- /dev/null +++ b/tests/testdata/buf.build/grpc/java/v1.59.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:BUy4Jcv0atpPug+HNVvPvQKG791qHz4ALbYyRfayxgw=