Skip to content

Commit a1aa982

Browse files
authored
Bump grpc-swift-2 depenendency requirement (#91)
Motivation: A recent release of grpc-swift-2 added a few sendable annotations to the generated code. The expected code in our tests is now incorrect so CI is failing. Modifications: - Bump version - Update test expectations - Regenerate Result: CI passes
1 parent 782f2b4 commit a1aa982

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ let products: [Product] = [
3939
let dependencies: [Package.Dependency] = [
4040
.package(
4141
url: "https://github.com/grpc/grpc-swift-2.git",
42-
from: "2.0.0"
42+
from: "2.2.1"
4343
),
4444
.package(
4545
url: "https://github.com/apple/swift-protobuf.git",

Tests/GRPCProtobufCodeGenTests/ProtobufCodeGeneratorTests.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ struct ProtobufCodeGeneratorTests {
104104
105105
/// Namespace containing generated types for the "test.TestService" service.
106106
@available(\(expectedAvailability), *)
107-
\(access) enum Test_TestService {
107+
\(access) enum Test_TestService: Sendable {
108108
/// Service descriptor for the "test.TestService" service.
109109
\(access) static let descriptor = GRPCCore.ServiceDescriptor(fullyQualifiedService: "test.TestService")
110110
/// Namespace for method metadata.
111-
\(access) enum Method {
111+
\(access) enum Method: Sendable {
112112
/// Namespace for "Unary" metadata.
113-
\(access) enum Unary {
113+
\(access) enum Unary: Sendable {
114114
/// Request type for "Unary".
115115
\(access) typealias Input = Test_TestInput
116116
/// Response type for "Unary".
@@ -122,7 +122,7 @@ struct ProtobufCodeGeneratorTests {
122122
)
123123
}
124124
/// Namespace for "ClientStreaming" metadata.
125-
\(access) enum ClientStreaming {
125+
\(access) enum ClientStreaming: Sendable {
126126
/// Request type for "ClientStreaming".
127127
\(access) typealias Input = Test_TestInput
128128
/// Response type for "ClientStreaming".
@@ -134,7 +134,7 @@ struct ProtobufCodeGeneratorTests {
134134
)
135135
}
136136
/// Namespace for "ServerStreaming" metadata.
137-
\(access) enum ServerStreaming {
137+
\(access) enum ServerStreaming: Sendable {
138138
/// Request type for "ServerStreaming".
139139
\(access) typealias Input = Test_TestInput
140140
/// Response type for "ServerStreaming".
@@ -146,7 +146,7 @@ struct ProtobufCodeGeneratorTests {
146146
)
147147
}
148148
/// Namespace for "BidirectionalStreaming" metadata.
149-
\(access) enum BidirectionalStreaming {
149+
\(access) enum BidirectionalStreaming: Sendable {
150150
/// Request type for "BidirectionalStreaming".
151151
\(access) typealias Input = Test_TestInput
152152
/// Response type for "BidirectionalStreaming".

Tests/GRPCProtobufTests/Errors/Generated/error-service.grpc.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@ internal import SwiftProtobuf
3131

3232
/// Namespace containing generated types for the "ErrorService" service.
3333
@available(gRPCSwiftProtobuf 2.0, *)
34-
internal enum ErrorService {
34+
internal enum ErrorService: Sendable {
3535
/// Service descriptor for the "ErrorService" service.
3636
internal static let descriptor = GRPCCore.ServiceDescriptor(fullyQualifiedService: "ErrorService")
3737
/// Namespace for method metadata.
38-
internal enum Method {
38+
internal enum Method: Sendable {
3939
/// Namespace for "ThrowError" metadata.
40-
internal enum ThrowError {
40+
internal enum ThrowError: Sendable {
4141
/// Request type for "ThrowError".
4242
internal typealias Input = ThrowInput
4343
/// Response type for "ThrowError".

0 commit comments

Comments
 (0)