The Swift Package Index logo.Swift Package Index

Track the adoption of Swift 6 strict concurrency checks for data race safety. How many packages are Ready for Swift 6?

Build Information

Successful build of swift-aws-lambda-runtime, reference 0.5.2 (699ada), with Swift 6.0 for macOS (SPM) on 26 Nov 2024 22:37:25 UTC.

Swift 6 data race errors: 10

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

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