diff --git a/plugins/bufbuild/connect-web/v0.6.0/.dockerignore b/plugins/bufbuild/connect-web/v0.6.0/.dockerignore new file mode 100644 index 000000000..771bbbaa9 --- /dev/null +++ b/plugins/bufbuild/connect-web/v0.6.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!package*.json diff --git a/plugins/bufbuild/connect-web/v0.6.0/Dockerfile b/plugins/bufbuild/connect-web/v0.6.0/Dockerfile new file mode 100644 index 000000000..e0e8407d5 --- /dev/null +++ b/plugins/bufbuild/connect-web/v0.6.0/Dockerfile @@ -0,0 +1,11 @@ +# syntax=docker/dockerfile:1.4 +FROM node:18.13.0-alpine3.17 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-connect-web/bin/protoc-gen-connect-web + +FROM gcr.io/distroless/nodejs18-debian11 +COPY --link --from=build /app /app +USER nobody +ENTRYPOINT [ "/app/node_modules/.bin/protoc-gen-connect-web" ] diff --git a/plugins/bufbuild/connect-web/v0.6.0/buf.plugin.yaml b/plugins/bufbuild/connect-web/v0.6.0/buf.plugin.yaml new file mode 100644 index 000000000..4566add8c --- /dev/null +++ b/plugins/bufbuild/connect-web/v0.6.0/buf.plugin.yaml @@ -0,0 +1,19 @@ +version: v1 +name: buf.build/bufbuild/connect-web +plugin_version: v0.6.0 +source_url: https://github.com/bufbuild/connect-web +description: Generates client stubs for calling Connect and gRPC-Web services from a web browser. +deps: + - plugin: buf.build/bufbuild/es:v1.0.0 +output_languages: + - javascript + - typescript +registry: + npm: + import_style: module + rewrite_import_path_suffix: connectweb.js + deps: + - package: '@bufbuild/connect-web' + version: ^0.6.0 +spdx_license_id: Apache-2.0 +license_url: https://github.com/bufbuild/connect-web/blob/v0.6.0/LICENSE diff --git a/plugins/bufbuild/connect-web/v0.6.0/package-lock.json b/plugins/bufbuild/connect-web/v0.6.0/package-lock.json new file mode 100644 index 000000000..9963832b9 --- /dev/null +++ b/plugins/bufbuild/connect-web/v0.6.0/package-lock.json @@ -0,0 +1,148 @@ +{ + "name": "plugins-bufbuild-connect-web", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "plugins-bufbuild-connect-web", + "version": "1.0.0", + "dependencies": { + "@bufbuild/protoc-gen-connect-web": "0.6.0" + } + }, + "node_modules/@bufbuild/protobuf": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.0.0.tgz", + "integrity": "sha512-oH3jHBrZ6to8Qf4zLg7O8KqSY42kQZNBRXJRMp5uSi0mqE4L8NbyMnZHeOsbXmTb0xpptRyH11LfS+KeVhXzAA==" + }, + "node_modules/@bufbuild/protoc-gen-connect-web": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-connect-web/-/protoc-gen-connect-web-0.6.0.tgz", + "integrity": "sha512-R2iuvUCRTRvBVyvx3U/ph9hjciwizy4EScQvqdASFCC3QimtXBf+pV2QU6KzNzhI9RqlKh18A7Egfw++4B9I7Q==", + "dependencies": { + "@bufbuild/protoplugin": "^1.0.0" + }, + "bin": { + "protoc-gen-connect-web": "bin/protoc-gen-connect-web" + }, + "engines": { + "node": ">=14" + }, + "peerDependencies": { + "@bufbuild/connect-web": "0.6.0", + "@bufbuild/protoc-gen-es": "^1.0.0" + }, + "peerDependenciesMeta": { + "@bufbuild/connect-web": { + "optional": true + }, + "@bufbuild/protoc-gen-es": { + "optional": true + } + } + }, + "node_modules/@bufbuild/protoplugin": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-1.0.0.tgz", + "integrity": "sha512-L7z2/4MgP36QGEAh8T4OYrdMRv//LAw4gGpL8D3cziE21uP6FLzLKpIxJ4aJBoUyHyS53tpZMpb0djbxYDecFA==", + "dependencies": { + "@bufbuild/protobuf": "1.0.0", + "@typescript/vfs": "^1.4.0", + "typescript": "4.5.2" + } + }, + "node_modules/@typescript/vfs": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.4.0.tgz", + "integrity": "sha512-Pood7yv5YWMIX+yCHo176OnF8WUlKGImFG7XlsuH14Zb1YN5+dYD3uUtS7lqZtsH7tAveNUi2NzdpQCN0yRbaw==", + "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" + } + } + }, + "dependencies": { + "@bufbuild/protobuf": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protobuf/-/protobuf-1.0.0.tgz", + "integrity": "sha512-oH3jHBrZ6to8Qf4zLg7O8KqSY42kQZNBRXJRMp5uSi0mqE4L8NbyMnZHeOsbXmTb0xpptRyH11LfS+KeVhXzAA==" + }, + "@bufbuild/protoc-gen-connect-web": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoc-gen-connect-web/-/protoc-gen-connect-web-0.6.0.tgz", + "integrity": "sha512-R2iuvUCRTRvBVyvx3U/ph9hjciwizy4EScQvqdASFCC3QimtXBf+pV2QU6KzNzhI9RqlKh18A7Egfw++4B9I7Q==", + "requires": { + "@bufbuild/protoplugin": "^1.0.0" + } + }, + "@bufbuild/protoplugin": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@bufbuild/protoplugin/-/protoplugin-1.0.0.tgz", + "integrity": "sha512-L7z2/4MgP36QGEAh8T4OYrdMRv//LAw4gGpL8D3cziE21uP6FLzLKpIxJ4aJBoUyHyS53tpZMpb0djbxYDecFA==", + "requires": { + "@bufbuild/protobuf": "1.0.0", + "@typescript/vfs": "^1.4.0", + "typescript": "4.5.2" + } + }, + "@typescript/vfs": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/@typescript/vfs/-/vfs-1.4.0.tgz", + "integrity": "sha512-Pood7yv5YWMIX+yCHo176OnF8WUlKGImFG7XlsuH14Zb1YN5+dYD3uUtS7lqZtsH7tAveNUi2NzdpQCN0yRbaw==", + "requires": { + "debug": "^4.1.1" + } + }, + "debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "requires": { + "ms": "2.1.2" + } + }, + "ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" + }, + "typescript": { + "version": "4.5.2", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.5.2.tgz", + "integrity": "sha512-5BlMof9H1yGt0P8/WF+wPNw6GfctgGjXp5hkblpyT+8rkASSmkUKMXrxR0Xg8ThVCi/JnHQiKXeBaEwCeQwMFw==" + } + } +} diff --git a/plugins/bufbuild/connect-web/v0.6.0/package.json b/plugins/bufbuild/connect-web/v0.6.0/package.json new file mode 100644 index 000000000..d1f02913d --- /dev/null +++ b/plugins/bufbuild/connect-web/v0.6.0/package.json @@ -0,0 +1,7 @@ +{ + "name": "plugins-bufbuild-connect-web", + "version": "1.0.0", + "dependencies": { + "@bufbuild/protoc-gen-connect-web": "0.6.0" + } +} diff --git a/plugins/grpc/swift/v1.13.2/.dockerignore b/plugins/grpc/swift/v1.13.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/swift/v1.13.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/swift/v1.13.2/Dockerfile b/plugins/grpc/swift/v1.13.2/Dockerfile new file mode 100644 index 000000000..6d4f0693e --- /dev/null +++ b/plugins/grpc/swift/v1.13.2/Dockerfile @@ -0,0 +1,12 @@ +# syntax=docker/dockerfile:1.4 +FROM swift:5.7.2-focal AS build + +WORKDIR /app +RUN git clone --depth 1 --branch 1.13.2 https://github.com/grpc/grpc-swift --recursive +WORKDIR /app/grpc-swift +RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift -Xlinker -s + +FROM gcr.io/distroless/cc-debian11 +COPY --from=build --link /app/grpc-swift/.build/release/protoc-gen-grpc-swift . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-swift" ] diff --git a/plugins/grpc/swift/v1.13.2/buf.plugin.yaml b/plugins/grpc/swift/v1.13.2/buf.plugin.yaml new file mode 100644 index 000000000..01ad7db03 --- /dev/null +++ b/plugins/grpc/swift/v1.13.2/buf.plugin.yaml @@ -0,0 +1,11 @@ +version: v1 +name: buf.build/grpc/swift +plugin_version: v1.13.2 +source_url: https://github.com/grpc/grpc-swift +description: Generates Swift client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/apple/swift:v1.20.3 +output_languages: + - swift +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-swift/blob/1.13.2/LICENSE diff --git a/tests/testdata/buf.build/bufbuild/connect-web/v0.6.0/eliza/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-web/v0.6.0/eliza/plugin.sum new file mode 100644 index 000000000..e0f70e7f3 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-web/v0.6.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:KYIwWZM1VBQRGjlL2oX6OJkuS9sf6ZOMroI7cvFeRjo= diff --git a/tests/testdata/buf.build/bufbuild/connect-web/v0.6.0/petapis/plugin.sum b/tests/testdata/buf.build/bufbuild/connect-web/v0.6.0/petapis/plugin.sum new file mode 100644 index 000000000..f45f81203 --- /dev/null +++ b/tests/testdata/buf.build/bufbuild/connect-web/v0.6.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:gwhtIiSMEJKkoqT5SkkCG4NxhhvBrrq7iJWssGR1zOs= diff --git a/tests/testdata/buf.build/grpc/swift/v1.13.2/eliza/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.13.2/eliza/plugin.sum new file mode 100644 index 000000000..ea34c2891 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.13.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:AyTBCyR7NTQf+n2zmThBq9/Nveb5Mx/QZnQ4ZvovhF4= diff --git a/tests/testdata/buf.build/grpc/swift/v1.13.2/petapis/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.13.2/petapis/plugin.sum new file mode 100644 index 000000000..ced62ccb6 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.13.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:nxLl9QVtjt+8+FrGOVBBSZnGQLT+GrD+NjxshOJh7xc=