Build Information
Successful build of swift-aws-lambda-runtime, reference 0.5.2 (699ada
), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 15:45:26 UTC.
Swift 6 data race errors: 4
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Build Log
========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-aws-lambda-runtime.git
Reference: 0.5.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swift-server/swift-aws-lambda-runtime
* tag 0.5.2 -> FETCH_HEAD
HEAD is now at 699ada1 Add guards for code that relies on _Concurrency (#237)
Cloned https://github.com/swift-server/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
699ada1724459582303c15aae64fa12ca4d33809
SUCCESS checkout https://github.com/swift-server/swift-aws-lambda-runtime.git at 0.5.2
Fetching https://github.com/swift-server/swift-backtrace.git
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/apple/swift-log.git from cache
[1/631] Fetching swift-backtrace
Fetched https://github.com/swift-server/swift-backtrace.git from cache (0.90s)
Fetched https://github.com/apple/swift-log.git from cache (0.90s)
Fetched https://github.com/apple/swift-nio.git from cache (0.91s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (1.55s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.44s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.0 (0.65s)
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-atomics.git from cache
Fetched https://github.com/apple/swift-atomics.git from cache (0.68s)
Fetched https://github.com/apple/swift-system.git from cache (0.70s)
Fetched https://github.com/apple/swift-collections.git from cache (0.70s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (1.17s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.45s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.69s)
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Creating working copy for https://github.com/swift-server/swift-backtrace.git
Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.5
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "swift-aws-lambda-runtime",
"name": "swift-aws-lambda-runtime",
"url": "https://github.com/swift-server/swift-aws-lambda-runtime.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-aws-lambda-runtime",
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio.git",
"version": "2.82.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.3",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "swift-backtrace",
"name": "swift-backtrace",
"url": "https://github.com/swift-server/swift-backtrace.git",
"version": "1.3.5",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-backtrace",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/swift-server/swift-aws-lambda-runtime.git from cache
Fetched https://github.com/swift-server/swift-aws-lambda-runtime.git from cache (0.56s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio.git from cache
Fetching https://github.com/swift-server/swift-backtrace.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.52s)
Fetched https://github.com/swift-server/swift-backtrace.git from cache (0.78s)
Fetched https://github.com/apple/swift-nio.git from cache (0.79s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (0.87s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.03s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.0 (0.04s)
Fetching https://github.com/apple/swift-collections.git from cache
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.44s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.49s)
Fetched https://github.com/apple/swift-collections.git from cache (0.51s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.58s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (0.03s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.03s)
Creating working copy for https://github.com/swift-server/swift-backtrace.git
Working copy of https://github.com/swift-server/swift-backtrace.git resolved at 1.3.5
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/swift-server/swift-aws-lambda-runtime.git
Working copy of https://github.com/swift-server/swift-aws-lambda-runtime.git resolved at 0.5.2 (699ada1)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
warning: '.resolve-product-dependencies': dependency 'swift-aws-lambda-runtime' is not used by any target
Found 3 product dependencies
- swift-nio
- swift-log
- swift-backtrace
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.1
Building package at path: $PWD
https://github.com/swift-server/swift-aws-lambda-runtime.git
https://github.com/swift-server/swift-aws-lambda-runtime.git
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.32.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-backtrace",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-backtrace.git"
}
],
"manifest_display_name" : "swift-aws-lambda-runtime",
"name" : "swift-aws-lambda-runtime",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AWSLambdaRuntime",
"targets" : [
"AWSLambdaRuntime"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaRuntimeCore",
"targets" : [
"AWSLambdaRuntimeCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaEvents",
"targets" : [
"AWSLambdaEvents"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaTesting",
"targets" : [
"AWSLambdaTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StringSample",
"targets" : [
"StringSample"
],
"type" : {
"executable" : null
}
},
{
"name" : "MockServer",
"targets" : [
"MockServer"
],
"type" : {
"executable" : null
}
},
{
"name" : "CodableSample",
"targets" : [
"CodableSample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "StringSample",
"module_type" : "SwiftTarget",
"name" : "StringSample",
"path" : "Sources/StringSample",
"product_memberships" : [
"StringSample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "executable"
},
{
"c99name" : "MockServer",
"module_type" : "SwiftTarget",
"name" : "MockServer",
"path" : "Sources/MockServer",
"product_dependencies" : [
"NIOHTTP1",
"NIO"
],
"product_memberships" : [
"MockServer"
],
"sources" : [
"main.swift"
],
"type" : "executable"
},
{
"c99name" : "CodableSample",
"module_type" : "SwiftTarget",
"name" : "CodableSample",
"path" : "Sources/CodableSample",
"product_memberships" : [
"CodableSample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "executable"
},
{
"c99name" : "AWSLambdaTestingTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaTestingTests",
"path" : "Tests/AWSLambdaTestingTests",
"sources" : [
"Tests.swift"
],
"target_dependencies" : [
"AWSLambdaTesting"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaTesting",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaTesting",
"path" : "Sources/AWSLambdaTesting",
"product_dependencies" : [
"NIO"
],
"product_memberships" : [
"AWSLambdaTesting"
],
"sources" : [
"Lambda+Testing.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntimeTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeTests",
"path" : "Tests/AWSLambdaRuntimeTests",
"sources" : [
"Lambda+CodeableTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore",
"AWSLambdaRuntime"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCoreTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCoreTests",
"path" : "Tests/AWSLambdaRuntimeCoreTests",
"product_dependencies" : [
"NIOTestUtils",
"NIOFoundationCompat"
],
"sources" : [
"LambdaHandlerTest.swift",
"LambdaLifecycleTest.swift",
"LambdaRunnerTest.swift",
"LambdaRuntimeClientTest.swift",
"LambdaTest.swift",
"MockLambdaServer.swift",
"Utils.swift",
"UtilsTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCore",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCore",
"path" : "Sources/AWSLambdaRuntimeCore",
"product_dependencies" : [
"Logging",
"Backtrace",
"NIOHTTP1",
"NIO",
"_NIOConcurrency"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaRuntimeCore",
"AWSLambdaTesting",
"StringSample",
"CodableSample"
],
"sources" : [
"HTTPClient.swift",
"Lambda+LocalServer.swift",
"Lambda+String.swift",
"Lambda.swift",
"LambdaConfiguration.swift",
"LambdaContext.swift",
"LambdaHandler.swift",
"LambdaLifecycle.swift",
"LambdaRunner.swift",
"LambdaRuntimeClient.swift",
"Utils.swift"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntime",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntime",
"path" : "Sources/AWSLambdaRuntime",
"product_dependencies" : [
"NIO",
"NIOFoundationCompat"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaTesting",
"StringSample",
"CodableSample"
],
"sources" : [
"Context+Foundation.swift",
"Lambda+Codable.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaEventsTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaEventsTests",
"path" : "Tests/AWSLambdaEventsTests",
"sources" : [
"ALBTests.swift",
"APIGateway+V2Tests.swift",
"APIGatewayTests.swift",
"AppSyncTests.swift",
"CloudwatchTests.swift",
"DynamoDBTests.swift",
"S3Tests.swift",
"SESTests.swift",
"SNSTests.swift",
"SQSTests.swift",
"Utils/Base64Tests.swift",
"Utils/DateWrapperTests.swift"
],
"target_dependencies" : [
"AWSLambdaEvents"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaEvents",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaEvents",
"path" : "Sources/AWSLambdaEvents",
"product_memberships" : [
"AWSLambdaEvents"
],
"sources" : [
"ALB.swift",
"APIGateway+V2.swift",
"APIGateway.swift",
"AWSRegion.swift",
"AppSync.swift",
"Cloudwatch.swift",
"DynamoDB.swift",
"S3.swift",
"SES.swift",
"SNS.swift",
"SQS.swift",
"Utils/Base64.swift",
"Utils/DateWrappers.swift",
"Utils/HTTP.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/60] Write sources
[2/60] Copying PrivacyInfo.xcprivacy
[2/60] Write StringSample-entitlement.plist
[2/60] Write sources
[15/60] Write MockServer-entitlement.plist
[16/60] Write sources
[19/60] Write CodableSample-entitlement.plist
[20/60] Compiling CNIOWindows WSAStartup.c
[20/60] Compiling CNIOWindows shim.c
[21/60] Compiling CNIOWASI CNIOWASI.c
[23/60] Compiling CNIOLinux shim.c
[24/60] Compiling CNIOLinux liburing_shims.c
[25/60] Write swift-version-2F0A5646E1D333AE.txt
[26/60] Compiling CBacktrace sort.c
[27/60] Compiling CBacktrace state.c
[28/60] Compiling CBacktrace simple.c
[29/60] Compiling _AtomicsShims.c
[30/71] Compiling CNIOLLHTTP c_nio_http.c
[31/71] Compiling CBacktrace print.c
[32/89] Compiling CBacktrace posix.c
[33/89] Compiling CBacktrace mmapio.c
[34/89] Compiling CBacktrace mmap.c
[35/89] Compiling CBacktrace fileline.c
[36/89] Compiling CBacktrace elf.c
[37/89] Compiling CNIOLLHTTP c_nio_api.c
[38/89] Compiling CBacktrace dwarf.c
[39/89] Compiling CBacktrace backtrace.c
[40/89] Write sources
[43/89] Compiling CNIOLLHTTP c_nio_llhttp.c
[44/89] Write sources
[47/89] Compiling CBacktrace atomic.c
[48/125] Compiling CNIODarwin shim.c
[50/125] Compiling _NIOBase64 Base64.swift
[51/125] Emitting module _NIOBase64
[52/125] Compiling Atomics AtomicMemoryOrderings.swift
[53/125] Compiling Atomics DoubleWord.swift
[54/126] Compiling AWSLambdaEvents APIGateway.swift
[55/126] Compiling AWSLambdaEvents AWSRegion.swift
[56/126] Compiling Atomics UnsafeAtomic.swift
[57/126] Compiling Atomics UnsafeAtomicLazyReference.swift
[58/126] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[59/126] Compiling Atomics ManagedAtomic.swift
[60/126] Compiling Atomics ManagedAtomicLazyReference.swift
[61/126] Compiling AWSLambdaEvents AppSync.swift
[62/126] Compiling AWSLambdaEvents Cloudwatch.swift
[63/126] Compiling Backtrace Demangle.swift
[64/126] Emitting module Backtrace
[65/126] Compiling Backtrace Backtrace.swift
[66/126] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[67/126] Compiling Atomics AtomicStorage.swift
[68/126] Compiling Atomics AtomicValue.swift
[75/128] Compiling _NIODataStructures _TinyArray.swift
[76/128] Compiling _NIODataStructures PriorityQueue.swift
[77/128] Compiling AWSLambdaEvents ALB.swift
[78/128] Compiling AWSLambdaEvents APIGateway+V2.swift
[79/128] Emitting module InternalCollectionsUtilities
[80/128] Compiling AWSLambdaEvents DynamoDB.swift
[81/128] Compiling AWSLambdaEvents S3.swift
[82/128] Compiling Atomics PointerConformances.swift
[83/128] Compiling Atomics Primitives.native.swift
[84/128] Compiling Atomics IntegerOperations.swift
[85/128] Compiling Atomics Unmanaged extensions.swift
[86/128] Compiling _NIODataStructures Heap.swift
[87/128] Emitting module _NIODataStructures
[94/128] Compiling Logging MetadataProvider.swift
[95/144] Compiling Logging LogHandler.swift
[96/144] Compiling Logging Locks.swift
[97/144] Emitting module Logging
[98/144] Compiling Logging Logging.swift
[99/144] Compiling DequeModule _DequeBuffer.swift
[100/145] Compiling DequeModule Deque+Codable.swift
[101/145] Compiling DequeModule Deque+Collection.swift
[102/145] Emitting module Atomics
[103/145] Compiling DequeModule Deque+CustomReflectable.swift
[104/145] Compiling DequeModule Deque+Descriptions.swift
[105/145] Compiling DequeModule _DequeSlot.swift
[106/145] Compiling DequeModule _DequeBufferHeader.swift
[107/145] Compiling DequeModule Deque+Extras.swift
[108/145] Compiling DequeModule Deque+Hashable.swift
[109/145] Compiling DequeModule Deque._UnsafeHandle.swift
[110/145] Compiling DequeModule Deque.swift
[111/145] Compiling DequeModule Deque+Testing.swift
[112/145] Compiling DequeModule Deque._Storage.swift
[113/145] Compiling DequeModule _UnsafeWrappedBuffer.swift
[114/145] Compiling DequeModule Deque+Equatable.swift
[115/145] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[115/145] Compiling c-nioatomics.c
[121/145] Emitting module DequeModule
[121/145] Compiling c-atomics.c
[123/151] Compiling NIOConcurrencyHelpers lock.swift
[124/151] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[125/151] Compiling NIOConcurrencyHelpers atomics.swift
[126/151] Compiling NIOConcurrencyHelpers NIOLock.swift
[127/151] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[128/151] Emitting module NIOConcurrencyHelpers
[129/212] Compiling NIOCore GlobalSingletons.swift
[130/212] Compiling NIOCore IO.swift
[131/212] Compiling NIOCore IOData.swift
[132/212] Compiling NIOCore IPProtocol.swift
[133/212] Compiling NIOCore IntegerBitPacking.swift
[134/212] Compiling NIOCore IntegerTypes.swift
[135/218] Compiling NIOCore Interfaces.swift
[136/218] Compiling NIOCore Linux.swift
[137/218] Compiling NIOCore MarkedCircularBuffer.swift
[138/218] Compiling NIOCore MulticastChannel.swift
[139/218] Compiling NIOCore NIOAny.swift
[140/218] Compiling NIOCore NIOCloseOnErrorHandler.swift
[141/218] Compiling NIOCore SocketOptionProvider.swift
[142/218] Compiling NIOCore SystemCallHelpers.swift
[143/218] Compiling NIOCore TimeAmount+Duration.swift
[144/218] Compiling NIOCore TypeAssistedChannelHandler.swift
[145/218] Compiling NIOCore UniversalBootstrapSupport.swift
[146/218] Compiling NIOCore Utilities.swift
[147/218] Compiling NIOCore AddressedEnvelope.swift
[148/218] Compiling NIOCore AsyncAwaitSupport.swift
[149/218] Compiling NIOCore AsyncChannel.swift
[150/218] Compiling NIOCore AsyncChannelHandler.swift
[151/218] Compiling NIOCore AsyncChannelInboundStream.swift
[152/218] Compiling NIOCore AsyncChannelOutboundWriter.swift
[153/218] Compiling NIOCore NIOAsyncSequenceProducer.swift
[154/218] Compiling NIOCore Codec.swift
[155/218] Compiling NIOCore ConvenienceOptionSupport.swift
[156/218] Compiling NIOCore DeadChannel.swift
[157/218] Compiling NIOCore DispatchQueue+WithFuture.swift
[158/218] Compiling NIOCore EventLoop+Deprecated.swift
[159/218] Compiling NIOCore EventLoop+SerialExecutor.swift
[160/218] Compiling NIOCore EventLoop.swift
[161/218] Compiling NIOCore NIOLoopBound.swift
[162/218] Compiling NIOCore NIOScheduledCallback.swift
[163/218] Compiling NIOCore NIOSendable.swift
[164/218] Compiling NIOCore RecvByteBufferAllocator.swift
[165/218] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[166/218] Compiling NIOCore SocketAddresses.swift
[167/218] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[168/218] Compiling NIOCore EventLoopFuture+Deprecated.swift
[169/218] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[170/218] Compiling NIOCore EventLoopFuture.swift
[171/218] Compiling NIOCore FileDescriptor.swift
[172/218] Compiling NIOCore FileHandle.swift
[173/218] Compiling NIOCore FileRegion.swift
[174/218] Compiling AWSLambdaEvents Base64.swift
[175/218] Compiling AWSLambdaEvents SQS.swift
[176/218] Compiling AWSLambdaEvents DateWrappers.swift
[177/219] Compiling AWSLambdaEvents SNS.swift
[178/219] Compiling AWSLambdaEvents SES.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaEvents/Cloudwatch.swift:127:13: warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
125 | struct DetailTypeMismatch: Error {
126 | let name: String
127 | let type: Any
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaEvents/Cloudwatch.swift:127:13: warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
125 | struct DetailTypeMismatch: Error {
126 | let name: String
127 | let type: Any
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
128 | }
129 | }
[183/219] Emitting module AWSLambdaEvents
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaEvents/AWSRegion.swift:28:16: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | static var all: [AWSRegion] = [
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | Self.ap_northeast_1,
30 | Self.ap_northeast_2,
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaEvents/Cloudwatch.swift:127:13: warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
125 | struct DetailTypeMismatch: Error {
126 | let name: String
127 | let type: Any
| `- warning: stored property 'type' of 'Sendable'-conforming struct 'DetailTypeMismatch' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
128 | }
129 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaEvents/AWSRegion.swift:28:16: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | static var all: [AWSRegion] = [
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | Self.ap_northeast_1,
30 | Self.ap_northeast_2,
[185/219] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaEvents/AWSRegion.swift:28:16: warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
26 | }
27 |
28 | static var all: [AWSRegion] = [
| |- warning: static property 'all' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'all' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'all' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
29 | Self.ap_northeast_1,
30 | Self.ap_northeast_2,
[189/219] Compiling NIOCore NIOAsyncWriter.swift
[190/219] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[191/219] Compiling NIOCore BSDSocketAPI.swift
[192/219] Compiling NIOCore ByteBuffer-aux.swift
[193/219] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[194/219] Compiling NIOCore ByteBuffer-conversions.swift
[195/219] Compiling AWSLambdaEvents HTTP.swift
[196/219] Compiling NIOCore Channel.swift
[197/219] Compiling NIOCore ChannelHandler.swift
[198/219] Compiling NIOCore ChannelHandlers.swift
[199/219] Compiling NIOCore ChannelInvoker.swift
[200/219] Compiling NIOCore ChannelOption.swift
[201/219] Compiling NIOCore ChannelPipeline.swift
[202/219] Compiling NIOCore CircularBuffer.swift
[203/219] Compiling NIOCore ByteBuffer-core.swift
[204/219] Compiling NIOCore ByteBuffer-hex.swift
[205/219] Compiling NIOCore ByteBuffer-int.swift
[206/219] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[207/219] Compiling NIOCore ByteBuffer-multi-int.swift
[208/219] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[209/219] Compiling NIOCore ByteBuffer-views.swift
[210/219] Emitting module NIOCore
[211/272] Compiling NIOEmbedded AsyncTestingChannel.swift
[212/272] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[213/272] Emitting module NIOEmbedded
[214/272] Compiling NIOEmbedded Embedded.swift
[215/272] Compiling NIOPosix GetaddrinfoResolver.swift
[216/272] Compiling NIOPosix HappyEyeballs.swift
[217/272] Compiling NIOPosix IO.swift
[218/272] Compiling NIOPosix IntegerBitPacking.swift
[219/272] Compiling NIOPosix IntegerTypes.swift
[220/272] Compiling NIOPosix Linux.swift
[221/277] Emitting module NIOPosix
[222/277] Compiling NIOPosix UnsafeTransfer.swift
[223/277] Compiling NIOPosix Utilities.swift
[224/277] Compiling NIOPosix VsockAddress.swift
[225/277] Compiling NIOPosix VsockChannelEvents.swift
[226/277] Compiling NIOPosix resource_bundle_accessor.swift
[227/277] Compiling NIOPosix SelectorKqueue.swift
[228/277] Compiling NIOPosix SelectorUring.swift
[229/277] Compiling NIOPosix ServerSocket.swift
[230/277] Compiling NIOPosix Socket.swift
[231/277] Compiling NIOPosix SocketChannel.swift
[232/277] Compiling NIOPosix BSDSocketAPICommon.swift
[233/277] Compiling NIOPosix BSDSocketAPIPosix.swift
[234/277] Compiling NIOPosix BSDSocketAPIWindows.swift
[235/277] Compiling NIOPosix BaseSocket.swift
[236/277] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[237/277] Compiling NIOPosix BaseSocketChannel.swift
[238/277] Compiling NIOPosix PendingDatagramWritesManager.swift
[239/277] Compiling NIOPosix PendingWritesManager.swift
[240/277] Compiling NIOPosix PipeChannel.swift
[241/277] Compiling NIOPosix PipePair.swift
[242/277] Compiling NIOPosix Pool.swift
[243/277] Compiling NIOPosix LinuxCPUSet.swift
[244/277] Compiling NIOPosix LinuxUring.swift
[245/277] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[246/277] Compiling NIOPosix NIOThreadPool.swift
[247/277] Compiling NIOPosix NonBlockingFileIO.swift
[248/277] Compiling NIOPosix PooledRecvBufferAllocator.swift
[249/277] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[250/277] Compiling NIOPosix PosixSingletons.swift
[251/277] Compiling NIOPosix RawSocketBootstrap.swift
[252/277] Compiling NIOPosix Resolver.swift
[253/277] Compiling NIOPosix Selectable.swift
[254/277] Compiling NIOPosix SelectableChannel.swift
[255/277] Compiling NIOPosix SelectableEventLoop.swift
[256/277] Compiling NIOPosix SelectorEpoll.swift
[257/277] Compiling NIOPosix SelectorGeneric.swift
[258/277] Compiling NIOPosix SocketProtocols.swift
[259/277] Compiling NIOPosix System.swift
[260/277] Compiling NIOPosix Thread.swift
[261/277] Compiling NIOPosix ThreadPosix.swift
[262/277] Compiling NIOPosix ThreadWindows.swift
[263/277] Compiling NIOPosix BaseStreamSocketChannel.swift
[264/277] Compiling NIOPosix Bootstrap.swift
[265/277] Compiling NIOPosix ControlMessage.swift
[266/277] Compiling NIOPosix DatagramVectorReadManager.swift
[267/277] Compiling NIOPosix Errors+Any.swift
[268/277] Compiling NIOPosix FileDescriptor.swift
[269/279] Compiling NIO Exports.swift
[270/279] Emitting module NIO
[271/303] Emitting module _NIOConcurrency
[272/303] Compiling _NIOConcurrency Empty.swift
[273/303] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[274/303] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[275/303] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[276/303] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[277/304] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[278/304] Emitting module NIOFoundationCompat
[279/304] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[280/304] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[281/304] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[282/304] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[283/304] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[284/304] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[285/304] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[286/304] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[287/304] Compiling NIOHTTP1 HTTPEncoder.swift
[288/304] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[289/304] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[290/304] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[291/304] Compiling NIOHTTP1 HTTPTypes.swift
[292/304] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[293/304] Compiling NIOHTTP1 ByteCollectionUtils.swift
[294/304] Compiling NIOHTTP1 HTTPDecoder.swift
[295/304] Emitting module NIOHTTP1
[296/317] Emitting module MockServer
[297/317] Compiling MockServer main.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:37:49: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
35 | .childChannelInitializer { channel in
36 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
37 | channel.pipeline.addHandler(HTTPHandler(mode: self.mode))
| `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
38 | }
39 | }
:
48 | }
49 |
50 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
51 | public typealias InboundIn = HTTPServerRequestPart
52 | public typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:117:22: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
48 | }
49 |
50 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
51 | public typealias InboundIn = HTTPServerRequestPart
52 | public typealias OutboundOut = HTTPServerResponsePart
:
115 |
116 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
117 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
118 | }
119 |
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:124:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
48 | }
49 |
50 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
51 | public typealias InboundIn = HTTPServerRequestPart
52 | public typealias OutboundOut = HTTPServerResponsePart
:
122 | buffer.writeString(b)
123 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
124 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
125 | }
126 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:130:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
48 | }
49 |
50 | internal final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
51 | public typealias InboundIn = HTTPServerRequestPart
52 | public typealias OutboundOut = HTTPServerResponsePart
:
128 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
129 | if case .failure(let error) = result {
130 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
131 | }
132 | }
[297/317] Write Objects.LinkFileList
[299/317] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[300/317] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[301/317] Compiling AWSLambdaRuntimeCore Lambda.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:82:72: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol
80 | // for testing and internal use
81 | internal static func run(configuration: Configuration = .init(), handler: Handler) -> Result<Int, Error> {
82 | self.run(configuration: configuration, factory: { $0.eventLoop.makeSucceededFuture(handler) })
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol
83 | }
84 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:29: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol
94 | } catch {
95 | promise.fail(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:41: warning: capture of 'factory' with non-sendable type '(Lambda.InitializationContext) throws -> any Lambda.Handler' (aka '(Lambda.InitializationContext) throws -> any ByteBufferLambdaHandler') in a '@Sendable' closure
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| |- warning: capture of 'factory' with non-sendable type '(Lambda.InitializationContext) throws -> any Lambda.Handler' (aka '(Lambda.InitializationContext) throws -> any ByteBufferLambdaHandler') in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
94 | } catch {
95 | promise.fail(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:93:49: warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a '@Sendable' closure
91 | Lambda.defaultOffloadQueue.async {
92 | do {
93 | promise.succeed(try factory(context))
| `- warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a '@Sendable' closure
94 | } catch {
95 | promise.fail(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:24:24: note: class 'InitializationContext' does not conform to the 'Sendable' protocol
22 | /// Lambda runtime initialization context.
23 | /// The Lambda runtime generates and passes the `InitializationContext` to the Lambda factory as an argument.
24 | public final class InitializationContext {
| `- note: class 'InitializationContext' does not conform to the 'Sendable' protocol
25 | /// `Logger` to log with
26 | ///
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:105:23: warning: 'install()' is deprecated: This is no longer needed in Swift 5.9
103 | internal static func run(configuration: Configuration = .init(), factory: @escaping HandlerFactory) -> Result<Int, Error> {
104 | let _run = { (configuration: Configuration, factory: @escaping HandlerFactory) -> Result<Int, Error> in
105 | Backtrace.install()
| `- warning: 'install()' is deprecated: This is no longer needed in Swift 5.9
106 | var logger = Logger(label: "Lambda")
107 | logger.logLevel = configuration.general.logLevel
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:120:21: warning: capture of 'lifecycle' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
118 |
119 | lifecycle.start().flatMap {
120 | lifecycle.shutdownFuture
| `- warning: capture of 'lifecycle' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
121 | }.whenComplete { lifecycleResult in
122 | #if DEBUG
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:23:24: note: class 'Lifecycle' does not conform to the 'Sendable' protocol
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:130:21: warning: mutation of captured var 'result' in concurrently-executing code
128 | }
129 | }
130 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code
131 | }
132 | }
[302/317] Compiling AWSLambdaRuntimeCore Lambda+String.swift
[303/318] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[304/318] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:49:18: warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol
47 | // This can happen if the factory uses a library (let's say a database client) that manages its own threads/loops
48 | // for whatever reason and returns a future that originated from that foreign EventLoop.
49 | .hop(to: self.eventLoop)
| `- warning: type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') does not conform to the 'Sendable' protocol
50 | .peekError { error in
51 | self.runtimeClient.reportInitializationError(logger: logger, error: error).peekError { reportingError in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:67:17: warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a '@Sendable' closure
19 | extension Lambda {
20 | /// LambdaRunner manages the Lambda runtime workflow, or business logic.
21 | internal final class Runner {
| `- note: class 'Runner' does not conform to the 'Sendable' protocol
22 | private let runtimeClient: RuntimeClient
23 | private let eventLoop: EventLoop
:
65 | }.flatMap { invocation, event in
66 | // 2. send invocation to handler
67 | self.isGettingNextInvocation = false
| `- warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a '@Sendable' closure
68 | let context = Context(logger: logger,
69 | eventLoop: self.eventLoop,
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:72:70: warning: capture of 'handler' with non-sendable type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') in a '@Sendable' closure
70 | allocator: self.allocator,
71 | invocation: invocation)
72 | logger.debug("sending invocation to lambda handler \(handler)")
| `- warning: capture of 'handler' with non-sendable type 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') in a '@Sendable' closure
73 | return handler.handle(context: context, event: event)
74 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:72:70: warning: implicit capture of 'handler' requires that 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') conforms to 'Sendable'; this is an error in the Swift 6 language mode
70 | allocator: self.allocator,
71 | invocation: invocation)
72 | logger.debug("sending invocation to lambda handler \(handler)")
| `- warning: implicit capture of 'handler' requires that 'any Lambda.Handler' (aka 'any ByteBufferLambdaHandler') conforms to 'Sendable'; this is an error in the Swift 6 language mode
73 | return handler.handle(context: context, event: event)
74 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:87:17: warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a '@Sendable' closure
19 | extension Lambda {
20 | /// LambdaRunner manages the Lambda runtime workflow, or business logic.
21 | internal final class Runner {
| `- note: class 'Runner' does not conform to the 'Sendable' protocol
22 | private let runtimeClient: RuntimeClient
23 | private let eventLoop: EventLoop
:
85 | }.flatMap { invocation, result in
86 | // 3. report results to runtime engine
87 | self.runtimeClient.reportResults(logger: logger, invocation: invocation, result: result).peekError { error in
| `- warning: capture of 'self' with non-sendable type 'Lambda.Runner' in a '@Sendable' closure
88 | logger.error("could not report results to lambda runtime engine: \(error)")
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:121:14: warning: type 'Value' does not conform to the 'Sendable' protocol
119 | // callback does not have side effects, failing with original result
120 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
121 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
122 | callback(error)
123 | return self
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:122:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
120 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
121 | self.flatMapError { error in
122 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
123 | return self
124 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:129:14: warning: type 'Value' does not conform to the 'Sendable' protocol
127 | // callback does not have side effects, failing with original result
128 | func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
129 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
130 | let promise = self.eventLoop.makePromise(of: Value.self)
131 | callback(error).whenComplete { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:132:25: warning: type 'Value' does not conform to the 'Sendable' protocol
130 | let promise = self.eventLoop.makePromise(of: Value.self)
131 | callback(error).whenComplete { _ in
132 | promise.completeWith(self)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol
133 | }
134 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:131:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
129 | self.flatMapError { error in
130 | let promise = self.eventLoop.makePromise(of: Value.self)
131 | callback(error).whenComplete { _ in
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
132 | promise.completeWith(self)
133 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:140:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
138 | func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
139 | self.map { value in
140 | callback(.success(value))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
141 | }.flatMapErrorThrowing { error in
142 | callback(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:142:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
140 | callback(.success(value))
141 | }.flatMapErrorThrowing { error in
142 | callback(.failure(error))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
143 | }
144 | }
[305/318] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:75: warning: type 'Self.Out' does not conform to the 'Sendable' protocol
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: type 'Self.Out' does not conform to the 'Sendable' protocol
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:13: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
63 | }
64 | return promise.futureResult
AWSLambdaRuntimeCore.LambdaHandler.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol LambdaHandler {
2 | Self : AWSLambdaRuntimeCore.LambdaHandler}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:34: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:50: warning: capture of 'event' with non-sendable type 'Self.In' in a '@Sendable' closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'event' with non-sendable type 'Self.In' in a '@Sendable' closure
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:73:21: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
71 | self.offloadQueue.async {
72 | do {
73 | try self.syncShutdown(context: context)
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
74 | promise.succeed(())
75 | } catch {
AWSLambdaRuntimeCore.LambdaHandler.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol LambdaHandler {
2 | Self : AWSLambdaRuntimeCore.LambdaHandler}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:73:48: warning: capture of 'context' with non-sendable type 'Lambda.ShutdownContext' in a '@Sendable' closure
71 | self.offloadQueue.async {
72 | do {
73 | try self.syncShutdown(context: context)
| `- warning: capture of 'context' with non-sendable type 'Lambda.ShutdownContext' in a '@Sendable' closure
74 | promise.succeed(())
75 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:132:24: note: class 'ShutdownContext' does not conform to the 'Sendable' protocol
130 | /// Lambda runtime shutdown context.
131 | /// The Lambda runtime generates and passes the `ShutdownContext` to the Lambda handler as an argument.
132 | public final class ShutdownContext {
| `- note: class 'ShutdownContext' does not conform to the 'Sendable' protocol
133 | /// `Logger` to log with
134 | ///
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:118:17: warning: type 'Self.Out' does not conform to the 'Sendable' protocol
116 | public func handle(context: Lambda.Context, event: In) -> EventLoopFuture<Out> {
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
| `- warning: type 'Self.Out' does not conform to the 'Sendable' protocol
119 | try await self.handle(event: event, context: context)
120 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:119:23: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
119 | try await self.handle(event: event, context: context)
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
120 | }
121 | return promise.futureResult
AWSLambdaRuntimeCore.AsyncLambdaHandler.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol AsyncLambdaHandler {
2 | Self : AWSLambdaRuntimeCore.AsyncLambdaHandler}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:119:42: warning: capture of 'event' with non-sendable type 'Self.In' in a '@Sendable' closure
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
119 | try await self.handle(event: event, context: context)
| `- warning: capture of 'event' with non-sendable type 'Self.In' in a '@Sendable' closure
120 | }
121 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:119:58: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
117 | let promise = context.eventLoop.makePromise(of: Out.self)
118 | promise.completeWithTask {
119 | try await self.handle(event: event, context: context)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
120 | }
121 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:130:21: warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
128 | Lambda.run { context -> EventLoopFuture<ByteBufferLambdaHandler> in
129 | let promise = context.eventLoop.makePromise(of: ByteBufferLambdaHandler.self)
130 | promise.completeWithTask {
| `- warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
131 | try await Self(context: context)
132 | }
:
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:131:41: warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a '@Sendable' closure
129 | let promise = context.eventLoop.makePromise(of: ByteBufferLambdaHandler.self)
130 | promise.completeWithTask {
131 | try await Self(context: context)
| `- warning: capture of 'context' with non-sendable type 'Lambda.InitializationContext' in a '@Sendable' closure
132 | }
133 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:24:24: note: class 'InitializationContext' does not conform to the 'Sendable' protocol
22 | /// Lambda runtime initialization context.
23 | /// The Lambda runtime generates and passes the `InitializationContext` to the Lambda factory as an argument.
24 | public final class InitializationContext {
| `- note: class 'InitializationContext' does not conform to the 'Sendable' protocol
25 | /// `Logger` to log with
26 | ///
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:28: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
193 | return self.handle(context: context, event: input).flatMapThrowing { output in
194 | do {
195 | return try self.encode(allocator: context.allocator, value: output)
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
196 | } catch {
197 | throw CodecError.responseEncoding(error)
AWSLambdaRuntimeCore.EventLoopLambdaHandler.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol EventLoopLambdaHandler {
2 | Self : AWSLambdaRuntimeCore.EventLoopLambdaHandler}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:51: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
193 | return self.handle(context: context, event: input).flatMapThrowing { output in
194 | do {
195 | return try self.encode(allocator: context.allocator, value: output)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
[306/318] Compiling AWSLambdaRuntimeCore LambdaLifecycle.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:84:27: warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
82 |
83 | let startupFuture = runner.initialize(logger: logger, factory: self.factory)
84 | startupFuture.flatMap { handler -> EventLoopFuture<(ByteBufferLambdaHandler, Result<Int, Error>)> in
| `- warning: type 'any ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
85 | // after the startup future has succeeded, we have a handler that we can use
86 | // to `run` the lambda.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:217:17: note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
215 | /// - note: This is a low level protocol designed to power the higher level `EventLoopLambdaHandler` and `LambdaHandler` based APIs.
216 | /// Most users are not expected to use this protocol.
217 | public protocol ByteBufferLambdaHandler {
| `- note: protocol 'ByteBufferLambdaHandler' does not conform to the 'Sendable' protocol
218 | /// The Lambda handling method
219 | /// Concrete Lambda handlers implement this method to provide the Lambda functionality.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:87:39: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
85 | // after the startup future has succeeded, we have a handler that we can use
86 | // to `run` the lambda.
87 | let finishedPromise = self.eventLoop.makePromise(of: Int.self)
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
88 | self.state = .active(runner, handler)
89 | self.run(promise: finishedPromise)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:88:38: warning: capture of 'runner' with non-sendable type 'Lambda.Runner' in a '@Sendable' closure
86 | // to `run` the lambda.
87 | let finishedPromise = self.eventLoop.makePromise(of: Int.self)
88 | self.state = .active(runner, handler)
| `- warning: capture of 'runner' with non-sendable type 'Lambda.Runner' in a '@Sendable' closure
89 | self.run(promise: finishedPromise)
90 | return finishedPromise.futureResult.mapResult { (handler, $0) }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:21:26: note: class 'Runner' does not conform to the 'Sendable' protocol
19 | extension Lambda {
20 | /// LambdaRunner manages the Lambda runtime workflow, or business logic.
21 | internal final class Runner {
| `- note: class 'Runner' does not conform to the 'Sendable' protocol
22 | private let runtimeClient: RuntimeClient
23 | private let eventLoop: EventLoop
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:95:82: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
93 | // after the lambda finishPromise has succeeded or failed we need to
94 | // shutdown the handler
95 | let shutdownContext = ShutdownContext(logger: logger, eventLoop: self.eventLoop)
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
96 | return handler.shutdown(context: shutdownContext).flatMapErrorThrowing { error in
97 | // if, we had an error shuting down the lambda, we want to concatenate it with
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:95:63: warning: reference to captured var 'logger' in concurrently-executing code
93 | // after the lambda finishPromise has succeeded or failed we need to
94 | // shutdown the handler
95 | let shutdownContext = ShutdownContext(logger: logger, eventLoop: self.eventLoop)
| `- warning: reference to captured var 'logger' in concurrently-executing code
96 | return handler.shutdown(context: shutdownContext).flatMapErrorThrowing { error in
97 | // if, we had an error shuting down the lambda, we want to concatenate it with
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:99:21: warning: reference to captured var 'logger' in concurrently-executing code
97 | // if, we had an error shuting down the lambda, we want to concatenate it with
98 | // the runner result
99 | logger.error("Error shutting down handler: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code
100 | throw RuntimeError.shutdownError(shutdownError: error, runnerResult: runnerResult)
101 | }.flatMapResult { (_) -> Result<Int, Error> in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:107:17: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
105 | }.always { _ in
106 | // triggered when the Lambda has finished its last run or has a startup failure.
107 | self.markShutdown()
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
108 | }.cascade(to: self.shutdownPromise)
109 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:120:32: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
118 | // make this method thread safe by dispatching onto the eventloop
119 | self.eventLoop.execute {
120 | let oldState = self.state
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
121 | self.state = .shuttingdown
122 | if case .active(let runner, _) = oldState {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:148:29: warning: capture of '_run' with non-sendable type '(Int) -> ()' in a '@Sendable' closure
146 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
147 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
148 | _run(count + 1)
| |- warning: capture of '_run' with non-sendable type '(Int) -> ()' in a '@Sendable' closure
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
149 | case .failure(HTTPClient.Errors.cancelled):
150 | if case .shuttingdown = self.state {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:150:53: warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
148 | _run(count + 1)
149 | case .failure(HTTPClient.Errors.cancelled):
150 | if case .shuttingdown = self.state {
| `- warning: capture of 'self' with non-sendable type 'Lambda.Lifecycle' in a '@Sendable' closure
151 | // if we ware shutting down, we expect to that the get next
152 | // invocation request might have been cancelled. For this reason we
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:146:29: warning: reference to captured var 'logger' in concurrently-executing code
144 | switch result {
145 | case .success:
146 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
| `- warning: reference to captured var 'logger' in concurrently-executing code
147 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
148 | _run(count + 1)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:135:18: warning: concurrently-executed local function '_run' must be marked as '@Sendable'
133 | @inline(__always)
134 | private func run(promise: EventLoopPromise<Int>) {
135 | func _run(_ count: Int) {
| `- warning: concurrently-executed local function '_run' must be marked as '@Sendable'
136 | switch self.state {
137 | case .active(let runner, let handler):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:154:33: warning: reference to captured var 'logger' in concurrently-executing code
152 | // invocation request might have been cancelled. For this reason we
153 | // succeed the promise here.
154 | logger.log(level: .info, "lambda invocation sequence has been cancelled for shutdown")
| `- warning: reference to captured var 'logger' in concurrently-executing code
155 | return promise.succeed(count)
156 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:157:29: warning: reference to captured var 'logger' in concurrently-executing code
155 | return promise.succeed(count)
156 | }
157 | logger.log(level: .error, "lambda invocation sequence has been cancelled unexpectedly")
| `- warning: reference to captured var 'logger' in concurrently-executing code
158 | promise.fail(HTTPClient.Errors.cancelled)
159 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:160:29: warning: reference to captured var 'logger' in concurrently-executing code
158 | promise.fail(HTTPClient.Errors.cancelled)
159 | case .failure(let error):
160 | logger.log(level: .error, "lambda invocation sequence completed with error: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code
161 | promise.fail(error)
162 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaLifecycle.swift:167:63: warning: implicit capture of 'self' requires that 'Lambda.Lifecycle' conforms to 'Sendable'; this is an error in the Swift 6 language mode
21 | ///
22 | /// - note: It is intended to be used within a single `EventLoop`. For this reason this class is not thread safe.
23 | public final class Lifecycle {
| `- note: class 'Lifecycle' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let shutdownPromise: EventLoopPromise<Int>
:
165 | promise.succeed(count)
166 | default:
167 | preconditionFailure("invalid run state: \(self.state)")
| `- warning: implicit capture of 'self' requires that 'Lambda.Lifecycle' conforms to 'Sendable'; this is an error in the Swift 6 language mode
168 | }
169 | }
[307/318] Compiling AWSLambdaRuntimeCore Utils.swift
[308/318] Compiling AWSLambdaRuntimeCore HTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:77:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
75 | case .disconnected:
76 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
77 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
78 | return self.execute(request, validate: false)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
89 | self.executing = false
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
89 | self.executing = false
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:198:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
158 |
159 | // no need in locks since we validate only one request can run at a time
160 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
161 | typealias InboundIn = NIOHTTPClientResponseFull
162 | typealias OutboundIn = HTTPRequestWrapper
:
196 | let timeoutTask = wrapper.request.timeout.map {
197 | context.eventLoop.scheduleTask(in: $0) {
198 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
199 | preconditionFailure("invalid state")
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:202:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
200 | }
201 |
202 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
203 | }
204 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:95:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
| |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
97 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
| |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 |
98 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:72:53: warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
70 | .childChannelInitializer { channel in
71 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
72 | channel.pipeline.addHandler(HTTPHandler(logger: self.logger, invocationEndpoint: self.invocationEndpoint))
| `- warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
73 | }
74 | }
:
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:138:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
136 | switch result {
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
140 | case .success(let response):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
140 | case .success(let response):
141 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:174:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
172 | switch result {
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
175 | self.writeResponse(context: context, status: .internalServerError)
176 | case .success(let invocation):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
175 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
176 | case .success(let invocation):
177 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
254 | }
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
254 | }
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
260 | }
261 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
260 | }
261 | }
[309/318] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:77:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
75 | case .disconnected:
76 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
77 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
78 | return self.execute(request, validate: false)
79 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
89 | self.executing = false
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:88:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
20 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
21 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
22 | internal final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
23 | private let eventLoop: EventLoop
24 | private let configuration: Lambda.Configuration.RuntimeEngine
:
86 | let promise = channel.eventLoop.makePromise(of: Response.self)
87 | promise.futureResult.whenComplete { _ in
88 | precondition(self.executing == true, "invalid execution state")
| `- warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
89 | self.executing = false
90 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:198:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
158 |
159 | // no need in locks since we validate only one request can run at a time
160 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
161 | typealias InboundIn = NIOHTTPClientResponseFull
162 | typealias OutboundIn = HTTPRequestWrapper
:
196 | let timeoutTask = wrapper.request.timeout.map {
197 | context.eventLoop.scheduleTask(in: $0) {
198 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
199 | preconditionFailure("invalid state")
200 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:202:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
200 | }
201 |
202 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
203 | }
204 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:95:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
| |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
97 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
| |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 |
98 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:72:53: warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
70 | .childChannelInitializer { channel in
71 | channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
72 | channel.pipeline.addHandler(HTTPHandler(logger: self.logger, invocationEndpoint: self.invocationEndpoint))
| `- warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
73 | }
74 | }
:
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:138:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
136 | switch result {
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
140 | case .success(let response):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
137 | case .failure(let error):
138 | self.logger.error("invocation error: \(error)")
139 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
140 | case .success(let response):
141 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:174:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
172 | switch result {
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
175 | self.writeResponse(context: context, status: .internalServerError)
176 | case .success(let invocation):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
173 | case .failure(let error):
174 | self.logger.error("invocation error: \(error)")
175 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
176 | case .success(let invocation):
177 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 | // visible for ChannelPipeline to modify
1788 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:248:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
246 |
247 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
248 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
249 | }
250 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
254 | }
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:253:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
251 | if let buffer = response.body {
252 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
253 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
254 | }
255 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
260 | }
261 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:259:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
87 | }
88 |
89 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
90 | public typealias InboundIn = HTTPServerRequestPart
91 | public typealias OutboundOut = HTTPServerResponsePart
:
257 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
258 | if case .failure(let error) = result {
259 | self.logger.error("\(self) write error \(error)")
| `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
260 | }
261 | }
[310/318] Emitting module AWSLambdaRuntimeCore
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:95:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
93 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
| |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
97 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
94 |
95 | private static var invocations = CircularBuffer<Invocation>()
96 | private static var invocationState = InvocationState.waitingForLambdaRequest
| |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 |
98 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:75: warning: type 'Self.Out' does not conform to the 'Sendable' protocol
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: type 'Self.Out' does not conform to the 'Sendable' protocol
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:13: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
63 | }
64 | return promise.futureResult
AWSLambdaRuntimeCore.LambdaHandler.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol LambdaHandler {
2 | Self : AWSLambdaRuntimeCore.LambdaHandler}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:34: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:62:50: warning: capture of 'event' with non-sendable type 'Self.In' in a '@Sendable' closure
60 | // FIXME: reusable DispatchQueue
61 | self.offloadQueue.async {
62 | self.handle(context: context, event: event, callback: promise.completeWith)
| `- warning: capture of 'event' with non-sendable type 'Self.In' in a '@Sendable' closure
63 | }
64 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:28: warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
193 | return self.handle(context: context, event: input).flatMapThrowing { output in
194 | do {
195 | return try self.encode(allocator: context.allocator, value: output)
| `- warning: capture of 'self' with non-sendable type 'Self' in a '@Sendable' closure
196 | } catch {
197 | throw CodecError.responseEncoding(error)
AWSLambdaRuntimeCore.EventLoopLambdaHandler.Self:2:1: note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
1 | protocol EventLoopLambdaHandler {
2 | Self : AWSLambdaRuntimeCore.EventLoopLambdaHandler}
| `- note: consider making generic parameter 'Self' conform to the 'Sendable' protocol
3 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:195:51: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
193 | return self.handle(context: context, event: input).flatMapThrowing { output in
194 | do {
195 | return try self.encode(allocator: context.allocator, value: output)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
196 | } catch {
197 | throw CodecError.responseEncoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
[310/321] Linking MockServer
[311/321] Applying MockServer
[313/321] Compiling AWSLambdaRuntime Lambda+Codable.swift
[314/321] Emitting module AWSLambdaRuntime
[315/321] Compiling AWSLambdaRuntime Context+Foundation.swift
[316/327] Compiling StringSample main.swift
[317/327] Emitting module StringSample
[318/327] Compiling AWSLambdaTesting Lambda+Testing.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:109:30: warning: type 'Out' does not conform to the 'Sendable' protocol
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Out' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
107 | allocator: ByteBufferAllocator())
108 |
109 | return try eventLoop.flatSubmit {
| `- warning: type 'Out' does not conform to the 'Sendable' protocol
110 | handler.handle(context: context, event: event)
111 | }.wait()
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:111:11: warning: type 'Out' does not conform to the 'Sendable' protocol
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Out' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
111 | }.wait()
| `- warning: type 'Out' does not conform to the 'Sendable' protocol
112 | }
113 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:110:13: warning: capture of 'handler' with non-sendable type 'Handler' in a '@Sendable' closure
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
108 |
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
| `- warning: capture of 'handler' with non-sendable type 'Handler' in a '@Sendable' closure
111 | }.wait()
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:110:37: warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
108 |
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
| `- warning: capture of 'context' with non-sendable type 'Lambda.Context' in a '@Sendable' closure
111 | }.wait()
112 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaContext.swift:52:24: note: class 'Context' does not conform to the 'Sendable' protocol
50 | /// Lambda runtime context.
51 | /// The Lambda runtime generates and passes the `Context` to the Lambda handler as an argument.
52 | public final class Context: CustomDebugStringConvertible {
| `- note: class 'Context' does not conform to the 'Sendable' protocol
53 | /// The request ID, which identifies the request that triggered the function invocation.
54 | public let requestID: String
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:38:11: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AWSLambdaRuntimeCore'
36 | #if DEBUG
37 | @testable import AWSLambdaRuntime
38 | @testable import AWSLambdaRuntimeCore
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'AWSLambdaRuntimeCore'
39 | import Dispatch
40 | import Logging
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:110:53: warning: capture of 'event' with non-sendable type 'In' in a '@Sendable' closure
88 | }
89 |
90 | public static func test<In, Out, Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'In' conform to the 'Sendable' protocol
91 | _ handler: Handler,
92 | with event: In,
:
108 |
109 | return try eventLoop.flatSubmit {
110 | handler.handle(context: context, event: event)
| `- warning: capture of 'event' with non-sendable type 'In' in a '@Sendable' closure
111 | }.wait()
112 | }
[319/327] Emitting module AWSLambdaTesting
[320/327] Compiling CodableSample main.swift
[321/327] Emitting module CodableSample
[321/327] Write Objects.LinkFileList
[323/327] Linking StringSample
[324/327] Applying StringSample
[325/327] Linking CodableSample
[326/327] Applying CodableSample
Build complete! (15.36s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.32.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.4.2",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-backtrace",
"requirement" : {
"range" : [
{
"lower_bound" : "1.2.3",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/swift-server/swift-backtrace.git"
}
],
"manifest_display_name" : "swift-aws-lambda-runtime",
"name" : "swift-aws-lambda-runtime",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
],
"products" : [
{
"name" : "AWSLambdaRuntime",
"targets" : [
"AWSLambdaRuntime"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaRuntimeCore",
"targets" : [
"AWSLambdaRuntimeCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaEvents",
"targets" : [
"AWSLambdaEvents"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaTesting",
"targets" : [
"AWSLambdaTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "StringSample",
"targets" : [
"StringSample"
],
"type" : {
"executable" : null
}
},
{
"name" : "MockServer",
"targets" : [
"MockServer"
],
"type" : {
"executable" : null
}
},
{
"name" : "CodableSample",
"targets" : [
"CodableSample"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "StringSample",
"module_type" : "SwiftTarget",
"name" : "StringSample",
"path" : "Sources/StringSample",
"product_memberships" : [
"StringSample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "executable"
},
{
"c99name" : "MockServer",
"module_type" : "SwiftTarget",
"name" : "MockServer",
"path" : "Sources/MockServer",
"product_dependencies" : [
"NIOHTTP1",
"NIO"
],
"product_memberships" : [
"MockServer"
],
"sources" : [
"main.swift"
],
"type" : "executable"
},
{
"c99name" : "CodableSample",
"module_type" : "SwiftTarget",
"name" : "CodableSample",
"path" : "Sources/CodableSample",
"product_memberships" : [
"CodableSample"
],
"sources" : [
"main.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "executable"
},
{
"c99name" : "AWSLambdaTestingTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaTestingTests",
"path" : "Tests/AWSLambdaTestingTests",
"sources" : [
"Tests.swift"
],
"target_dependencies" : [
"AWSLambdaTesting"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaTesting",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaTesting",
"path" : "Sources/AWSLambdaTesting",
"product_dependencies" : [
"NIO"
],
"product_memberships" : [
"AWSLambdaTesting"
],
"sources" : [
"Lambda+Testing.swift"
],
"target_dependencies" : [
"AWSLambdaRuntime"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntimeTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeTests",
"path" : "Tests/AWSLambdaRuntimeTests",
"sources" : [
"Lambda+CodeableTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore",
"AWSLambdaRuntime"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCoreTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCoreTests",
"path" : "Tests/AWSLambdaRuntimeCoreTests",
"product_dependencies" : [
"NIOTestUtils",
"NIOFoundationCompat"
],
"sources" : [
"LambdaHandlerTest.swift",
"LambdaLifecycleTest.swift",
"LambdaRunnerTest.swift",
"LambdaRuntimeClientTest.swift",
"LambdaTest.swift",
"MockLambdaServer.swift",
"Utils.swift",
"UtilsTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCore",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCore",
"path" : "Sources/AWSLambdaRuntimeCore",
"product_dependencies" : [
"Logging",
"Backtrace",
"NIOHTTP1",
"NIO",
"_NIOConcurrency"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaRuntimeCore",
"AWSLambdaTesting",
"StringSample",
"CodableSample"
],
"sources" : [
"HTTPClient.swift",
"Lambda+LocalServer.swift",
"Lambda+String.swift",
"Lambda.swift",
"LambdaConfiguration.swift",
"LambdaContext.swift",
"LambdaHandler.swift",
"LambdaLifecycle.swift",
"LambdaRunner.swift",
"LambdaRuntimeClient.swift",
"Utils.swift"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntime",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntime",
"path" : "Sources/AWSLambdaRuntime",
"product_dependencies" : [
"NIO",
"NIOFoundationCompat"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaTesting",
"StringSample",
"CodableSample"
],
"sources" : [
"Context+Foundation.swift",
"Lambda+Codable.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaEventsTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaEventsTests",
"path" : "Tests/AWSLambdaEventsTests",
"sources" : [
"ALBTests.swift",
"APIGateway+V2Tests.swift",
"APIGatewayTests.swift",
"AppSyncTests.swift",
"CloudwatchTests.swift",
"DynamoDBTests.swift",
"S3Tests.swift",
"SESTests.swift",
"SNSTests.swift",
"SQSTests.swift",
"Utils/Base64Tests.swift",
"Utils/DateWrapperTests.swift"
],
"target_dependencies" : [
"AWSLambdaEvents"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaEvents",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaEvents",
"path" : "Sources/AWSLambdaEvents",
"product_memberships" : [
"AWSLambdaEvents"
],
"sources" : [
"ALB.swift",
"APIGateway+V2.swift",
"APIGateway.swift",
"AWSRegion.swift",
"AppSync.swift",
"Cloudwatch.swift",
"DynamoDB.swift",
"S3.swift",
"SES.swift",
"SNS.swift",
"SQS.swift",
"Utils/Base64.swift",
"Utils/DateWrappers.swift",
"Utils/HTTP.swift"
],
"type" : "library"
}
],
"tools_version" : "5.2"
}
Done.