Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions plugins/grpc/swift-protobuf/v2.2.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
*
!Dockerfile
!Package.resolved
18 changes: 18 additions & 0 deletions plugins/grpc/swift-protobuf/v2.2.1/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# syntax=docker/dockerfile:1.19
FROM swift:6.2.4-bookworm AS build

RUN apt-get update \
&& apt-get install -y unzip
WORKDIR /app
RUN git clone --depth 1 --branch 2.2.1 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" ]
33 changes: 33 additions & 0 deletions plugins/grpc/swift-protobuf/v2.2.1/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 30 additions & 0 deletions plugins/grpc/swift-protobuf/v2.2.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: v1
name: buf.build/grpc/swift-protobuf
plugin_version: v2.2.1
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.36.1
output_languages:
- swift
registry:
swift:
deps:
- source: https://github.com/grpc/grpc-swift-protobuf.git
package: grpc-swift-protobuf
version: 2.2.1
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.1/LICENSE
integration_guide_url: https://swiftpackageindex.com/grpc/grpc-swift-protobuf/2.2.1/documentation/grpcprotobuf
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like this link 404s. https://swiftpackageindex.com/grpc/grpc-swift-protobuf/main/documentation/grpcprotobuf seems to work, but I can't figure out if there's some way to avoid main and use a specific tag?

Suggested change
integration_guide_url: https://swiftpackageindex.com/grpc/grpc-swift-protobuf/2.2.1/documentation/grpcprotobuf
integration_guide_url: https://swiftpackageindex.com/grpc/grpc-swift-protobuf/main/documentation/grpcprotobuf

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is ok for now. I'm wondering if there's a delay or a separate publish step which is required to get it out there.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:H1L2+dsAzxe/ws+/A+IrA6i90XNPvCUzQ2XzLsRGfWI=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:0NpEEqxBXr2NItKYA/fHLsnwN1eqJFEVakuZ2Wao9Yk=
Loading