Build Information
Successful build of swift-aws-lambda-runtime, reference 1.0.0-alpha.3 (5ecc24
), with Swift 6.0 for Linux on 26 Nov 2024 22:50:56 UTC.
Swift 6 data race errors: 10
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
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
========================================
Build
========================================
Selected platform: linux
Swift version: 6.0
Building package at path: $PWD
https://github.com/swift-server/swift-aws-lambda-runtime.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -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 2>&1
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
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
[2039/5736] Fetching swift-docc-plugin, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.73s)
Fetched https://github.com/apple/swift-docc-plugin from cache (0.74s)
[1/71935] Fetching swift-nio
Fetched https://github.com/apple/swift-nio.git from cache (3.85s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (2.51s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3186] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.36s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (0.53s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.2 (0.39s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.76.1 (0.71s)
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
[1570/5488] Fetching swift-atomics, swift-system
Fetched https://github.com/apple/swift-atomics.git from cache (0.34s)
[3919/3919] Fetching swift-system
[3920/19516] Fetching swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.40s)
[936/15597] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.19s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.49s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (0.52s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.79s)
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-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-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-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-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-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-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
[1/1] Compiling plugin AWSLambdaPackager
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
29 | func addTargetDependencies(_ target: Target) {
30 | for dependency in target.dependencies {
31 | switch dependency {
| |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
| `- note: handle unknown values using "@unknown default"
32 | case .product(let product):
33 | addTargets(product.targets)
[3/3] Compiling plugin Swift-DocC Preview
Building for debugging...
[3/47] Write sources
[19/47] Compiling CNIOWASI CNIOWASI.c
[20/47] Compiling CNIOLinux liburing_shims.c
[20/47] Compiling CNIOWindows shim.c
[22/47] Compiling CNIOWindows WSAStartup.c
[23/47] Compiling _AtomicsShims.c
[24/47] Compiling CNIOLLHTTP c_nio_http.c
[24/47] Write sources
[26/47] Compiling CNIODarwin shim.c
[27/47] Compiling CNIOLinux shim.c
[28/47] Compiling CNIOLLHTTP c_nio_api.c
[29/47] Write swift-version-24593BA9C3E375BF.txt
[30/47] Compiling CNIOLLHTTP c_nio_llhttp.c
[31/94] Compiling c-nioatomics.c
[32/94] Compiling c-atomics.c
[34/100] Emitting module Atomics
[35/102] Compiling Atomics IntegerOperations.swift
[36/102] Compiling Atomics Unmanaged extensions.swift
[37/102] Compiling Atomics ManagedAtomic.swift
[38/102] Compiling Atomics ManagedAtomicLazyReference.swift
[39/104] Compiling _NIOBase64 Base64.swift
[40/104] Emitting module _NIOBase64
[41/105] Compiling Atomics AtomicOptionalWrappable.swift
[42/105] Compiling Atomics AtomicMemoryOrderings.swift
[43/105] Compiling Logging LogHandler.swift
[44/105] Compiling Atomics Primitives.shims.swift
[45/105] Compiling Atomics AtomicInteger.swift
[48/105] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[49/105] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[50/105] Compiling _NIODataStructures PriorityQueue.swift
[51/105] Compiling _NIODataStructures _TinyArray.swift
[52/105] Compiling Atomics DoubleWord.swift
[53/105] Compiling Atomics IntegerConformances.swift
[54/105] Compiling Atomics OptionalRawRepresentable.swift
[55/105] Compiling Atomics RawRepresentable.swift
[56/105] Compiling Atomics AtomicBool.swift
[57/105] Emitting module InternalCollectionsUtilities
[58/105] Compiling Atomics AtomicReference.swift
[59/105] Compiling Atomics AtomicStorage.swift
[60/105] Compiling Atomics AtomicValue.swift
[61/105] Compiling Atomics PointerConformances.swift
[62/105] Compiling Atomics Primitives.native.swift
[78/106] Wrapping AST for _NIOBase64 for debugging
[82/107] Wrapping AST for Atomics for debugging
[83/107] Wrapping AST for InternalCollectionsUtilities for debugging
[85/122] Emitting module NIOConcurrencyHelpers
[86/122] Compiling NIOConcurrencyHelpers lock.swift
[87/122] Emitting module Logging
[88/122] Compiling Logging Locks.swift
[89/122] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[90/122] Compiling NIOConcurrencyHelpers NIOLock.swift
[91/122] Compiling NIOConcurrencyHelpers atomics.swift
[92/122] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[93/122] Emitting module _NIODataStructures
[94/122] Compiling _NIODataStructures Heap.swift
[95/124] Compiling DequeModule Deque+CustomReflectable.swift
[96/124] Compiling DequeModule Deque+Descriptions.swift
[97/124] Compiling Logging MetadataProvider.swift
[99/126] Compiling Logging Logging.swift
[100/127] Wrapping AST for _NIODataStructures for debugging
[103/127] Compiling DequeModule _DequeBuffer.swift
[104/127] Compiling DequeModule _DequeBufferHeader.swift
[104/127] Wrapping AST for NIOConcurrencyHelpers for debugging
[106/127] Compiling DequeModule Deque+Extras.swift
[107/127] Compiling DequeModule Deque+Hashable.swift
[108/127] Compiling DequeModule _DequeSlot.swift
[109/127] Compiling DequeModule _UnsafeWrappedBuffer.swift
[110/127] Compiling DequeModule Deque+Testing.swift
[111/127] Compiling DequeModule Deque._Storage.swift
[112/127] Compiling DequeModule Deque+Equatable.swift
[113/127] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[114/127] Compiling DequeModule Deque._UnsafeHandle.swift
[115/127] Compiling DequeModule Deque.swift
[116/127] Compiling DequeModule Deque+Codable.swift
[117/127] Compiling DequeModule Deque+Collection.swift
[118/127] Emitting module DequeModule
[119/128] Wrapping AST for DequeModule for debugging
[121/188] Compiling NIOCore IO.swift
[122/188] Compiling NIOCore IOData.swift
[123/188] Compiling NIOCore IPProtocol.swift
[124/188] Compiling NIOCore IntegerBitPacking.swift
[125/188] Compiling NIOCore IntegerTypes.swift
[126/188] Compiling NIOCore Interfaces.swift
[127/188] Compiling NIOCore Linux.swift
[128/188] Compiling NIOCore MarkedCircularBuffer.swift
[129/188] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[130/188] Compiling NIOCore EventLoopFuture+Deprecated.swift
[131/188] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[132/188] Compiling NIOCore EventLoopFuture.swift
[133/188] Compiling NIOCore FileDescriptor.swift
[134/188] Compiling NIOCore FileHandle.swift
[135/188] Compiling NIOCore FileRegion.swift
[136/188] Compiling NIOCore GlobalSingletons.swift
[137/196] Compiling NIOCore AddressedEnvelope.swift
[138/196] Compiling NIOCore AsyncAwaitSupport.swift
[139/196] Compiling NIOCore AsyncChannel.swift
[140/196] Compiling NIOCore AsyncChannelHandler.swift
[141/196] Compiling NIOCore AsyncChannelInboundStream.swift
[142/196] Compiling NIOCore AsyncChannelOutboundWriter.swift
[143/196] Compiling NIOCore NIOAsyncSequenceProducer.swift
[144/196] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[145/196] Compiling NIOCore NIOAsyncWriter.swift
[146/196] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[147/196] Compiling NIOCore BSDSocketAPI.swift
[148/196] Compiling NIOCore ByteBuffer-aux.swift
[149/196] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[150/196] Compiling NIOCore ByteBuffer-conversions.swift
[151/196] Compiling NIOCore ByteBuffer-core.swift
[152/196] Compiling NIOCore ByteBuffer-hex.swift
[153/196] Compiling NIOCore ByteBuffer-int.swift
[154/196] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[155/196] Compiling NIOCore CircularBuffer.swift
[156/196] Compiling NIOCore Codec.swift
[157/196] Compiling NIOCore ConvenienceOptionSupport.swift
[158/196] Compiling NIOCore DeadChannel.swift
[159/196] Compiling NIOCore DispatchQueue+WithFuture.swift
[160/196] Compiling NIOCore EventLoop+Deprecated.swift
[161/196] Compiling NIOCore EventLoop+SerialExecutor.swift
[162/196] Compiling NIOCore EventLoop.swift
[163/196] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[164/196] Compiling NIOCore SocketAddresses.swift
[165/196] Compiling NIOCore SocketOptionProvider.swift
[166/196] Compiling NIOCore SystemCallHelpers.swift
[167/196] Compiling NIOCore TimeAmount+Duration.swift
[168/196] Compiling NIOCore TypeAssistedChannelHandler.swift
[169/196] Compiling NIOCore UniversalBootstrapSupport.swift
[170/196] Compiling NIOCore Utilities.swift
[171/196] Compiling NIOCore MulticastChannel.swift
[172/196] Compiling NIOCore NIOAny.swift
[173/196] Compiling NIOCore NIOCloseOnErrorHandler.swift
[174/196] Compiling NIOCore NIOLoopBound.swift
[175/196] Compiling NIOCore NIOScheduledCallback.swift
[176/196] Compiling NIOCore NIOSendable.swift
[177/196] Compiling NIOCore PointerHelpers.swift
[178/196] Compiling NIOCore RecvByteBufferAllocator.swift
[179/196] Compiling NIOCore ByteBuffer-multi-int.swift
[180/196] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[181/196] Compiling NIOCore ByteBuffer-views.swift
[182/196] Compiling NIOCore Channel.swift
[183/196] Compiling NIOCore ChannelHandler.swift
[184/196] Compiling NIOCore ChannelHandlers.swift
[185/196] Compiling NIOCore ChannelInvoker.swift
[186/196] Compiling NIOCore ChannelOption.swift
[187/196] Compiling NIOCore ChannelPipeline.swift
[188/196] Emitting module NIOCore
[189/197] Wrapping AST for NIOCore for debugging
[191/249] Emitting module NIOEmbedded
[192/249] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[193/249] Compiling NIOEmbedded AsyncTestingChannel.swift
[194/249] Compiling NIOEmbedded Embedded.swift
[195/250] Wrapping AST for NIOEmbedded for debugging
[197/250] Compiling NIOPosix Pool.swift
[198/250] Compiling NIOPosix PooledRecvBufferAllocator.swift
[199/250] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[200/250] Compiling NIOPosix PosixSingletons.swift
[201/250] Compiling NIOPosix RawSocketBootstrap.swift
[202/250] Compiling NIOPosix Resolver.swift
[203/250] Compiling NIOPosix Selectable.swift
[204/256] Compiling NIOPosix ThreadPosix.swift
[205/256] Compiling NIOPosix ThreadWindows.swift
[206/256] Compiling NIOPosix UnsafeTransfer.swift
[207/256] Compiling NIOPosix Utilities.swift
[208/256] Compiling NIOPosix VsockAddress.swift
[209/256] Compiling NIOPosix VsockChannelEvents.swift
[210/256] Compiling NIOPosix ServerSocket.swift
[211/256] Compiling NIOPosix Socket.swift
[212/256] Compiling NIOPosix SocketChannel.swift
[213/256] Compiling NIOPosix SocketProtocols.swift
[214/256] Compiling NIOPosix System.swift
[215/256] Compiling NIOPosix Thread.swift
[216/256] Compiling NIOPosix SelectableChannel.swift
[217/256] Compiling NIOPosix SelectableEventLoop.swift
[218/256] Compiling NIOPosix SelectorEpoll.swift
[219/256] Compiling NIOPosix SelectorGeneric.swift
[220/256] Compiling NIOPosix SelectorKqueue.swift
[221/256] Compiling NIOPosix SelectorUring.swift
[222/256] Emitting module NIOPosix
[223/256] Compiling NIOPosix IO.swift
[224/256] Compiling NIOPosix IntegerBitPacking.swift
[225/256] Compiling NIOPosix IntegerTypes.swift
[226/256] Compiling NIOPosix Linux.swift
[227/256] Compiling NIOPosix LinuxCPUSet.swift
[228/256] Compiling NIOPosix LinuxUring.swift
[229/256] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[230/256] Compiling NIOPosix NIOThreadPool.swift
[231/256] Compiling NIOPosix NonBlockingFileIO.swift
[232/256] Compiling NIOPosix PendingDatagramWritesManager.swift
[233/256] Compiling NIOPosix PendingWritesManager.swift
[234/256] Compiling NIOPosix PipeChannel.swift
[235/256] Compiling NIOPosix PipePair.swift
[236/256] Compiling NIOPosix PointerHelpers.swift
[237/256] Compiling NIOPosix BSDSocketAPICommon.swift
[238/256] Compiling NIOPosix BSDSocketAPIPosix.swift
[239/256] Compiling NIOPosix BSDSocketAPIWindows.swift
[240/256] Compiling NIOPosix BaseSocket.swift
[241/256] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[242/256] Compiling NIOPosix BaseSocketChannel.swift
[243/256] Compiling NIOPosix BaseStreamSocketChannel.swift
[244/256] Compiling NIOPosix Bootstrap.swift
[245/256] Compiling NIOPosix ControlMessage.swift
[246/256] Compiling NIOPosix DatagramVectorReadManager.swift
[247/256] Compiling NIOPosix Errors+Any.swift
[248/256] Compiling NIOPosix FileDescriptor.swift
[249/256] Compiling NIOPosix GetaddrinfoResolver.swift
[250/256] Compiling NIOPosix HappyEyeballs.swift
[251/257] Wrapping AST for NIOPosix for debugging
[253/259] Emitting module NIO
[254/259] Compiling NIO Exports.swift
[255/260] Wrapping AST for NIO for debugging
[257/280] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[258/280] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[259/282] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[260/282] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[261/282] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[262/282] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[263/282] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[264/282] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[265/282] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[266/282] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[267/282] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[268/282] Compiling NIOHTTP1 HTTPTypes.swift
[269/282] Emitting module NIOFoundationCompat
[270/282] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[271/282] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[272/282] Emitting module NIOHTTP1
[273/282] Compiling NIOHTTP1 ByteCollectionUtils.swift
[274/282] Compiling NIOHTTP1 HTTPDecoder.swift
[275/282] Compiling NIOHTTP1 HTTPEncoder.swift
[276/283] Wrapping AST for NIOHTTP1 for debugging
[278/300] Compiling AWSLambdaRuntimeCore LambdaContext.swift
/host/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)
/host/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)
/host/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)
/host/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)
/host/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
[279/300] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
/host/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)
/host/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)
/host/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)
/host/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)
/host/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
[280/302] Compiling AWSLambdaRuntimeCore Lambda.swift
/host/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 | }
/host/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 | }
[281/302] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
/host/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 | }
/host/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 | }
[282/302] Compiling AWSLambdaRuntimeCore LambdaRuntime.swift
/host/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
/host/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 {
/host/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)
/host/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):
/host/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 | }
/host/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):
/host/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 | }
/host/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 | }
/host/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
[283/302] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
/host/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
/host/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 {
/host/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)
/host/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):
/host/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 | }
/host/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):
/host/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 | }
/host/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 | }
/host/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
[284/302] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[285/302] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[286/302] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[287/302] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[288/302] Compiling AWSLambdaRuntimeCore DetachedTasks.swift
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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>
[289/302] Compiling AWSLambdaRuntimeCore HTTPClient.swift
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
/host/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>
[290/302] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/host/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 |
/host/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
/host/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):
/host/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)
/host/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>
/host/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):
/host/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)
/host/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>
/host/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 |
/host/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 |
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
[291/302] Compiling AWSLambdaRuntimeCore Lambda+String.swift
/host/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 |
/host/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
/host/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):
/host/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)
/host/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>
/host/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):
/host/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)
/host/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>
/host/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 |
/host/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 |
/host/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 | }
/host/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 | }
/host/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 | }
/host/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 | }
[292/302] Emitting module AWSLambdaRuntimeCore
/host/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 |
/host/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
/host/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)
/host/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)
/host/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)
/host/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)
/host/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
/host/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
/host/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 | }
/host/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
[293/302] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[295/303] Compiling AWSLambdaRuntimeCore Terminator.swift
/host/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 | }
/host/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 | }
/host/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 {
/host/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 | }
[296/303] Compiling AWSLambdaRuntimeCore Utils.swift
/host/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 | }
/host/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 | }
/host/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 {
/host/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 | }
[297/303] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
/host/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
/host/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
/host/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.
/host/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
/host/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 | }
/host/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
/host/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
/host/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 | }
/host/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))
/host/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 | }
[298/303] Emitting module MockServer
[299/303] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
/host/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
/host/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
/host/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.
/host/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
/host/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 | }
/host/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
/host/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
/host/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 | }
/host/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))
/host/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 | }
[300/303] Compiling MockServer main.swift
/host/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 |
/host/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 | }
/host/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 | }
[302/305] Wrapping AST for MockServer for debugging
[303/305] Write Objects.LinkFileList
[305/308] Compiling AWSLambdaRuntime Lambda+Codable.swift
[306/308] Compiling AWSLambdaRuntime Context+Foundation.swift
[307/308] Emitting module AWSLambdaRuntime
[308/309] Linking MockServer
[310/311] Emitting module AWSLambdaTesting
[311/311] Compiling AWSLambdaTesting Lambda+Testing.swift
/host/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 | }
/host/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 |
/host/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 | }
Build complete! (115.21s)
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" : "/host/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"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.