From fd80fd2284033c8e3bb09a6286bf7295e2dcfdeb Mon Sep 17 00:00:00 2001 From: "Philip K. Warren" Date: Tue, 17 Feb 2026 18:08:48 -0600 Subject: [PATCH] Update plugins to latest versions Update selected plugins to their latest versions. A follow up will fix an issue with the grpc-gateway plugin (the patch no longer cleanly applies). --- plugins/apple/swift/v1.35.0/.dockerignore | 3 + plugins/apple/swift/v1.35.0/Dockerfile | 19 ++++++ plugins/apple/swift/v1.35.0/buf.plugin.yaml | 21 +++++++ .../swift/v1.35.0/extramoduleimports.patch | 63 +++++++++++++++++++ .../v0.25.2/.dockerignore | 2 + .../v0.25.2/Dockerfile | 15 +++++ .../v0.25.2/buf.plugin.yaml | 7 +++ .../swift-mocks/v1.2.1/.dockerignore | 2 + .../connectrpc/swift-mocks/v1.2.1/Dockerfile | 17 +++++ .../swift-mocks/v1.2.1/buf.plugin.yaml | 32 ++++++++++ plugins/connectrpc/swift/v1.2.1/.dockerignore | 2 + plugins/connectrpc/swift/v1.2.1/Dockerfile | 17 +++++ .../connectrpc/swift/v1.2.1/buf.plugin.yaml | 31 +++++++++ .../grpc/swift-protobuf/v2.2.0/.dockerignore | 3 + plugins/grpc/swift-protobuf/v2.2.0/Dockerfile | 18 ++++++ .../swift-protobuf/v2.2.0/Package.resolved | 33 ++++++++++ .../swift-protobuf/v2.2.0/buf.plugin.yaml | 30 +++++++++ plugins/grpc/swift/v1.27.2/.dockerignore | 2 + plugins/grpc/swift/v1.27.2/Dockerfile | 17 +++++ plugins/grpc/swift/v1.27.2/buf.plugin.yaml | 23 +++++++ .../apple/swift/v1.35.0/eliza/plugin.sum | 1 + .../apple/swift/v1.35.0/petapis/plugin.sum | 1 + .../v0.25.2/eliza/plugin.sum | 1 + .../v0.25.2/petapis/plugin.sum | 1 + .../swift-mocks/v1.2.1/eliza/plugin.sum | 1 + .../swift-mocks/v1.2.1/petapis/plugin.sum | 1 + .../connectrpc/swift/v1.2.1/eliza/plugin.sum | 1 + .../swift/v1.2.1/petapis/plugin.sum | 1 + .../swift-protobuf/v2.2.0/eliza/plugin.sum | 1 + .../swift-protobuf/v2.2.0/petapis/plugin.sum | 1 + .../grpc/swift/v1.27.2/eliza/plugin.sum | 1 + .../grpc/swift/v1.27.2/petapis/plugin.sum | 1 + 32 files changed, 369 insertions(+) create mode 100644 plugins/apple/swift/v1.35.0/.dockerignore create mode 100644 plugins/apple/swift/v1.35.0/Dockerfile create mode 100644 plugins/apple/swift/v1.35.0/buf.plugin.yaml create mode 100644 plugins/apple/swift/v1.35.0/extramoduleimports.patch create mode 100644 plugins/community/sudorandom-connect-openapi/v0.25.2/.dockerignore create mode 100644 plugins/community/sudorandom-connect-openapi/v0.25.2/Dockerfile create mode 100644 plugins/community/sudorandom-connect-openapi/v0.25.2/buf.plugin.yaml create mode 100644 plugins/connectrpc/swift-mocks/v1.2.1/.dockerignore create mode 100644 plugins/connectrpc/swift-mocks/v1.2.1/Dockerfile create mode 100644 plugins/connectrpc/swift-mocks/v1.2.1/buf.plugin.yaml create mode 100644 plugins/connectrpc/swift/v1.2.1/.dockerignore create mode 100644 plugins/connectrpc/swift/v1.2.1/Dockerfile create mode 100644 plugins/connectrpc/swift/v1.2.1/buf.plugin.yaml create mode 100644 plugins/grpc/swift-protobuf/v2.2.0/.dockerignore create mode 100644 plugins/grpc/swift-protobuf/v2.2.0/Dockerfile create mode 100644 plugins/grpc/swift-protobuf/v2.2.0/Package.resolved create mode 100644 plugins/grpc/swift-protobuf/v2.2.0/buf.plugin.yaml create mode 100644 plugins/grpc/swift/v1.27.2/.dockerignore create mode 100644 plugins/grpc/swift/v1.27.2/Dockerfile create mode 100644 plugins/grpc/swift/v1.27.2/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/apple/swift/v1.35.0/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/apple/swift/v1.35.0/petapis/plugin.sum create mode 100644 tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/petapis/plugin.sum create mode 100644 tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/petapis/plugin.sum create mode 100644 tests/testdata/buf.build/connectrpc/swift/v1.2.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/connectrpc/swift/v1.2.1/petapis/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/petapis/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/swift/v1.27.2/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/grpc/swift/v1.27.2/petapis/plugin.sum diff --git a/plugins/apple/swift/v1.35.0/.dockerignore b/plugins/apple/swift/v1.35.0/.dockerignore new file mode 100644 index 000000000..ff0a69ef1 --- /dev/null +++ b/plugins/apple/swift/v1.35.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!extramoduleimports.patch diff --git a/plugins/apple/swift/v1.35.0/Dockerfile b/plugins/apple/swift/v1.35.0/Dockerfile new file mode 100644 index 000000000..c10958c7c --- /dev/null +++ b/plugins/apple/swift/v1.35.0/Dockerfile @@ -0,0 +1,19 @@ +# syntax=docker/dockerfile:1.19 +FROM swift:6.2.3-bookworm AS build + +RUN apt-get update \ + && apt-get install -y libstdc++-12-dev unzip +COPY --link extramoduleimports.patch /app/extramoduleimports.patch +WORKDIR /app +RUN git clone --depth 1 --branch 1.35.0 https://github.com/apple/swift-protobuf --recursive +WORKDIR /app/swift-protobuf +RUN git apply /app/extramoduleimports.patch +RUN swift build -c release --static-swift-stdlib -Xlinker -s + +FROM gcr.io/distroless/cc-debian12:latest@sha256:329e54034ce498f9c6b345044e8f530c6691f99e94a92446f68c0adf9baa8464 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app/swift-protobuf/.build/release/protoc-gen-swift . +USER nobody +ENTRYPOINT [ "/protoc-gen-swift" ] diff --git a/plugins/apple/swift/v1.35.0/buf.plugin.yaml b/plugins/apple/swift/v1.35.0/buf.plugin.yaml new file mode 100644 index 000000000..cf9507612 --- /dev/null +++ b/plugins/apple/swift/v1.35.0/buf.plugin.yaml @@ -0,0 +1,21 @@ +version: v1 +name: buf.build/apple/swift +plugin_version: v1.35.0 +source_url: https://github.com/apple/swift-protobuf +integration_guide_url: https://github.com/apple/swift-protobuf#getting-started +description: Base types for Swift. Generates message and enum types. +output_languages: + - swift +registry: + swift: + deps: + - source: https://github.com/apple/swift-protobuf.git + package: swift-protobuf + swift_versions: [ ".v5", ".v6" ] + products: [ SwiftProtobuf ] + version: 1.35.0 + opts: + - Visibility=Public + - FileNaming=PathToUnderscores +spdx_license_id: Apache-2.0 +license_url: https://github.com/apple/swift-protobuf/blob/1.35.0/LICENSE.txt diff --git a/plugins/apple/swift/v1.35.0/extramoduleimports.patch b/plugins/apple/swift/v1.35.0/extramoduleimports.patch new file mode 100644 index 000000000..91b7a3495 --- /dev/null +++ b/plugins/apple/swift/v1.35.0/extramoduleimports.patch @@ -0,0 +1,63 @@ +diff --git a/Sources/protoc-gen-swift/FileGenerator.swift b/Sources/protoc-gen-swift/FileGenerator.swift +index f0cddb24..e5864211 100644 +--- a/Sources/protoc-gen-swift/FileGenerator.swift ++++ b/Sources/protoc-gen-swift/FileGenerator.swift +@@ -149,6 +149,14 @@ class FileGenerator { + return + } + ++ let neededCustomImports = generatorOptions.extraModuleImports ++ if !neededCustomImports.isEmpty { ++ p.print() ++ for i in neededCustomImports { ++ p.print("import \(i)\n") ++ } ++ } ++ + p.print() + generateVersionCheck(printer: &p) + +diff --git a/Sources/protoc-gen-swift/GeneratorOptions.swift b/Sources/protoc-gen-swift/GeneratorOptions.swift +index 3224e138..8bfc1ce5 100644 +--- a/Sources/protoc-gen-swift/GeneratorOptions.swift ++++ b/Sources/protoc-gen-swift/GeneratorOptions.swift +@@ -64,6 +64,7 @@ class GeneratorOptions { + } + } + ++ let extraModuleImports: [String] + let outputNaming: OutputNaming + let protoToModuleMappings: ProtoFileToModuleMappings + let visibility: Visibility +@@ -74,6 +75,7 @@ class GeneratorOptions { + let visibilitySourceSnippet: String + + init(parameter: any CodeGeneratorParameter) throws { ++ var externalModuleImports: [String] = [] + var outputNaming: OutputNaming = .fullPath + var moduleMapPath: String? + var visibility: Visibility = .internal +@@ -146,6 +148,15 @@ class GeneratorOptions { + value: pair.value + ) + } ++ case "ExtraModuleImports": ++ if !pair.value.isEmpty { ++ externalModuleImports.append(pair.value) ++ } else { ++ throw GenerationError.invalidParameterValue( ++ name: pair.key, ++ value: pair.value ++ ) ++ } + default: + throw GenerationError.unknownParameter(name: pair.key) + } +@@ -179,6 +190,7 @@ class GeneratorOptions { + visibilitySourceSnippet = "package " + } + ++ self.extraModuleImports = externalModuleImports + self.experimentalStripNonfunctionalCodegen = experimentalStripNonfunctionalCodegen + + switch (implementationOnlyImports, useAccessLevelOnImports) { diff --git a/plugins/community/sudorandom-connect-openapi/v0.25.2/.dockerignore b/plugins/community/sudorandom-connect-openapi/v0.25.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.25.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/sudorandom-connect-openapi/v0.25.2/Dockerfile b/plugins/community/sudorandom-connect-openapi/v0.25.2/Dockerfile new file mode 100644 index 000000000..d12a0e45f --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.25.2/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.19 +FROM --platform=$BUILDPLATFORM golang:1.26.0-bookworm 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" -tags remote_plugin -trimpath github.com/sudorandom/protoc-gen-connect-openapi@v0.25.2 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-openapi /go/bin/protoc-gen-connect-openapi || true + +FROM scratch +COPY --from=build --link /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-connect-openapi . +USER nobody +ENTRYPOINT [ "/protoc-gen-connect-openapi" ] diff --git a/plugins/community/sudorandom-connect-openapi/v0.25.2/buf.plugin.yaml b/plugins/community/sudorandom-connect-openapi/v0.25.2/buf.plugin.yaml new file mode 100644 index 000000000..cf6aea340 --- /dev/null +++ b/plugins/community/sudorandom-connect-openapi/v0.25.2/buf.plugin.yaml @@ -0,0 +1,7 @@ +version: v1 +name: buf.build/community/sudorandom-connect-openapi +plugin_version: v0.25.2 +source_url: https://github.com/sudorandom/protoc-gen-connect-openapi +description: Plugin for generating OpenAPIv3 from Protobufs matching the Connect RPC interface. +spdx_license_id: MIT +license_url: https://github.com/sudorandom/protoc-gen-connect-openapi/blob/v0.25.2/LICENSE diff --git a/plugins/connectrpc/swift-mocks/v1.2.1/.dockerignore b/plugins/connectrpc/swift-mocks/v1.2.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/connectrpc/swift-mocks/v1.2.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/connectrpc/swift-mocks/v1.2.1/Dockerfile b/plugins/connectrpc/swift-mocks/v1.2.1/Dockerfile new file mode 100644 index 000000000..bda6b5965 --- /dev/null +++ b/plugins/connectrpc/swift-mocks/v1.2.1/Dockerfile @@ -0,0 +1,17 @@ +# syntax=docker/dockerfile:1.19 +FROM swift:6.2.3-bookworm AS build + +WORKDIR /app +RUN apt-get update \ + && apt-get install -y libstdc++-12-dev +RUN git clone --depth 1 --branch 1.2.1 https://github.com/connectrpc/connect-swift +WORKDIR /app/connect-swift +RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s + +FROM gcr.io/distroless/cc-debian12:latest@sha256:329e54034ce498f9c6b345044e8f530c6691f99e94a92446f68c0adf9baa8464 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks . +USER nobody +ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ] diff --git a/plugins/connectrpc/swift-mocks/v1.2.1/buf.plugin.yaml b/plugins/connectrpc/swift-mocks/v1.2.1/buf.plugin.yaml new file mode 100644 index 000000000..30b760b4f --- /dev/null +++ b/plugins/connectrpc/swift-mocks/v1.2.1/buf.plugin.yaml @@ -0,0 +1,32 @@ +version: v1 +name: buf.build/connectrpc/swift-mocks +plugin_version: v1.2.1 +source_url: https://github.com/connectrpc/connect-swift +description: Generates mocks that are compatible with Connect-Swift clients. +deps: + - plugin: buf.build/apple/swift:v1.35.0 + - plugin: buf.build/connectrpc/swift:v1.2.1 +output_languages: + - swift +registry: + swift: + deps: + - source: https://github.com/connectrpc/connect-swift.git + package: connect-swift + version: 1.2.1 + products: + - ConnectMocks + platforms: + macos: v10_15 + ios: v12 + tvos: v13 + watchos: v6 + swift_versions: + - .v5 + - .v6 + opts: + - Visibility=Public + - FileNaming=PathToUnderscores +spdx_license_id: Apache-2.0 +license_url: https://github.com/connectrpc/connect-swift/blob/1.2.1/LICENSE +integration_guide_url: https://connectrpc.com/docs/swift/testing diff --git a/plugins/connectrpc/swift/v1.2.1/.dockerignore b/plugins/connectrpc/swift/v1.2.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/connectrpc/swift/v1.2.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/connectrpc/swift/v1.2.1/Dockerfile b/plugins/connectrpc/swift/v1.2.1/Dockerfile new file mode 100644 index 000000000..8266103ef --- /dev/null +++ b/plugins/connectrpc/swift/v1.2.1/Dockerfile @@ -0,0 +1,17 @@ +# syntax=docker/dockerfile:1.19 +FROM swift:6.2.3-bookworm AS build + +WORKDIR /app +RUN apt-get update \ + && apt-get install -y libstdc++-12-dev +RUN git clone --depth 1 --branch 1.2.1 https://github.com/connectrpc/connect-swift +WORKDIR /app/connect-swift +RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s + +FROM gcr.io/distroless/cc-debian12:latest@sha256:329e54034ce498f9c6b345044e8f530c6691f99e94a92446f68c0adf9baa8464 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app/connect-swift/.build/release/protoc-gen-connect-swift . +USER nobody +ENTRYPOINT [ "/protoc-gen-connect-swift" ] diff --git a/plugins/connectrpc/swift/v1.2.1/buf.plugin.yaml b/plugins/connectrpc/swift/v1.2.1/buf.plugin.yaml new file mode 100644 index 000000000..78cc93e20 --- /dev/null +++ b/plugins/connectrpc/swift/v1.2.1/buf.plugin.yaml @@ -0,0 +1,31 @@ +version: v1 +name: buf.build/connectrpc/swift +plugin_version: v1.2.1 +source_url: https://github.com/connectrpc/connect-swift +description: Idiomatic gRPC & Connect RPCs for Swift. +deps: + - plugin: buf.build/apple/swift:v1.35.0 +output_languages: + - swift +registry: + swift: + deps: + - source: https://github.com/connectrpc/connect-swift.git + package: connect-swift + version: 1.2.1 + products: + - Connect + platforms: + macos: v10_15 + ios: v12 + tvos: v13 + watchos: v6 + swift_versions: + - .v5 + - .v6 + opts: + - Visibility=Public + - FileNaming=PathToUnderscores +spdx_license_id: Apache-2.0 +license_url: https://github.com/connectrpc/connect-swift/blob/1.2.1/LICENSE +integration_guide_url: https://connectrpc.com/docs/swift/getting-started diff --git a/plugins/grpc/swift-protobuf/v2.2.0/.dockerignore b/plugins/grpc/swift-protobuf/v2.2.0/.dockerignore new file mode 100644 index 000000000..2b3157b59 --- /dev/null +++ b/plugins/grpc/swift-protobuf/v2.2.0/.dockerignore @@ -0,0 +1,3 @@ +* +!Dockerfile +!Package.resolved diff --git a/plugins/grpc/swift-protobuf/v2.2.0/Dockerfile b/plugins/grpc/swift-protobuf/v2.2.0/Dockerfile new file mode 100644 index 000000000..39da73efc --- /dev/null +++ b/plugins/grpc/swift-protobuf/v2.2.0/Dockerfile @@ -0,0 +1,18 @@ +# syntax=docker/dockerfile:1.19 +FROM swift:6.2.3-bookworm AS build + +RUN apt-get update \ + && apt-get install -y unzip +WORKDIR /app +RUN git clone --depth 1 --branch 2.2.0 https://github.com/grpc/grpc-swift-protobuf --recursive +WORKDIR /app/grpc-swift-protobuf +COPY --link Package.resolved . +RUN swift build -c release --static-swift-stdlib --product protoc-gen-grpc-swift-2 -Xlinker -s --force-resolved-versions + +FROM gcr.io/distroless/cc-debian12:latest@sha256:329e54034ce498f9c6b345044e8f530c6691f99e94a92446f68c0adf9baa8464 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app/grpc-swift-protobuf/.build/release/protoc-gen-grpc-swift-2 . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-swift-2" ] diff --git a/plugins/grpc/swift-protobuf/v2.2.0/Package.resolved b/plugins/grpc/swift-protobuf/v2.2.0/Package.resolved new file mode 100644 index 000000000..7efb23d5f --- /dev/null +++ b/plugins/grpc/swift-protobuf/v2.2.0/Package.resolved @@ -0,0 +1,33 @@ +{ + "originHash" : "405f1b136bba244f838487f7511cabeb00efe492de4f30605c56321b8bb98bff", + "pins" : [ + { + "identity" : "grpc-swift-2", + "kind" : "remoteSourceControl", + "location" : "https://github.com/grpc/grpc-swift-2.git", + "state" : { + "revision" : "531924b28fde0cf7585123c781c6f55cc35ef7fc", + "version" : "2.2.1" + } + }, + { + "identity" : "swift-collections", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-collections.git", + "state" : { + "revision" : "7b847a3b7008b2dc2f47ca3110d8c782fb2e5c7e", + "version" : "1.3.0" + } + }, + { + "identity" : "swift-protobuf", + "kind" : "remoteSourceControl", + "location" : "https://github.com/apple/swift-protobuf.git", + "state" : { + "revision" : "9bbb079b69af9d66470ced85461bf13bb40becac", + "version" : "1.35.0" + } + } + ], + "version" : 3 +} diff --git a/plugins/grpc/swift-protobuf/v2.2.0/buf.plugin.yaml b/plugins/grpc/swift-protobuf/v2.2.0/buf.plugin.yaml new file mode 100644 index 000000000..46ca20f0e --- /dev/null +++ b/plugins/grpc/swift-protobuf/v2.2.0/buf.plugin.yaml @@ -0,0 +1,30 @@ +version: v1 +name: buf.build/grpc/swift-protobuf +plugin_version: v2.2.0 +source_url: https://github.com/grpc/grpc-swift-protobuf +description: Generates Swift client and server stubs for the gRPC framework. +deps: + - plugin: buf.build/apple/swift:v1.35.0 +output_languages: + - swift +registry: + swift: + deps: + - source: https://github.com/grpc/grpc-swift-protobuf.git + package: grpc-swift-protobuf + version: 2.2.0 + products: + - GRPCProtobuf + platforms: + macos: v15 + ios: v18 + tvos: v18 + watchos: v11 + swift_versions: + - .v6 + opts: + - Visibility=Public + - FileNaming=PathToUnderscores +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-swift-protobuf/blob/2.2.0/LICENSE +integration_guide_url: https://swiftpackageindex.com/grpc/grpc-swift-protobuf/2.2.0/documentation/grpcprotobuf diff --git a/plugins/grpc/swift/v1.27.2/.dockerignore b/plugins/grpc/swift/v1.27.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/grpc/swift/v1.27.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/grpc/swift/v1.27.2/Dockerfile b/plugins/grpc/swift/v1.27.2/Dockerfile new file mode 100644 index 000000000..b44740583 --- /dev/null +++ b/plugins/grpc/swift/v1.27.2/Dockerfile @@ -0,0 +1,17 @@ +# syntax=docker/dockerfile:1.19 +FROM swift:6.2.3-bookworm AS build + +RUN apt-get update \ + && apt-get install -y libstdc++-12-dev +WORKDIR /app +RUN git clone --depth 1 --branch 1.27.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-debian12:latest@sha256:329e54034ce498f9c6b345044e8f530c6691f99e94a92446f68c0adf9baa8464 AS base + +FROM scratch +COPY --link --from=base / / +COPY --link --from=build /app/grpc-swift/.build/release/protoc-gen-grpc-swift . +USER nobody +ENTRYPOINT [ "/protoc-gen-grpc-swift" ] diff --git a/plugins/grpc/swift/v1.27.2/buf.plugin.yaml b/plugins/grpc/swift/v1.27.2/buf.plugin.yaml new file mode 100644 index 000000000..c557d4692 --- /dev/null +++ b/plugins/grpc/swift/v1.27.2/buf.plugin.yaml @@ -0,0 +1,23 @@ +version: v1 +name: buf.build/grpc/swift +plugin_version: v1.27.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.35.0 +output_languages: + - swift +registry: + swift: + deps: + - source: https://github.com/grpc/grpc-swift.git + package: grpc-swift + version: 1.27.2 + products: + - GRPC + opts: + - Visibility=Public + - FileNaming=PathToUnderscores +spdx_license_id: Apache-2.0 +license_url: https://github.com/grpc/grpc-swift/blob/1.27.2/LICENSE +integration_guide_url: https://github.com/grpc/grpc-swift#getting-grpc-swift diff --git a/tests/testdata/buf.build/apple/swift/v1.35.0/eliza/plugin.sum b/tests/testdata/buf.build/apple/swift/v1.35.0/eliza/plugin.sum new file mode 100644 index 000000000..f88e223d3 --- /dev/null +++ b/tests/testdata/buf.build/apple/swift/v1.35.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:ep7eRBaCZYegnNuYt01ISHnPmoQQfYD3cOiayRryTIU= diff --git a/tests/testdata/buf.build/apple/swift/v1.35.0/petapis/plugin.sum b/tests/testdata/buf.build/apple/swift/v1.35.0/petapis/plugin.sum new file mode 100644 index 000000000..fbd5d63f3 --- /dev/null +++ b/tests/testdata/buf.build/apple/swift/v1.35.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:o+/kvnlzpyklvikaJbtQBh4B02JI/Nk5DJU5q12mlZw= diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/eliza/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/eliza/plugin.sum new file mode 100644 index 000000000..b2078df64 --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:bfGIUhYwyjEaVR7OEPgI7au+mx+AM7kC8eo+1ET+VTM= diff --git a/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/petapis/plugin.sum b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/petapis/plugin.sum new file mode 100644 index 000000000..00e6d40b1 --- /dev/null +++ b/tests/testdata/buf.build/community/sudorandom-connect-openapi/v0.25.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:tXvqQAI2yeM8+7VlRR4LY5WOPVz6elhwUNQjC7wJpeM= diff --git a/tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/eliza/plugin.sum new file mode 100644 index 000000000..e6bdf5ac0 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:IFskm5Iu3LzqVRrv3i09NlJdy7N8s00Wymd+jnu80yI= diff --git a/tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/petapis/plugin.sum new file mode 100644 index 000000000..65c6a2d32 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/swift-mocks/v1.2.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:24C0oBcfopWOWEbwUeY4S5TimRpKlB8ESoS2UjINjm4= diff --git a/tests/testdata/buf.build/connectrpc/swift/v1.2.1/eliza/plugin.sum b/tests/testdata/buf.build/connectrpc/swift/v1.2.1/eliza/plugin.sum new file mode 100644 index 000000000..4b29dda7e --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/swift/v1.2.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:6osQB7bm0YcckpFxzK/xT2Cvj9mECNDCM+8WJxW8qI8= diff --git a/tests/testdata/buf.build/connectrpc/swift/v1.2.1/petapis/plugin.sum b/tests/testdata/buf.build/connectrpc/swift/v1.2.1/petapis/plugin.sum new file mode 100644 index 000000000..a8b5f97e4 --- /dev/null +++ b/tests/testdata/buf.build/connectrpc/swift/v1.2.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:0ab7wntSWxsB1ZdQOvDzZOhtiTMzeKpUqXf2GQ7VeYw= diff --git a/tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/eliza/plugin.sum b/tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/eliza/plugin.sum new file mode 100644 index 000000000..104561e7d --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:t5ycbVWI4y9Z5KuSJqQ4bQPdpHrWwVbMjESFbawChEE= diff --git a/tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/petapis/plugin.sum b/tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/petapis/plugin.sum new file mode 100644 index 000000000..80263ca73 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift-protobuf/v2.2.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:icvJdhaYuOrR7ZCJZXU4y9CqvP1LJnJ+T7nvYk7SFuo= diff --git a/tests/testdata/buf.build/grpc/swift/v1.27.2/eliza/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.27.2/eliza/plugin.sum new file mode 100644 index 000000000..a45617084 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.27.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:klAEUf7WFX/+TSOOUy7F75AMxFT6Xb3LNOx6aL9DYn0= diff --git a/tests/testdata/buf.build/grpc/swift/v1.27.2/petapis/plugin.sum b/tests/testdata/buf.build/grpc/swift/v1.27.2/petapis/plugin.sum new file mode 100644 index 000000000..b4522b666 --- /dev/null +++ b/tests/testdata/buf.build/grpc/swift/v1.27.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:tVvtyf7StUea61DCqt0D6mKsji3dVZxna8snGt78kEA=