From fca6fbe33f53f72275a31c940461eef3335d2346 Mon Sep 17 00:00:00 2001 From: "app-token-plugins[bot]" <116026991+app-token-plugins[bot]@users.noreply.github.com> Date: Thu, 11 Jan 2024 09:41:42 -0600 Subject: [PATCH] Update knit-ts and rr-server-php-grpc plugins (#1006) --- plugins/bufbuild/knit-ts/v0.0.4/.dockerignore | 3 + plugins/bufbuild/knit-ts/v0.0.4/Dockerfile | 11 +++ .../bufbuild/knit-ts/v0.0.4/buf.plugin.yaml | 14 +++ .../bufbuild/knit-ts/v0.0.4/package-lock.json | 93 +++++++++++++++++++ plugins/bufbuild/knit-ts/v0.0.4/package.json | 7 ++ .../v4.6.4/.dockerignore | 2 + .../v4.6.4/Dockerfile | 13 +++ .../v4.6.4/buf.plugin.yaml | 11 +++ .../bufbuild/knit-ts/v0.0.4/eliza/plugin.sum | 1 + .../knit-ts/v0.0.4/petapis/plugin.sum | 1 + .../v4.6.4/eliza/plugin.sum | 1 + .../v4.6.4/petapis/plugin.sum | 1 + 12 files changed, 158 insertions(+) create mode 100644 plugins/bufbuild/knit-ts/v0.0.4/.dockerignore create mode 100644 plugins/bufbuild/knit-ts/v0.0.4/Dockerfile create mode 100644 plugins/bufbuild/knit-ts/v0.0.4/buf.plugin.yaml create mode 100644 plugins/bufbuild/knit-ts/v0.0.4/package-lock.json create mode 100644 plugins/bufbuild/knit-ts/v0.0.4/package.json create mode 100644 plugins/community/roadrunner-server-php-grpc/v4.6.4/.dockerignore create mode 100644 plugins/community/roadrunner-server-php-grpc/v4.6.4/Dockerfile create mode 100644 plugins/community/roadrunner-server-php-grpc/v4.6.4/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/petapis/plugin.sum create mode 100644 tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/petapis/plugin.sum diff --git a/plugins/bufbuild/knit-ts/v0.0.4/.dockerignore b/plugins/bufbuild/knit-ts/v0.0.4/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/bufbuild/knit-ts/v0.0.4/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/bufbuild/knit-ts/v0.0.4/Dockerfile b/plugins/bufbuild/knit-ts/v0.0.4/Dockerfile new file mode 100644 index 000000000..cde8a5487 --- /dev/null +++ b/plugins/bufbuild/knit-ts/v0.0.4/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM node:20.11.0-alpine3.19 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/@bufbuild/protoc-gen-knit-ts/bin/protoc-gen-knit-ts + +FROM gcr.io/distroless/nodejs20-debian12:latest@sha256:7715474a901a28e3edcdf7730f14b33e30c26085989ce04b0de163fe8fab0f03 +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-knit-ts" ] diff --git a/plugins/bufbuild/knit-ts/v0.0.4/buf.plugin.yaml b/plugins/bufbuild/knit-ts/v0.0.4/buf.plugin.yaml new file mode 100644 index 000000000..d1d67c120 --- /dev/null +++ b/plugins/bufbuild/knit-ts/v0.0.4/buf.plugin.yaml @@ -0,0 +1,14 @@ +version: v1 +name: buf.build/bufbuild/knit-ts +plugin_version: v0.0.4 +source_url: https://github.com/bufbuild/knit-ts +integration_guide_url: https://github.com/bufbuild/knit-ts#quick-example +description: Generates Knit schemas needed to use the Knit client in web browsers and Node.js. +output_languages: + - typescript +registry: + npm: + import_style: module + rewrite_import_path_suffix: knit.js +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/knit-ts/blob/v0.0.4/LICENSE diff --git a/plugins/bufbuild/knit-ts/v0.0.4/package-lock.json b/plugins/bufbuild/knit-ts/v0.0.4/package-lock.json new file mode 100644 index 000000000..e3be2bda3 --- /dev/null +++ b/plugins/bufbuild/knit-ts/v0.0.4/package-lock.json @@ -0,0 +1,93 @@ +{ + "name": "plugins-bufbuild-knit-ts", + "version": "0.0.4", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "plugins-bufbuild-knit-ts", + "version": "0.0.4", + "dependencies": { + "@bufbuild/protoc-gen-knit-ts": "0.0.4" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.6.0.tgz", + "integrity": "sha512-hp19vSFgNw3wBBcVBx5qo5pufCqjaJ0Cfk5H/pfjNOfNWU+4/w0QVOmfAOZNRrNWRrVuaJWxcN8P2vhOkkzbBQ==" + }, + "node_modules/@bufbuild/protoc-gen-knit-ts": { + "version": "0.0.4", + "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-knit-ts/-/protoc-gen-knit-ts-0.0.4.tgz", + "integrity": "sha512-a019Pkcgwu8AdJY8ISZqO0QZpsoHr88udD+qadqii4qjqyPgqdXT/Udb/RfoK3Vc4QNqgvzG9jzoDGcvdoyr5w==", + "dependencies": { + "@bufbuild/protoplugin": "^1.5.0" + }, + "bin": { + "protoc-gen-knit-ts": "bin/protoc-gen-knit-ts" + }, + "engines": { + "node": ">=18" + }, + "peerDependencies": { + "@bufbuild/protobuf": "^1.5.0" + }, + "peerDependenciesMeta": { + "@bufbuild/protobuf": { + "optional": true + } + } + }, + "node_modules/@bufbuild/protoplugin": { + "version": "1.6.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-1.6.0.tgz", + "integrity": "sha512-o53ZsvojHQkAPoC9v5sJifY2OfXdRU8DO3QpPoJ+QuvYcfB9Zb3DZkNMQRyfEbF4TVYiaQ0mZzZl1mESDdyCxA==", + "dependencies": { + "@bufbuild/protobuf": "1.6.0", + "@typescript/vfs": "^1.4.0", + "typescript": "4.5.2" + } + }, + "node_modules/@typescript/vfs": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.5.0.tgz", + "integrity": "sha512-AJS307bPgbsZZ9ggCT3wwpg3VbTKMFNHfaY/uF0ahSkYYrPF2dSSKDNIDIQAHm9qJqbLvCsSJH7yN4Vs/CsMMg==", + "dependencies": { + "debug": "^4.1.1" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "node_modules/typescript": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", + "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" + }, + "engines": { + "node": ">=4.2.0" + } + } + } +} diff --git a/plugins/bufbuild/knit-ts/v0.0.4/package.json b/plugins/bufbuild/knit-ts/v0.0.4/package.json new file mode 100644 index 000000000..35b521a76 --- /dev/null +++ b/plugins/bufbuild/knit-ts/v0.0.4/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-bufbuild-knit-ts", + "version": "0.0.4", + "dependencies": { + "@bufbuild/protoc-gen-knit-ts": "0.0.4" + } +} diff --git a/plugins/community/roadrunner-server-php-grpc/v4.6.4/.dockerignore b/plugins/community/roadrunner-server-php-grpc/v4.6.4/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/roadrunner-server-php-grpc/v4.6.4/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/roadrunner-server-php-grpc/v4.6.4/Dockerfile b/plugins/community/roadrunner-server-php-grpc/v4.6.4/Dockerfile new file mode 100644 index 000000000..d7a17e90c --- /dev/null +++ b/plugins/community/roadrunner-server-php-grpc/v4.6.4/Dockerfile @@ -0,0 +1,13 @@ +# syntax=docker/dockerfile:1.6 +FROM golang:1.21.6-bookworm AS build +RUN git clone --depth=1 --branch v4.6.4 https://github.com/roadrunner-server/grpc.git +RUN --mount=type=cache,target=/go/pkg/mod \ + cd grpc/protoc_plugins/protoc-gen-php-grpc && \ + CGO_ENABLED=0 \ + go install -ldflags="-s -w" -trimpath + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-php-grpc / +USER nobody +ENTRYPOINT [ "/protoc-gen-php-grpc" ] diff --git a/plugins/community/roadrunner-server-php-grpc/v4.6.4/buf.plugin.yaml b/plugins/community/roadrunner-server-php-grpc/v4.6.4/buf.plugin.yaml new file mode 100644 index 000000000..d7facf12e --- /dev/null +++ b/plugins/community/roadrunner-server-php-grpc/v4.6.4/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/community/roadrunner-server-php-grpc +plugin_version: v4.6.4 +source_url: https://github.com/roadrunner-server/grpc +description: Generates code for the PHP RoadRunner application server. +deps: + - plugin: buf.build/protocolbuffers/php:v25.2 +spdx_license_id: MIT +license_url: https://github.com/roadrunner-server/grpc/blob/v4.6.4/LICENSE +output_languages: + - php diff --git a/tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/eliza/plugin.sum new file mode 100644 index 000000000..b3b6b555a --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/eliza/plugin.sum @@ -0,0 +1 @@ +h1:6pBzLDZjUFCm3r5GThqvRQ09UmLZs4Pfvk3iYUatdCU= diff --git a/tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/petapis/plugin.sum new file mode 100644 index 000000000..763464f4e --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/knit-ts/v0.0.4/petapis/plugin.sum @@ -0,0 +1 @@ +h1:fTYqH8k7jmY24SSK4rO70fWts3A0c8UcDXE+0Qx6K84= diff --git a/tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/eliza/plugin.sum b/tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/eliza/plugin.sum new file mode 100644 index 000000000..7d13d99b0 --- /dev/null +++ b/tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/eliza/plugin.sum @@ -0,0 +1 @@ +h1:jT7gKL/t3iAPRsfXcC8b24F5IdSxtcuyuhD8yvmGRiA= diff --git a/tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/petapis/plugin.sum b/tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/petapis/plugin.sum new file mode 100644 index 000000000..fd44421ca --- /dev/null +++ b/tests/testdata/buf.build/community/roadrunner-server-php-grpc/v4.6.4/petapis/plugin.sum @@ -0,0 +1 @@ +h1:7bA/GKq0K0btx4JnO+NSpYBkPfz0oSLjz+Ddv/NYe/A=