Build Information
Successful build of swift-aws-lambda-runtime, reference 1.0.0-alpha.3 (5ecc24
), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 22:57:50 UTC.
Swift 6 data race errors: 10
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-aws-lambda-runtime.git
Reference: 1.0.0-alpha.3
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/swift-server/swift-aws-lambda-runtime
* tag 1.0.0-alpha.3 -> FETCH_HEAD
HEAD is now at 5ecc24f Add Breeze to projects.md (#343)
Cloned https://github.com/swift-server/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
5ecc24fa54e61756fe7a7a01f2451da1cffa916e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/swift-aws-lambda-runtime.git at 1.0.0-alpha.3
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-nio.git
[1/2038] Fetching swift-docc-plugin
[83/5736] Fetching swift-docc-plugin, swift-log
[5737/77671] Fetching swift-docc-plugin, swift-log, swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.80s)
Fetched https://github.com/apple/swift-docc-plugin from cache (3.80s)
Fetched https://github.com/apple/swift-log.git from cache (3.80s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (3.16s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3186] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (1.22s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.61s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.40s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.60s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-system.git
[1/1569] Fetching swift-atomics
[143/5488] Fetching swift-atomics, swift-system
[1139/21085] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (1.91s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.91s)
Fetched https://github.com/apple/swift-collections.git from cache (1.91s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.40s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.42s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.62s)
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/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
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-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
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.2
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.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.76.1",
"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.0",
"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.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
}
]
}
]
}
Fetching https://github.com/swift-server/swift-aws-lambda-runtime.git
[1/9657] Fetching swift-aws-lambda-runtime
Fetched https://github.com/swift-server/swift-aws-lambda-runtime.git from cache (2.01s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/apple/swift-nio.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.69s)
Fetched https://github.com/apple/swift-nio.git from cache (0.69s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.02s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.02s)
Fetching https://github.com/apple/swift-system.git from cache
Fetching https://github.com/apple/swift-atomics.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.53s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.53s)
Fetched https://github.com/apple/swift-collections.git from cache (0.53s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.02s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (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.02s)
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.0
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.2
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.76.1
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 1.0.0-alpha.3 (5ecc24f)
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
Found 2 product dependencies
- swift-nio
- swift-log
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/swift-server/swift-aws-lambda-runtime.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.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
[1/1] Compiling plugin AWSLambdaPackager
[2/2] Compiling plugin Swift-DocC
[3/3] Compiling plugin Swift-DocC Preview
Building for debugging...
[3/38] Copying PrivacyInfo.xcprivacy
[3/38] Write sources
[16/38] Write MockServer-entitlement.plist
[18/38] Compiling CNIOWindows shim.c
[19/38] Compiling CNIOWindows WSAStartup.c
[20/38] Compiling CNIOWASI CNIOWASI.c
[21/38] Write swift-version--7754E27361AE5C74.txt
[22/38] Write sources
[23/38] Compiling CNIOLinux liburing_shims.c
[24/38] Compiling CNIOLinux shim.c
[25/49] Compiling _AtomicsShims.c
[26/49] Compiling CNIOLLHTTP c_nio_http.c
[27/67] Compiling CNIOLLHTTP c_nio_api.c
[28/67] Write sources
[31/86] Compiling CNIOLLHTTP c_nio_llhttp.c
[32/86] Compiling CNIODarwin shim.c
[33/86] Compiling c-nioatomics.c
[34/86] Compiling c-atomics.c
[36/92] Compiling Atomics PointerConformances.swift
[37/92] Compiling Atomics Primitives.native.swift
[38/92] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[39/93] Emitting module _NIOBase64
[40/93] Compiling _NIOBase64 Base64.swift
[41/93] Compiling Atomics ManagedAtomic.swift
[42/93] Compiling Atomics ManagedAtomicLazyReference.swift
[43/93] Compiling Atomics AtomicMemoryOrderings.swift
[44/93] Compiling Atomics DoubleWord.swift
[45/93] Compiling Atomics UnsafeAtomic.swift
[46/93] Compiling Atomics UnsafeAtomicLazyReference.swift
[47/95] Compiling Atomics AtomicStorage.swift
[48/95] Compiling Atomics AtomicValue.swift
[49/95] Compiling Atomics Primitives.shims.swift
[50/95] Compiling Atomics AtomicInteger.swift
[51/95] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[58/95] Compiling Atomics AtomicOptionalWrappable.swift
[59/95] Compiling Atomics AtomicReference.swift
[60/95] Compiling Atomics OptionalRawRepresentable.swift
[61/95] Compiling Atomics RawRepresentable.swift
[62/95] Compiling Atomics AtomicBool.swift
[63/95] Compiling Atomics IntegerConformances.swift
[64/95] Emitting module InternalCollectionsUtilities
[67/95] Compiling Atomics IntegerOperations.swift
[68/95] Compiling Atomics Unmanaged extensions.swift
[69/111] Compiling Logging MetadataProvider.swift
[70/111] Compiling _NIODataStructures _TinyArray.swift
[71/111] Compiling _NIODataStructures PriorityQueue.swift
[72/111] Emitting module _NIODataStructures
[73/111] Compiling _NIODataStructures Heap.swift
[74/111] Compiling DequeModule _DequeBufferHeader.swift
[75/111] Compiling DequeModule _DequeSlot.swift
[76/112] Compiling DequeModule Deque+CustomReflectable.swift
[77/112] Compiling DequeModule Deque+Descriptions.swift
[78/112] Compiling DequeModule Deque+Testing.swift
[79/112] Compiling DequeModule Deque._Storage.swift
[80/112] Compiling NIOConcurrencyHelpers NIOLock.swift
[81/112] Compiling Logging Locks.swift
[82/112] Compiling Logging LogHandler.swift
[83/112] Emitting module Logging
[84/112] Compiling Logging Logging.swift
[85/112] Compiling DequeModule _UnsafeWrappedBuffer.swift
[86/112] Compiling DequeModule _DequeBuffer.swift
[87/112] Compiling DequeModule Deque+Equatable.swift
[88/112] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[89/112] Compiling DequeModule Deque._UnsafeHandle.swift
[90/112] Compiling DequeModule Deque.swift
[91/112] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[92/112] Compiling NIOConcurrencyHelpers atomics.swift
[93/112] Compiling NIOConcurrencyHelpers lock.swift
[94/112] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[95/112] Emitting module NIOConcurrencyHelpers
[96/112] Compiling DequeModule Deque+Extras.swift
[97/112] Compiling DequeModule Deque+Hashable.swift
[98/112] Compiling DequeModule Deque+Codable.swift
[99/112] Compiling DequeModule Deque+Collection.swift
[100/112] Emitting module DequeModule
[109/112] Emitting module Atomics
[110/174] Compiling NIOCore Linux.swift
[111/174] Compiling NIOCore MarkedCircularBuffer.swift
[112/174] Compiling NIOCore MulticastChannel.swift
[113/174] Compiling NIOCore NIOAny.swift
[114/174] Compiling NIOCore NIOCloseOnErrorHandler.swift
[115/174] Compiling NIOCore NIOLoopBound.swift
[116/180] Compiling NIOCore GlobalSingletons.swift
[117/180] Compiling NIOCore IO.swift
[118/180] Compiling NIOCore IOData.swift
[119/180] Compiling NIOCore IPProtocol.swift
[120/180] Compiling NIOCore IntegerBitPacking.swift
[121/180] Compiling NIOCore IntegerTypes.swift
[122/180] Compiling NIOCore Interfaces.swift
[123/180] Compiling NIOCore NIOScheduledCallback.swift
[124/180] Compiling NIOCore NIOSendable.swift
[125/180] Compiling NIOCore PointerHelpers.swift
[126/180] Compiling NIOCore RecvByteBufferAllocator.swift
[127/180] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[128/180] Compiling NIOCore SocketAddresses.swift
[129/180] Compiling NIOCore SocketOptionProvider.swift
[130/180] Compiling NIOCore SystemCallHelpers.swift
[131/180] Compiling NIOCore TimeAmount+Duration.swift
[132/180] Compiling NIOCore TypeAssistedChannelHandler.swift
[133/180] Compiling NIOCore UniversalBootstrapSupport.swift
[134/180] Compiling NIOCore Utilities.swift
[135/180] Compiling NIOCore AddressedEnvelope.swift
[136/180] Compiling NIOCore AsyncAwaitSupport.swift
[137/180] Compiling NIOCore AsyncChannel.swift
[138/180] Compiling NIOCore AsyncChannelHandler.swift
[139/180] Compiling NIOCore AsyncChannelInboundStream.swift
[140/180] Compiling NIOCore AsyncChannelOutboundWriter.swift
[141/180] Compiling NIOCore NIOAsyncSequenceProducer.swift
[142/180] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[143/180] Compiling NIOCore EventLoopFuture+Deprecated.swift
[144/180] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[145/180] Compiling NIOCore EventLoopFuture.swift
[146/180] Compiling NIOCore FileDescriptor.swift
[147/180] Compiling NIOCore FileHandle.swift
[148/180] Compiling NIOCore FileRegion.swift
[149/180] Compiling NIOCore Codec.swift
[150/180] Compiling NIOCore ConvenienceOptionSupport.swift
[151/180] Compiling NIOCore DeadChannel.swift
[152/180] Compiling NIOCore DispatchQueue+WithFuture.swift
[153/180] Compiling NIOCore EventLoop+Deprecated.swift
[154/180] Compiling NIOCore EventLoop+SerialExecutor.swift
[155/180] Compiling NIOCore EventLoop.swift
[156/180] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[157/180] Compiling NIOCore NIOAsyncWriter.swift
[158/180] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[159/180] Compiling NIOCore BSDSocketAPI.swift
[160/180] Compiling NIOCore ByteBuffer-aux.swift
[161/180] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[162/180] Compiling NIOCore ByteBuffer-conversions.swift
[163/180] Compiling NIOCore Channel.swift
[164/180] Compiling NIOCore ChannelHandler.swift
[165/180] Compiling NIOCore ChannelHandlers.swift
[166/180] Compiling NIOCore ChannelInvoker.swift
[167/180] Compiling NIOCore ChannelOption.swift
[168/180] Compiling NIOCore ChannelPipeline.swift
[169/180] Compiling NIOCore CircularBuffer.swift
[170/180] Compiling NIOCore ByteBuffer-core.swift
[171/180] Compiling NIOCore ByteBuffer-hex.swift
[172/180] Compiling NIOCore ByteBuffer-int.swift
[173/180] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[174/180] Compiling NIOCore ByteBuffer-multi-int.swift
[175/180] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[176/180] Compiling NIOCore ByteBuffer-views.swift
[177/180] Emitting module NIOCore
[178/234] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[179/234] Emitting module NIOEmbedded
[180/234] Compiling NIOEmbedded AsyncTestingChannel.swift
[181/234] Compiling NIOEmbedded Embedded.swift
[182/234] Compiling NIOPosix SocketProtocols.swift
[183/234] Compiling NIOPosix System.swift
[184/234] Compiling NIOPosix Thread.swift
[185/234] Compiling NIOPosix ThreadPosix.swift
[186/234] Compiling NIOPosix ThreadWindows.swift
[187/239] Compiling NIOPosix Selectable.swift
[188/239] Compiling NIOPosix SelectableChannel.swift
[189/239] Compiling NIOPosix SelectableEventLoop.swift
[190/239] Compiling NIOPosix SelectorEpoll.swift
[191/239] Compiling NIOPosix SelectorGeneric.swift
[192/239] Compiling NIOPosix PendingWritesManager.swift
[193/239] Compiling NIOPosix PipeChannel.swift
[194/239] Compiling NIOPosix PipePair.swift
[195/239] Compiling NIOPosix PointerHelpers.swift
[196/239] Compiling NIOPosix Pool.swift
[197/239] Compiling NIOPosix BSDSocketAPICommon.swift
[198/239] Compiling NIOPosix BSDSocketAPIPosix.swift
[199/239] Compiling NIOPosix BSDSocketAPIWindows.swift
[200/239] Compiling NIOPosix BaseSocket.swift
[201/239] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[202/239] Compiling NIOPosix BaseSocketChannel.swift
[203/239] Emitting module NIOPosix
[204/239] Compiling NIOPosix BaseStreamSocketChannel.swift
[205/239] Compiling NIOPosix Bootstrap.swift
[206/239] Compiling NIOPosix ControlMessage.swift
[207/239] Compiling NIOPosix DatagramVectorReadManager.swift
[208/239] Compiling NIOPosix Errors+Any.swift
[209/239] Compiling NIOPosix FileDescriptor.swift
[210/239] Compiling NIOPosix PooledRecvBufferAllocator.swift
[211/239] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[212/239] Compiling NIOPosix PosixSingletons.swift
[213/239] Compiling NIOPosix RawSocketBootstrap.swift
[214/239] Compiling NIOPosix Resolver.swift
[215/239] Compiling NIOPosix SelectorKqueue.swift
[216/239] Compiling NIOPosix SelectorUring.swift
[217/239] Compiling NIOPosix ServerSocket.swift
[218/239] Compiling NIOPosix Socket.swift
[219/239] Compiling NIOPosix SocketChannel.swift
[220/239] Compiling NIOPosix GetaddrinfoResolver.swift
[221/239] Compiling NIOPosix HappyEyeballs.swift
[222/239] Compiling NIOPosix IO.swift
[223/239] Compiling NIOPosix IntegerBitPacking.swift
[224/239] Compiling NIOPosix IntegerTypes.swift
[225/239] Compiling NIOPosix Linux.swift
[226/239] Compiling NIOPosix LinuxCPUSet.swift
[227/239] Compiling NIOPosix LinuxUring.swift
[228/239] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[229/239] Compiling NIOPosix NIOThreadPool.swift
[230/239] Compiling NIOPosix NonBlockingFileIO.swift
[231/239] Compiling NIOPosix PendingDatagramWritesManager.swift
[232/239] Compiling NIOPosix UnsafeTransfer.swift
[233/239] Compiling NIOPosix Utilities.swift
[234/239] Compiling NIOPosix VsockAddress.swift
[235/239] Compiling NIOPosix VsockChannelEvents.swift
[236/239] Compiling NIOPosix resource_bundle_accessor.swift
[237/241] Emitting module NIO
[238/241] Compiling NIO Exports.swift
[239/262] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[240/262] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[241/262] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[242/262] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[243/262] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[244/262] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[245/263] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[246/263] Emitting module NIOFoundationCompat
[247/263] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[248/263] Emitting module NIOHTTP1
[249/263] Compiling NIOHTTP1 ByteCollectionUtils.swift
[250/263] Compiling NIOHTTP1 HTTPDecoder.swift
[251/263] Compiling NIOHTTP1 HTTPEncoder.swift
[252/263] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[253/263] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[254/263] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[255/263] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[256/263] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[257/263] Compiling NIOHTTP1 HTTPTypes.swift
[258/263] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[259/263] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[260/263] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[261/281] Compiling MockServer main.swift
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:118:22: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
52 | public typealias InboundIn = HTTPServerRequestPart
53 | public typealias OutboundOut = HTTPServerResponsePart
:
116 |
117 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
118 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
119 | }
120 |
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:125:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
52 | public typealias InboundIn = HTTPServerRequestPart
53 | public typealias OutboundOut = HTTPServerResponsePart
:
123 | buffer.writeString(b)
124 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
125 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 | }
127 | }
/Users/admin/builder/spi-builder-workspace/Sources/MockServer/main.swift:131:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | }
50 |
51 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
52 | public typealias InboundIn = HTTPServerRequestPart
53 | public typealias OutboundOut = HTTPServerResponsePart
:
129 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
130 | if case .failure(let error) = result {
131 | print("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }
133 | }
[262/281] Emitting module MockServer
[262/281] Write Objects.LinkFileList
[264/281] Compiling AWSLambdaRuntimeCore LambdaContext.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
73 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
74 | let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
75 | promise.completeWithTask {
| `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let handler = Underlying()
77 | return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
92 | let input: Underlying.Event
93 | do {
94 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | } catch {
96 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
195 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 | let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 | promise.completeWithTask {
| `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
198 | let handler = try await Underlying(context: context)
199 | return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
214 | let input: Underlying.Event
215 | do {
216 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
217 | } catch {
218 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 | @usableFromInline
341 | let handler: Underlying
:
367 | return self.handler.handle(input, context: context).flatMapThrowing { output in
368 | do {
369 | self.outputBuffer.clear()
| `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 | try self.handler.encode(value: output, into: &self.outputBuffer)
371 | return self.outputBuffer
[265/281] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
73 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
74 | let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
75 | promise.completeWithTask {
| `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let handler = Underlying()
77 | return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
92 | let input: Underlying.Event
93 | do {
94 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | } catch {
96 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
195 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 | let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 | promise.completeWithTask {
| `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
198 | let handler = try await Underlying(context: context)
199 | return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
214 | let input: Underlying.Event
215 | do {
216 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
217 | } catch {
218 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 | @usableFromInline
341 | let handler: Underlying
:
367 | return self.handler.handle(input, context: context).flatMapThrowing { output in
368 | do {
369 | self.outputBuffer.clear()
| `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 | try self.handler.encode(value: output, into: &self.outputBuffer)
371 | return self.outputBuffer
[266/281] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[267/281] Compiling AWSLambdaRuntimeCore Terminator.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:24: warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | errors.append(error)
73 | }
74 | return terminate(iterator, errors: errors, promise: promise)
| |- warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
72 | errors.append(error)
73 | }
74 | return terminate(iterator, errors: errors, promise: promise)
| |- warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
75 | }
76 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:60:14: warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
58 | /// - Returns: An `EventLoopFuture` with the result of the termination cycle.
59 | func terminate(eventLoop: EventLoop) -> EventLoopFuture<Void> {
60 | func terminate(_ iterator: IndexingIterator<[(name: String, handler: Handler)]>, errors: [Error], promise: EventLoopPromise<Void>) {
| `- warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
61 | var iterator = iterator
62 | guard let handler = iterator.next()?.handler else {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
72 | errors.append(error)
73 | }
74 | return terminate(iterator, errors: errors, promise: promise)
| `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
75 | }
76 | }
[268/282] Compiling AWSLambdaRuntimeCore Lambda.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:134:21: warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }.whenComplete { lifecycleResult in
133 | #if DEBUG
134 | signalSource.cancel()
| `- warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | #endif
136 | eventLoop.shutdownGracefully { error in
Dispatch.DispatchSourceSignal:1:17: note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
1 | public protocol DispatchSourceSignal : DispatchSourceProtocol {
| `- note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:141:21: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | }
140 | }
141 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
142 | }
143 | }
[269/282] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:134:21: warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
132 | }.whenComplete { lifecycleResult in
133 | #if DEBUG
134 | signalSource.cancel()
| `- warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | #endif
136 | eventLoop.shutdownGracefully { error in
Dispatch.DispatchSourceSignal:1:17: note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
1 | public protocol DispatchSourceSignal : DispatchSourceProtocol {
| `- note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
2 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:141:21: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
139 | }
140 | }
141 | result = lifecycleResult
| `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
142 | }
143 | }
[270/282] Compiling AWSLambdaRuntimeCore Utils.swift
[271/282] Emitting module AWSLambdaRuntimeCore
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96: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
94 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
95 |
96 | 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: annotate 'invocations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static var invocationState = InvocationState.waitingForLambdaRequest
98 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97: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
95 |
96 | private static var invocations = CircularBuffer<Invocation>()
97 | 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: annotate 'invocationState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
73 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
74 | let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
75 | promise.completeWithTask {
| `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 | let handler = Underlying()
77 | return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 |
65 | @usableFromInline
66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
67 | @usableFromInline
68 | let handler: Underlying
:
92 | let input: Underlying.Event
93 | do {
94 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | } catch {
96 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
195 | static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 | let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 | promise.completeWithTask {
| `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
198 | let handler = try await Underlying(context: context)
199 | return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 | @usableFromInline
190 | let handler: Underlying
:
214 | let input: Underlying.Event
215 | do {
216 | input = try self.handler.decode(buffer: buffer)
| `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
217 | } catch {
218 | throw CodecError.requestDecoding(error)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
| `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 | @usableFromInline
341 | let handler: Underlying
:
367 | return self.handler.handle(input, context: context).flatMapThrowing { output in
368 | do {
369 | self.outputBuffer.clear()
| `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
370 | try self.handler.encode(value: output, into: &self.outputBuffer)
371 | return self.outputBuffer
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// thread safe secure random number generator.
89 | private static var generator = SystemRandomNumberGenerator()
| |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'generator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | private static func generateRandom() -> Self {
91 | var _uuid: uuid_t = LambdaRequestID.null
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:335:25: warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
325 | /// - logger: A `Logger` to log the Lambda events.
326 | @inlinable
327 | public static func makeRuntime<Handler: LambdaRuntimeHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
328 | handlerProvider: @escaping (LambdaInitializationContext) async throws -> Handler,
329 | eventLoop: any EventLoop,
:
333 | handlerProvider: { context in
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
336 | try await handlerProvider(context)
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:336:31: warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
336 | try await handlerProvider(context)
| |- warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
337 | }
338 | return promise.futureResult
[272/282] Compiling AWSLambdaRuntimeCore LambdaRuntime.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:127:17: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
125 | // if, we had an error shutting down the handler, we want to concatenate it with
126 | // the runner result
127 | logger.error("Error shutting down handler: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
128 | throw LambdaRuntimeError.shutdownError(shutdownError: error, runnerResult: runnerResult)
129 | }.flatMapResult { _ -> Result<Int, Error> in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:174:25: warning: capture of '_run' with non-sendable type '(Int) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
172 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
173 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 | _run(count + 1)
| |- warning: capture of '_run' with non-sendable type '(Int) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
175 | case .failure(HTTPClient.Errors.cancelled):
176 | if case .shuttingdown = self.state {
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:172:25: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
170 | switch result {
171 | case .success:
172 | logger.log(level: .debug, "lambda invocation sequence completed successfully")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
173 | // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 | _run(count + 1)
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:161:14: warning: concurrently-executed local function '_run' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
159 | @inline(__always)
160 | private func run(promise: EventLoopPromise<Int>) {
161 | func _run(_ count: Int) {
| `- warning: concurrently-executed local function '_run' must be marked as '@Sendable'; this is an error in the Swift 6 language mode
162 | switch self.state {
163 | case .active(let runner, let handler):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:180:29: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
178 | // invocation request might have been cancelled. For this reason we
179 | // succeed the promise here.
180 | logger.log(level: .info, "lambda invocation sequence has been cancelled for shutdown")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | return promise.succeed(count)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:183:25: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | return promise.succeed(count)
182 | }
183 | logger.log(level: .error, "lambda invocation sequence has been cancelled unexpectedly")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | promise.fail(HTTPClient.Errors.cancelled)
185 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:186:25: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | promise.fail(HTTPClient.Errors.cancelled)
185 | case .failure(let error):
186 | logger.log(level: .error, "lambda invocation sequence completed with error: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
187 | promise.fail(error)
188 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:335:25: warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
325 | /// - logger: A `Logger` to log the Lambda events.
326 | @inlinable
327 | public static func makeRuntime<Handler: LambdaRuntimeHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
328 | handlerProvider: @escaping (LambdaInitializationContext) async throws -> Handler,
329 | eventLoop: any EventLoop,
:
333 | handlerProvider: { context in
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
336 | try await handlerProvider(context)
337 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:336:31: warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
334 | let promise = eventLoop.makePromise(of: Handler.self)
335 | promise.completeWithTask {
336 | try await handlerProvider(context)
| |- warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
337 | }
338 | return promise.futureResult
[273/282] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96: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
94 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
95 |
96 | 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: annotate 'invocations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static var invocationState = InvocationState.waitingForLambdaRequest
98 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97: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
95 |
96 | private static var invocations = CircularBuffer<Invocation>()
97 | 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: annotate 'invocationState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
137 | switch result {
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
141 | case .success(let response):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 | case .success(let response):
142 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
173 | switch result {
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | self.writeResponse(context: context, status: .internalServerError)
177 | case .success(let invocation):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
176 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | case .success(let invocation):
178 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | 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
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | 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
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | }
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | 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
261 | }
262 | }
[274/282] Compiling AWSLambdaRuntimeCore Lambda+String.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96: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
94 | private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
95 |
96 | 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: annotate 'invocations' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
97 | private static var invocationState = InvocationState.waitingForLambdaRequest
98 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97: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
95 |
96 | private static var invocations = CircularBuffer<Invocation>()
97 | 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: annotate 'invocationState' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
98 |
99 | private let logger: Logger
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
137 | switch result {
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
141 | case .success(let response):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 | case .success(let response):
142 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
173 | switch result {
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
176 | self.writeResponse(context: context, status: .internalServerError)
177 | case .success(let invocation):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
176 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | case .success(let invocation):
178 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
247 |
248 | context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 | 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
250 | }
251 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
252 | if let buffer = response.body {
253 | context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 | 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
255 | }
256 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | self.logger.error("\(self) write error \(error)")
| `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
261 | }
262 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to `Sendable`; this is an error in the Swift 6 language mode
88 | }
89 |
90 | final class HTTPHandler: ChannelInboundHandler {
| `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
91 | public typealias InboundIn = HTTPServerRequestPart
92 | public typealias OutboundOut = HTTPServerResponsePart
:
258 | context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 | if case .failure(let error) = result {
260 | 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
261 | }
262 | }
[275/282] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// thread safe secure random number generator.
89 | private static var generator = SystemRandomNumberGenerator()
| |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'generator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | private static func generateRandom() -> Self {
91 | var _uuid: uuid_t = LambdaRequestID.null
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:56:14: warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 | ///
35 | /// - Returns: An `EventLoopFuture<LambdaHandler>` fulfilled with the outcome of the initialization.
36 | func initialize<Handler: LambdaRuntimeHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
37 | handlerProvider: @escaping (LambdaInitializationContext) -> EventLoopFuture<Handler>,
38 | logger: Logger,
:
54 | // This can happen if the factory uses a library (let's say a database client) that manages its own threads/loops
55 | // for whatever reason and returns a future that originated from that foreign EventLoop.
56 | .hop(to: self.eventLoop)
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | .peekError { error in
58 | self.runtimeClient.reportInitializationError(logger: logger, error: error).peekError { reportingError in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:88:20: warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
66 | func run(handler: some LambdaRuntimeHandler, logger: Logger) -> EventLoopFuture<Void> {
| `- note: consider making generic parameter 'some LambdaRuntimeHandler' conform to the 'Sendable' protocol
67 | logger.debug("lambda invocation sequence starting")
68 | // 1. request invocation from lambda runtime engine
:
86 | logger.debug("sending invocation to lambda handler")
87 | }
88 | return handler.handle(bytes, context: context)
| `- warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
90 | // originated from a foreign EventLoop/EventLoopGroup.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:149:14: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
147 | // callback does not have side effects, failing with original result
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | callback(error)
151 | return self
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:150:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
150 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
151 | return self
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:157:14: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
155 | // callback does not have side effects, failing with original result
156 | func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
157 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:160:25: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
160 | promise.completeWith(self)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
161 | }
162 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:159:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | self.flatMapError { error in
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 | promise.completeWith(self)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:168:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 | func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
167 | self.map { value in
168 | callback(.success(value))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
169 | }.flatMapErrorThrowing { error in
170 | callback(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:170:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 | callback(.success(value))
169 | }.flatMapErrorThrowing { error in
170 | callback(.failure(error))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
171 | }
172 | }
[275/282] Linking MockServer
[277/282] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
87 |
88 | /// thread safe secure random number generator.
89 | private static var generator = SystemRandomNumberGenerator()
| |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
| |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
| |- note: annotate 'generator' with '@MainActor' if property should only be accessed from the main actor
| `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
90 | private static func generateRandom() -> Self {
91 | var _uuid: uuid_t = LambdaRequestID.null
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:56:14: warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
34 | ///
35 | /// - Returns: An `EventLoopFuture<LambdaHandler>` fulfilled with the outcome of the initialization.
36 | func initialize<Handler: LambdaRuntimeHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
37 | handlerProvider: @escaping (LambdaInitializationContext) -> EventLoopFuture<Handler>,
38 | logger: Logger,
:
54 | // This can happen if the factory uses a library (let's say a database client) that manages its own threads/loops
55 | // for whatever reason and returns a future that originated from that foreign EventLoop.
56 | .hop(to: self.eventLoop)
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
57 | .peekError { error in
58 | self.runtimeClient.reportInitializationError(logger: logger, error: error).peekError { reportingError in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:88:20: warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
64 | }
65 |
66 | func run(handler: some LambdaRuntimeHandler, logger: Logger) -> EventLoopFuture<Void> {
| `- note: consider making generic parameter 'some LambdaRuntimeHandler' conform to the 'Sendable' protocol
67 | logger.debug("lambda invocation sequence starting")
68 | // 1. request invocation from lambda runtime engine
:
86 | logger.debug("sending invocation to lambda handler")
87 | }
88 | return handler.handle(bytes, context: context)
| `- warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | // Hopping back to "our" EventLoop is important in case the handler returns a future that
90 | // originated from a foreign EventLoop/EventLoopGroup.
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:149:14: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
147 | // callback does not have side effects, failing with original result
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
150 | callback(error)
151 | return self
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:150:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
148 | func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 | self.flatMapError { error in
150 | callback(error)
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
151 | return self
152 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:157:14: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
155 | // callback does not have side effects, failing with original result
156 | func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
157 | self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:160:25: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
160 | promise.completeWith(self)
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
161 | }
162 | return promise.futureResult
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:159:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
157 | self.flatMapError { error in
158 | let promise = self.eventLoop.makePromise(of: Value.self)
159 | callback(error).whenComplete { _ in
| |- warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 | promise.completeWith(self)
161 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:168:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
166 | func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
167 | self.map { value in
168 | callback(.success(value))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
169 | }.flatMapErrorThrowing { error in
170 | callback(.failure(error))
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:170:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
168 | callback(.success(value))
169 | }.flatMapErrorThrowing { error in
170 | callback(.failure(error))
| |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
171 | }
172 | }
[278/282] Compiling AWSLambdaRuntimeCore DetachedTasks.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:78:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
76 | case .disconnected:
77 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
78 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | return self.execute(request, validate: false)
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to `Sendable`; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | 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
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:199:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 |
160 | // no need in locks since we validate only one request can run at a time
161 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
162 | typealias InboundIn = NIOHTTPClientResponseFull
163 | typealias OutboundIn = HTTPRequestWrapper
:
197 | let timeoutTask = wrapper.request.timeout.map {
198 | context.eventLoop.scheduleTask(in: $0) {
199 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | preconditionFailure("invalid state")
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 |
203 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[279/282] Compiling AWSLambdaRuntimeCore HTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:78:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
76 | case .disconnected:
77 | return self.connect().flatMap { channel -> EventLoopFuture<Response> in
78 | self.state = .connected(channel)
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
79 | return self.execute(request, validate: false)
80 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | precondition(self.executing == true, "invalid execution state")
| `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to `Sendable`; this is an error in the Swift 6 language mode
21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
23 | final class HTTPClient {
| `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
24 | private let eventLoop: EventLoop
25 | private let configuration: LambdaConfiguration.RuntimeEngine
:
87 | let promise = channel.eventLoop.makePromise(of: Response.self)
88 | promise.futureResult.whenComplete { _ in
89 | 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
90 | self.executing = false
91 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:199:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
159 |
160 | // no need in locks since we validate only one request can run at a time
161 | private final class LambdaChannelHandler: ChannelDuplexHandler {
| `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
162 | typealias InboundIn = NIOHTTPClientResponseFull
163 | typealias OutboundIn = HTTPRequestWrapper
:
197 | let timeoutTask = wrapper.request.timeout.map {
198 | context.eventLoop.scheduleTask(in: $0) {
199 | guard case .running = self.state else {
| `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a `@Sendable` closure; this is an error in the Swift 6 language mode
200 | preconditionFailure("invalid state")
201 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 |
203 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[280/282] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[281/282] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[281/282] Applying MockServer
[283/285] Compiling AWSLambdaRuntime Lambda+Codable.swift
[284/285] Emitting module AWSLambdaRuntime
[285/285] Compiling AWSLambdaRuntime Context+Foundation.swift
[286/287] Compiling AWSLambdaTesting Lambda+Testing.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:87:73: warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 | }
80 |
81 | public static func test<Handler: EventLoopLambdaHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
82 | _ handlerType: Handler.Type,
83 | with event: Handler.Event,
:
85 | ) async throws -> Handler.Output {
86 | let context = Self.makeContext(config: config)
87 | let handler = try await Handler.makeHandler(context: context.0).get()
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
88 | return try await handler.handle(event, context: context.1).get()
89 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:88:68: warning: type 'Handler.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
86 | let context = Self.makeContext(config: config)
87 | let handler = try await Handler.makeHandler(context: context.0).get()
88 | return try await handler.handle(event, context: context.1).get()
| `- warning: type 'Handler.Output' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
89 | }
90 |
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:97:73: warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
89 | }
90 |
91 | public static func test<Handler: ByteBufferLambdaHandler>(
| `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
92 | _ handlerType: Handler.Type,
93 | with buffer: ByteBuffer,
:
95 | ) async throws -> ByteBuffer? {
96 | let context = Self.makeContext(config: config)
97 | let handler = try await Handler.makeHandler(context: context.0).get()
| `- warning: type 'Handler' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
98 | return try await handler.handle(buffer, context: context.1).get()
99 | }
[287/287] Emitting module AWSLambdaTesting
Build complete! (52.92s)
Build complete.
{
"dependencies" : [
{
"identity" : "swift-nio",
"requirement" : {
"range" : [
{
"lower_bound" : "2.67.0",
"upper_bound" : "3.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-nio.git"
},
{
"identity" : "swift-log",
"requirement" : {
"range" : [
{
"lower_bound" : "1.5.4",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-log.git"
},
{
"identity" : "swift-docc-plugin",
"requirement" : {
"exact" : [
"1.3.0"
]
},
"type" : "sourceControl",
"url" : "https://github.com/apple/swift-docc-plugin"
}
],
"manifest_display_name" : "swift-aws-lambda-runtime",
"name" : "swift-aws-lambda-runtime",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "12.0"
},
{
"name" : "ios",
"version" : "15.0"
},
{
"name" : "tvos",
"version" : "15.0"
},
{
"name" : "watchos",
"version" : "8.0"
}
],
"products" : [
{
"name" : "AWSLambdaRuntime",
"targets" : [
"AWSLambdaRuntime"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaRuntimeCore",
"targets" : [
"AWSLambdaRuntimeCore"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "AWSLambdaPackager",
"targets" : [
"AWSLambdaPackager"
],
"type" : {
"plugin" : null
}
},
{
"name" : "AWSLambdaTesting",
"targets" : [
"AWSLambdaTesting"
],
"type" : {
"library" : [
"automatic"
]
}
},
{
"name" : "MockServer",
"targets" : [
"MockServer"
],
"type" : {
"executable" : null
}
}
],
"targets" : [
{
"c99name" : "MockServer",
"module_type" : "SwiftTarget",
"name" : "MockServer",
"path" : "Sources/MockServer",
"product_dependencies" : [
"NIOHTTP1",
"NIO"
],
"product_memberships" : [
"MockServer"
],
"sources" : [
"main.swift"
],
"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+CodableTest.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore",
"AWSLambdaRuntime"
],
"type" : "test"
},
{
"c99name" : "AWSLambdaRuntimeCoreTests",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntimeCoreTests",
"path" : "Tests/AWSLambdaRuntimeCoreTests",
"product_dependencies" : [
"NIOTestUtils",
"NIOFoundationCompat"
],
"sources" : [
"ControlPlaneRequestEncoderTests.swift",
"ControlPlaneRequestTests.swift",
"DetachedTasksTests.swift",
"LambdaHandlerTest.swift",
"LambdaHandlers.swift",
"LambdaRequestIDTests.swift",
"LambdaRunnerTest.swift",
"LambdaRuntimeClientTest.swift",
"LambdaRuntimeTest.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",
"NIOHTTP1",
"NIOCore",
"NIOConcurrencyHelpers",
"NIOPosix"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaRuntimeCore",
"AWSLambdaTesting"
],
"sources" : [
"ControlPlaneRequest.swift",
"ControlPlaneRequestEncoder.swift",
"DetachedTasks.swift",
"HTTPClient.swift",
"Lambda+LocalServer.swift",
"Lambda+String.swift",
"Lambda.swift",
"LambdaConfiguration.swift",
"LambdaContext.swift",
"LambdaHandler.swift",
"LambdaRequestID.swift",
"LambdaRunner.swift",
"LambdaRuntime.swift",
"LambdaRuntimeClient.swift",
"Terminator.swift",
"Utils.swift"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaRuntime",
"module_type" : "SwiftTarget",
"name" : "AWSLambdaRuntime",
"path" : "Sources/AWSLambdaRuntime",
"product_dependencies" : [
"NIOCore",
"NIOFoundationCompat"
],
"product_memberships" : [
"AWSLambdaRuntime",
"AWSLambdaTesting"
],
"sources" : [
"Context+Foundation.swift",
"Lambda+Codable.swift"
],
"target_dependencies" : [
"AWSLambdaRuntimeCore"
],
"type" : "library"
},
{
"c99name" : "AWSLambdaPackager",
"module_type" : "PluginTarget",
"name" : "AWSLambdaPackager",
"path" : "Plugins/AWSLambdaPackager",
"plugin_capability" : {
"intent" : {
"description" : "Archive the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions.",
"type" : "custom",
"verb" : "archive"
},
"permissions" : [
],
"type" : "command"
},
"product_memberships" : [
"AWSLambdaPackager"
],
"sources" : [
"Plugin.swift"
],
"type" : "plugin"
}
],
"tools_version" : "5.9"
}
✅ Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path: $PWD/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3
Repository: swift-server/swift-aws-lambda-runtime
Swift version used: 6.0
.package(url: "https://github.com/apple/swift-docc-plugin", exact: "1.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", exact: "1.3.0"),
.package(url: "https://github.com/apple/swift-docc-plugin", exact: "1.3.0"),
Target: AWSLambdaRuntime
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/swift-docc-render-artifact/.git/
From https://github.com/swiftlang/swift-docc-render-artifact
* branch 88815688627177b9716a01ca41da19397bd30e47 -> FETCH_HEAD
HEAD is now at 8881568 Update the artifact
Generating documentation for 'AWSLambdaRuntime'...
Converting documentation...
Conversion complete! (0.10s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3'
Building for debugging...
[0/8] Write snippet-extract-tool-entitlement.plist
[1/8] Write sources
[4/8] Write swift-version--7754E27361AE5C74.txt
[6/53] Compiling SymbolKit SemanticVersion.swift
[7/53] Compiling SymbolKit AccessControl.swift
[8/53] Compiling SymbolKit Availability.swift
[9/53] Compiling SymbolKit AvailabilityItem.swift
[10/53] Compiling SymbolKit Domain.swift
[11/53] Compiling SymbolKit Identifier.swift
[12/53] Compiling SymbolKit KindIdentifier.swift
[13/53] Compiling SymbolKit Location.swift
[14/53] Compiling SymbolKit Mutability.swift
[15/57] Emitting module SymbolKit
[16/57] Compiling SymbolKit Mixin+Equals.swift
[17/57] Compiling SymbolKit Mixin+Hash.swift
[18/57] Compiling SymbolKit Mixin.swift
[19/57] Compiling SymbolKit LineList.swift
[20/57] Compiling SymbolKit Position.swift
[21/57] Compiling SymbolKit Names.swift
[22/57] Compiling SymbolKit SPI.swift
[23/57] Compiling SymbolKit Snippet.swift
[24/57] Compiling SymbolKit Extension.swift
[25/57] Compiling SymbolKit DeclarationFragments.swift
[26/57] Compiling SymbolKit Fragment.swift
[27/57] Compiling SymbolKit FragmentKind.swift
[28/57] Compiling SymbolKit FunctionParameter.swift
[29/57] Compiling SymbolKit FunctionSignature.swift
[30/57] Compiling SymbolKit SourceRange.swift
[31/57] Compiling SymbolKit Metadata.swift
[32/57] Compiling SymbolKit Module.swift
[33/57] Compiling SymbolKit OperatingSystem.swift
[34/57] Compiling SymbolKit Platform.swift
[35/57] Compiling SymbolKit GenericConstraint.swift
[36/57] Compiling SymbolKit GenericParameter.swift
[37/57] Compiling SymbolKit Generics.swift
[38/57] Compiling SymbolKit Namespace.swift
[39/57] Compiling SymbolKit Relationship.swift
[40/57] Compiling SymbolKit RelationshipKind.swift
[41/57] Compiling SymbolKit SourceOrigin.swift
[42/57] Compiling SymbolKit GenericConstraints.swift
[43/57] Compiling SymbolKit Swift.swift
[44/57] Compiling SymbolKit Symbol.swift
[45/57] Compiling SymbolKit SymbolKind.swift
[46/57] Compiling SymbolKit SymbolGraph.swift
[47/57] Compiling SymbolKit GraphCollector.swift
[48/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[49/57] Compiling SymbolKit UnifiedSymbol.swift
[50/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[51/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[52/57] Compiling Snippets Snippet.swift
[53/57] Compiling Snippets SnippetParser.swift
[54/57] Emitting module Snippets
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Emitting module snippet_extract
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (3.59s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
[2/55] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[3/55] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[4/55] Compiling InternalCollectionsUtilities Specialize.swift
[5/56] Compiling InternalCollectionsUtilities _SortedCollection.swift
[6/56] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[7/56] Compiling InternalCollectionsUtilities Debugging.swift
[8/56] Compiling InternalCollectionsUtilities Descriptions.swift
[9/56] Compiling Atomics UnsafeAtomic.swift
[10/56] Compiling Atomics UnsafeAtomicLazyReference.swift
[17/58] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[18/58] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[19/58] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[20/58] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[21/58] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[22/58] Emitting module _NIOBase64
[23/58] Compiling _NIOBase64 Base64.swift
[24/58] Compiling Atomics IntegerOperations.swift
[25/58] Compiling Atomics Unmanaged extensions.swift
[26/58] Compiling NIOConcurrencyHelpers lock.swift
[27/58] Compiling _NIODataStructures _TinyArray.swift
[28/58] Compiling _NIODataStructures Heap.swift
[29/58] Compiling _NIODataStructures PriorityQueue.swift
[30/58] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[31/58] Compiling NIOConcurrencyHelpers NIOLock.swift
[32/58] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[33/58] Compiling NIOConcurrencyHelpers atomics.swift
[34/58] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[35/58] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[36/58] Compiling InternalCollectionsUtilities Integer rank.swift
[37/58] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[38/58] Emitting module _NIODataStructures
[39/58] Emitting module NIOConcurrencyHelpers
[40/58] Compiling InternalCollectionsUtilities UInt+reversed.swift
[41/58] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[46/58] Emitting module InternalCollectionsUtilities
[47/58] Compiling Logging LogHandler.swift
[48/58] Compiling Logging Logging.swift
[49/58] Emitting module Logging
[50/58] Compiling Logging Locks.swift
[51/58] Compiling Logging MetadataProvider.swift
[52/74] Compiling DequeModule Deque+Codable.swift
[53/74] Compiling DequeModule Deque+Collection.swift
[54/74] Compiling DequeModule Deque+CustomReflectable.swift
[55/74] Compiling DequeModule Deque+Descriptions.swift
[56/74] Compiling DequeModule Deque+Testing.swift
[57/74] Compiling DequeModule Deque._Storage.swift
[58/74] Compiling DequeModule _DequeSlot.swift
[59/74] Compiling DequeModule _DequeBuffer.swift
[60/75] Compiling DequeModule Deque+Equatable.swift
[61/75] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[66/75] Compiling DequeModule _DequeBufferHeader.swift
[67/75] Compiling DequeModule _UnsafeWrappedBuffer.swift
[68/75] Compiling DequeModule Deque+Extras.swift
[69/75] Compiling DequeModule Deque+Hashable.swift
[70/75] Compiling DequeModule Deque._UnsafeHandle.swift
[71/75] Compiling DequeModule Deque.swift
[72/75] Emitting module Atomics
[75/75] Emitting module DequeModule
[76/137] Compiling NIOCore Linux.swift
[77/137] Compiling NIOCore MarkedCircularBuffer.swift
[78/137] Compiling NIOCore MulticastChannel.swift
[79/137] Compiling NIOCore NIOAny.swift
[80/137] Compiling NIOCore NIOCloseOnErrorHandler.swift
[81/137] Compiling NIOCore NIOLoopBound.swift
[82/143] Compiling NIOCore AddressedEnvelope.swift
[83/143] Compiling NIOCore AsyncAwaitSupport.swift
[84/143] Compiling NIOCore AsyncChannel.swift
[85/143] Compiling NIOCore AsyncChannelHandler.swift
[86/143] Compiling NIOCore AsyncChannelInboundStream.swift
[87/143] Compiling NIOCore AsyncChannelOutboundWriter.swift
[88/143] Compiling NIOCore NIOAsyncSequenceProducer.swift
[89/143] Compiling NIOCore NIOScheduledCallback.swift
[90/143] Compiling NIOCore NIOSendable.swift
[91/143] Compiling NIOCore PointerHelpers.swift
[92/143] Compiling NIOCore RecvByteBufferAllocator.swift
[93/143] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[94/143] Compiling NIOCore SocketAddresses.swift
[95/143] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[96/143] Compiling NIOCore EventLoopFuture+Deprecated.swift
[97/143] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[98/143] Compiling NIOCore EventLoopFuture.swift
[99/143] Compiling NIOCore FileDescriptor.swift
[100/143] Compiling NIOCore FileHandle.swift
[101/143] Compiling NIOCore FileRegion.swift
[102/143] Compiling NIOCore GlobalSingletons.swift
[103/143] Compiling NIOCore IO.swift
[104/143] Compiling NIOCore IOData.swift
[105/143] Compiling NIOCore IPProtocol.swift
[106/143] Compiling NIOCore IntegerBitPacking.swift
[107/143] Compiling NIOCore IntegerTypes.swift
[108/143] Compiling NIOCore Interfaces.swift
[109/143] Compiling NIOCore Codec.swift
[110/143] Compiling NIOCore ConvenienceOptionSupport.swift
[111/143] Compiling NIOCore DeadChannel.swift
[112/143] Compiling NIOCore DispatchQueue+WithFuture.swift
[113/143] Compiling NIOCore EventLoop+Deprecated.swift
[114/143] Compiling NIOCore EventLoop+SerialExecutor.swift
[115/143] Compiling NIOCore EventLoop.swift
[116/143] Compiling NIOCore SocketOptionProvider.swift
[117/143] Compiling NIOCore SystemCallHelpers.swift
[118/143] Compiling NIOCore TimeAmount+Duration.swift
[119/143] Compiling NIOCore TypeAssistedChannelHandler.swift
[120/143] Compiling NIOCore UniversalBootstrapSupport.swift
[121/143] Compiling NIOCore Utilities.swift
[122/143] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[123/143] Compiling NIOCore NIOAsyncWriter.swift
[124/143] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[125/143] Compiling NIOCore BSDSocketAPI.swift
[126/143] Compiling NIOCore ByteBuffer-aux.swift
[127/143] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[128/143] Compiling NIOCore ByteBuffer-conversions.swift
[129/143] Compiling NIOCore ByteBuffer-core.swift
[130/143] Compiling NIOCore ByteBuffer-hex.swift
[131/143] Compiling NIOCore ByteBuffer-int.swift
[132/143] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[133/143] Compiling NIOCore ByteBuffer-multi-int.swift
[134/143] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[135/143] Compiling NIOCore ByteBuffer-views.swift
[136/143] Compiling NIOCore Channel.swift
[137/143] Compiling NIOCore ChannelHandler.swift
[138/143] Compiling NIOCore ChannelHandlers.swift
[139/143] Compiling NIOCore ChannelInvoker.swift
[140/143] Compiling NIOCore ChannelOption.swift
[141/143] Compiling NIOCore ChannelPipeline.swift
[142/143] Compiling NIOCore CircularBuffer.swift
[143/143] Emitting module NIOCore
[144/197] Emitting module NIOEmbedded
[145/197] Compiling NIOEmbedded AsyncTestingChannel.swift
[146/197] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[147/197] Compiling NIOEmbedded Embedded.swift
[148/197] Compiling NIOPosix SocketProtocols.swift
[149/197] Compiling NIOPosix System.swift
[150/197] Compiling NIOPosix Thread.swift
[151/197] Compiling NIOPosix ThreadPosix.swift
[152/197] Compiling NIOPosix ThreadWindows.swift
[153/197] Compiling NIOPosix PooledRecvBufferAllocator.swift
[154/197] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[155/197] Compiling NIOPosix PosixSingletons.swift
[156/197] Compiling NIOPosix RawSocketBootstrap.swift
[157/197] Compiling NIOPosix Resolver.swift
[158/197] Compiling NIOPosix GetaddrinfoResolver.swift
[159/197] Compiling NIOPosix HappyEyeballs.swift
[160/197] Compiling NIOPosix IO.swift
[161/197] Compiling NIOPosix IntegerBitPacking.swift
[162/197] Compiling NIOPosix IntegerTypes.swift
[163/197] Compiling NIOPosix Linux.swift
[164/197] Compiling NIOPosix PendingWritesManager.swift
[165/197] Compiling NIOPosix PipeChannel.swift
[166/197] Compiling NIOPosix PipePair.swift
[167/197] Compiling NIOPosix PointerHelpers.swift
[168/197] Compiling NIOPosix Pool.swift
[169/202] Compiling NIOPosix Selectable.swift
[170/202] Compiling NIOPosix SelectableChannel.swift
[171/202] Compiling NIOPosix SelectableEventLoop.swift
[172/202] Compiling NIOPosix SelectorEpoll.swift
[173/202] Compiling NIOPosix SelectorGeneric.swift
[174/202] Emitting module NIOPosix
[175/202] Compiling NIOPosix SelectorKqueue.swift
[176/202] Compiling NIOPosix SelectorUring.swift
[177/202] Compiling NIOPosix ServerSocket.swift
[178/202] Compiling NIOPosix Socket.swift
[179/202] Compiling NIOPosix SocketChannel.swift
[180/202] Compiling NIOPosix BaseStreamSocketChannel.swift
[181/202] Compiling NIOPosix Bootstrap.swift
[182/202] Compiling NIOPosix ControlMessage.swift
[183/202] Compiling NIOPosix DatagramVectorReadManager.swift
[184/202] Compiling NIOPosix Errors+Any.swift
[185/202] Compiling NIOPosix FileDescriptor.swift
[186/202] Compiling NIOPosix BSDSocketAPICommon.swift
[187/202] Compiling NIOPosix BSDSocketAPIPosix.swift
[188/202] Compiling NIOPosix BSDSocketAPIWindows.swift
[189/202] Compiling NIOPosix BaseSocket.swift
[190/202] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[191/202] Compiling NIOPosix BaseSocketChannel.swift
[192/202] Compiling NIOPosix LinuxCPUSet.swift
[193/202] Compiling NIOPosix LinuxUring.swift
[194/202] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[195/202] Compiling NIOPosix NIOThreadPool.swift
[196/202] Compiling NIOPosix NonBlockingFileIO.swift
[197/202] Compiling NIOPosix PendingDatagramWritesManager.swift
[198/202] Compiling NIOPosix UnsafeTransfer.swift
[199/202] Compiling NIOPosix Utilities.swift
[200/202] Compiling NIOPosix VsockAddress.swift
[201/202] Compiling NIOPosix VsockChannelEvents.swift
[202/202] Compiling NIOPosix resource_bundle_accessor.swift
[203/204] Emitting module NIO
[204/204] Compiling NIO Exports.swift
[205/225] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[206/226] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[207/226] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[208/226] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[209/226] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[210/226] Emitting module NIOFoundationCompat
[211/226] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[212/226] Emitting module NIOHTTP1
[213/226] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[214/226] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[215/226] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[216/226] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[217/226] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[218/226] Compiling NIOHTTP1 ByteCollectionUtils.swift
[219/226] Compiling NIOHTTP1 HTTPDecoder.swift
[220/226] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[221/226] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[222/226] Compiling NIOHTTP1 HTTPTypes.swift
[223/226] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[224/226] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[225/226] Compiling NIOHTTP1 HTTPEncoder.swift
[226/226] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[227/242] Compiling AWSLambdaRuntimeCore Terminator.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
72 | errors.append(error)
73 | }
74 | return terminate(iterator, errors: errors, promise: promise)
| `- warning: reference to captured var 'iterator' in concurrently-executing code; this is an error in the Swift 6 language mode
75 | }
76 | }
[228/243] Compiling AWSLambdaRuntimeCore Utils.swift
[229/243] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[230/243] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
[231/243] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 | case .success(let response):
142 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
176 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | case .success(let invocation):
178 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[232/243] Compiling AWSLambdaRuntimeCore Lambda+String.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
138 | case .failure(let error):
139 | self.logger.error("invocation error: \(error)")
140 | self.writeResponse(context: context, response: .init(status: .internalServerError))
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
141 | case .success(let response):
142 | self.writeResponse(context: context, response: response)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 | case .failure(let error):
175 | self.logger.error("invocation error: \(error)")
176 | self.writeResponse(context: context, status: .internalServerError)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
177 | case .success(let invocation):
178 | Self.invocationState = .waitingForLambdaResponse(invocation)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[233/243] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[234/243] Compiling AWSLambdaRuntimeCore DetachedTasks.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 |
203 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[235/243] Compiling AWSLambdaRuntimeCore HTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
201 | }
202 |
203 | context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
| `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a `@Sendable` closure; this is an error in the Swift 6 language mode
204 | }
205 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1507:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1505 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1506 | /// `ChannelHandler`.
1507 | public final class ChannelHandlerContext: ChannelInvoker {
| `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1508 | // visible for ChannelPipeline to modify
1509 | fileprivate var next: Optional<ChannelHandlerContext>
[236/243] Compiling AWSLambdaRuntimeCore Lambda.swift
[237/243] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[238/243] Compiling AWSLambdaRuntimeCore LambdaRuntime.swift
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:180:29: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
178 | // invocation request might have been cancelled. For this reason we
179 | // succeed the promise here.
180 | logger.log(level: .info, "lambda invocation sequence has been cancelled for shutdown")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | return promise.succeed(count)
182 | }
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:183:25: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
181 | return promise.succeed(count)
182 | }
183 | logger.log(level: .error, "lambda invocation sequence has been cancelled unexpectedly")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | promise.fail(HTTPClient.Errors.cancelled)
185 | case .failure(let error):
/Users/admin/builder/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:186:25: warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
184 | promise.fail(HTTPClient.Errors.cancelled)
185 | case .failure(let error):
186 | logger.log(level: .error, "lambda invocation sequence completed with error: \(error)")
| `- warning: reference to captured var 'logger' in concurrently-executing code; this is an error in the Swift 6 language mode
187 | promise.fail(error)
188 | }
[239/243] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[240/243] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[241/243] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
[242/243] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
[243/243] Emitting module AWSLambdaRuntimeCore
[244/246] Compiling AWSLambdaRuntime Lambda+Codable.swift
[245/246] Emitting module AWSLambdaRuntime
[246/246] Compiling AWSLambdaRuntime Context+Foundation.swift
Build of target: 'AWSLambdaRuntime' complete! (7.32s)
Target: AWSLambdaRuntimeCore
Generating documentation for 'AWSLambdaRuntimeCore'...
Converting documentation...
warning: Return value documented for instance method returning void
--> ../LambdaHandler.swift:52:9-52:75
50 | /// - buffer: A `ByteBuffer` to encode into, will be overwritten.
51 | ///
52 + /// - Returns: A `ByteBuffer` with the encoded version of the `value`.
| ╰─suggestion: Remove return value documentation
53 | func encode(value: Output, into buffer: inout ByteBuffer) throws
54 |
warning: Return value documented for instance method returning void
--> ../LambdaHandler.swift:174:9-174:75
172 | /// - buffer: A `ByteBuffer` to encode into, will be overwritten.
173 | ///
174 + /// - Returns: A `ByteBuffer` with the encoded version of the `value`.
| ╰─suggestion: Remove return value documentation
175 | func encode(value: Output, into buffer: inout ByteBuffer) throws
176 |
warning: Return value documented for instance method returning void
--> ../LambdaHandler.swift:319:9-319:75
317 | /// - buffer: A `ByteBuffer` to encode into, will be overwritten.
318 | ///
319 + /// - Returns: A `ByteBuffer` with the encoded version of the `value`.
| ╰─suggestion: Remove return value documentation
320 | func encode(value: Output, into buffer: inout ByteBuffer) throws
321 |
warning: Parameter 'event' not found in instance method declaration
--> ../LambdaHandler.swift:415:13-416:9
413 | /// - parameters:
414 | /// - context: Runtime ``LambdaContext``.
415 + /// - event: The event or input payload encoded as `ByteBuffer`.
| ╰─suggestion: Remove 'event' parameter documentation
416 + ///
417 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
418 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: Parameter 'buffer' is missing documentation
--> ../LambdaHandler.swift:416:9-416:9
414 | /// - context: Runtime ``LambdaContext``.
| ╰─suggestion: Document 'buffer' parameter
415 | /// - event: The event or input payload encoded as `ByteBuffer`.
416 + ///
417 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
418 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: Parameter 'event' not found in instance method declaration
--> ../LambdaHandler.swift:451:13-452:9
449 | /// - parameters:
450 | /// - context: Runtime ``LambdaContext``.
451 + /// - event: The event or input payload encoded as `ByteBuffer`.
| ╰─suggestion: Remove 'event' parameter documentation
452 + ///
453 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
454 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: Parameter 'buffer' is missing documentation
--> ../LambdaHandler.swift:452:9-452:9
450 | /// - context: Runtime ``LambdaContext``.
| ╰─suggestion: Document 'buffer' parameter
451 | /// - event: The event or input payload encoded as `ByteBuffer`.
452 + ///
453 | /// - Returns: An `EventLoopFuture` to report the result of the Lambda back to the runtime engine.
454 | /// The `EventLoopFuture` should be completed with either a response encoded as `ByteBuffer` or an `Error`.
warning: 'Handler' doesn't exist at '/AWSLambdaRuntimeCore/LambdaRuntimeFactory/makeRuntime(handlerProvider:eventLoop:logger:)'
--> ../LambdaRuntime.swift:304:52-304:59
302 | ///
303 | /// - parameters:
304 + /// - handlerProvider: A provider of the ``Handler`` the `LambdaRuntime` will manage.
305 | /// - eventLoop: An `EventLoop` to run the Lambda on.
306 | /// - logger: A `Logger` to log the Lambda events.
warning: 'Handler' doesn't exist at '/AWSLambdaRuntimeCore/LambdaRuntimeFactory/makeRuntime(handlerProvider:eventLoop:logger:)'
--> ../LambdaRuntime.swift:323:52-323:59
321 | ///
322 | /// - parameters:
323 + /// - handlerProvider: A provider of the ``Handler`` the `LambdaRuntime` will manage.
324 | /// - eventLoop: An `EventLoop` to run the Lambda on.
325 | /// - logger: A `Logger` to log the Lambda events.Conversion complete! (0.10s)
Generated DocC archive at '/Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3'
Building for debugging...
[0/3] Write swift-version--7754E27361AE5C74.txt
Build of product 'snippet-extract' complete! (0.26s)
Building for debugging...
[0/1] Write swift-version--7754E27361AE5C74.txt
Build of target: 'AWSLambdaRuntimeCore' complete! (0.24s)
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3/index/index.json
Successfully merged into /Users/admin/builder/spi-builder-workspace/.docs-staging/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3/linkable-paths.json
306
12 /Users/admin/builder/spi-builder-workspace/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3
✅ Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/swift-server/swift-aws-lambda-runtime/1.0.0-alpha.3
File count: 306
Doc size: 12.0MB
Preparing doc bundle ...
Uploading prod-swift-server-swift-aws-lambda-runtime-1.0.0-alpha.3-3698a760.zip to s3://spi-docs-inbox/prod-swift-server-swift-aws-lambda-runtime-1.0.0-alpha.3-3698a760.zip
Copying... [10%]
Copying... [20%]
Copying... [31%]
Copying... [40%]
Copying... [50%]
Copying... [61%]
Copying... [70%]
Copying... [81%]
Copying... [90%]
Copying... [100%]
Done.