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 1.0.0-alpha.3 (5ecc24), with Swift 6.1 for Linux on 26 Apr 2025 15:37:10 UTC.

Swift 6 data race errors: 3

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/swift-server/swift-aws-lambda-runtime.git
Reference: 1.0.0-alpha.3
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/swift-server/swift-aws-lambda-runtime
 * tag               1.0.0-alpha.3 -> FETCH_HEAD
HEAD is now at 5ecc24f Add Breeze to projects.md (#343)
Cloned https://github.com/swift-server/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
5ecc24fa54e61756fe7a7a01f2451da1cffa916e
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/swift-server/swift-aws-lambda-runtime.git at 1.0.0-alpha.3
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.1
Building package at path:  $PWD
https://github.com/swift-server/swift-aws-lambda-runtime.git
https://github.com/swift-server/swift-aws-lambda-runtime.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.67.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "exact" : [
          "1.3.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "swift-aws-lambda-runtime",
  "name" : "swift-aws-lambda-runtime",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "AWSLambdaRuntime",
      "targets" : [
        "AWSLambdaRuntime"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AWSLambdaRuntimeCore",
      "targets" : [
        "AWSLambdaRuntimeCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AWSLambdaPackager",
      "targets" : [
        "AWSLambdaPackager"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "AWSLambdaTesting",
      "targets" : [
        "AWSLambdaTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MockServer",
      "targets" : [
        "MockServer"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MockServer",
      "module_type" : "SwiftTarget",
      "name" : "MockServer",
      "path" : "Sources/MockServer",
      "product_dependencies" : [
        "NIOHTTP1",
        "NIO"
      ],
      "product_memberships" : [
        "MockServer"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AWSLambdaTestingTests",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaTestingTests",
      "path" : "Tests/AWSLambdaTestingTests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AWSLambdaTesting",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaTesting",
      "path" : "Sources/AWSLambdaTesting",
      "product_dependencies" : [
        "NIO"
      ],
      "product_memberships" : [
        "AWSLambdaTesting"
      ],
      "sources" : [
        "Lambda+Testing.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntime"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AWSLambdaRuntimeTests",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntimeTests",
      "path" : "Tests/AWSLambdaRuntimeTests",
      "sources" : [
        "Lambda+CodableTest.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntimeCore",
        "AWSLambdaRuntime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AWSLambdaRuntimeCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntimeCoreTests",
      "path" : "Tests/AWSLambdaRuntimeCoreTests",
      "product_dependencies" : [
        "NIOTestUtils",
        "NIOFoundationCompat"
      ],
      "sources" : [
        "ControlPlaneRequestEncoderTests.swift",
        "ControlPlaneRequestTests.swift",
        "DetachedTasksTests.swift",
        "LambdaHandlerTest.swift",
        "LambdaHandlers.swift",
        "LambdaRequestIDTests.swift",
        "LambdaRunnerTest.swift",
        "LambdaRuntimeClientTest.swift",
        "LambdaRuntimeTest.swift",
        "LambdaTest.swift",
        "MockLambdaServer.swift",
        "Utils.swift",
        "UtilsTest.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntimeCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AWSLambdaRuntimeCore",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntimeCore",
      "path" : "Sources/AWSLambdaRuntimeCore",
      "product_dependencies" : [
        "Logging",
        "NIOHTTP1",
        "NIOCore",
        "NIOConcurrencyHelpers",
        "NIOPosix"
      ],
      "product_memberships" : [
        "AWSLambdaRuntime",
        "AWSLambdaRuntimeCore",
        "AWSLambdaTesting"
      ],
      "sources" : [
        "ControlPlaneRequest.swift",
        "ControlPlaneRequestEncoder.swift",
        "DetachedTasks.swift",
        "HTTPClient.swift",
        "Lambda+LocalServer.swift",
        "Lambda+String.swift",
        "Lambda.swift",
        "LambdaConfiguration.swift",
        "LambdaContext.swift",
        "LambdaHandler.swift",
        "LambdaRequestID.swift",
        "LambdaRunner.swift",
        "LambdaRuntime.swift",
        "LambdaRuntimeClient.swift",
        "Terminator.swift",
        "Utils.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AWSLambdaRuntime",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntime",
      "path" : "Sources/AWSLambdaRuntime",
      "product_dependencies" : [
        "NIOCore",
        "NIOFoundationCompat"
      ],
      "product_memberships" : [
        "AWSLambdaRuntime",
        "AWSLambdaTesting"
      ],
      "sources" : [
        "Context+Foundation.swift",
        "Lambda+Codable.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntimeCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AWSLambdaPackager",
      "module_type" : "PluginTarget",
      "name" : "AWSLambdaPackager",
      "path" : "Plugins/AWSLambdaPackager",
      "plugin_capability" : {
        "intent" : {
          "description" : "Archive the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions.",
          "type" : "custom",
          "verb" : "archive"
        },
        "permissions" : [
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "AWSLambdaPackager"
      ],
      "sources" : [
        "Plugin.swift"
      ],
      "type" : "plugin"
    }
  ],
  "tools_version" : "5.9"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/apple/swift-docc-plugin
Fetching https://github.com/apple/swift-nio.git
[1/2049] Fetching swift-docc-plugin
[227/5885] Fetching swift-docc-plugin, swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.36s)
[1/75431] Fetching swift-nio
Fetched https://github.com/apple/swift-docc-plugin from cache (3.57s)
Fetched https://github.com/apple/swift-nio.git from cache (3.65s)
Computing version for https://github.com/apple/swift-docc-plugin
Computed https://github.com/apple/swift-docc-plugin at 1.3.0 (5.72s)
Fetching https://github.com/apple/swift-docc-symbolkit
[1/3375] Fetching swift-docc-symbolkit
Fetched https://github.com/apple/swift-docc-symbolkit from cache (0.43s)
Computing version for https://github.com/apple/swift-docc-symbolkit
Computed https://github.com/apple/swift-docc-symbolkit at 1.0.0 (1.12s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.51s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.82.0 (0.77s)
Fetching https://github.com/apple/swift-atomics.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-system.git
[1/4353] Fetching swift-system
[4354/20595] Fetching swift-system, swift-collections
[12800/22300] Fetching swift-system, swift-collections, swift-atomics
Fetched https://github.com/apple/swift-system.git from cache (1.80s)
Fetched https://github.com/apple/swift-atomics.git from cache (1.81s)
Fetched https://github.com/apple/swift-collections.git from cache (1.82s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.2.0 (2.31s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.2 (1.00s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.73s)
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.82.0
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-docc-symbolkit
Working copy of https://github.com/apple/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.3
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.2
Creating working copy for https://github.com/apple/swift-docc-plugin
Working copy of https://github.com/apple/swift-docc-plugin resolved at 1.3.0
[1/1] Compiling plugin AWSLambdaPackager
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Preview/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[2/2] Compiling plugin Swift-DocC Preview
/host/spi-builder-workspace/.build/checkouts/swift-docc-plugin/Plugins/Swift-DocC Convert/Symbolic Links/SharedPackagePluginExtensions/PackageExtensions.swift:31:17: warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
 29 |         func addTargetDependencies(_ target: Target) {
 30 |             for dependency in target.dependencies {
 31 |                 switch dependency {
    |                 |- warning: switch covers known cases, but 'TargetDependency' may have additional unknown values; this is an error in the Swift 6 language mode
    |                 `- note: handle unknown values using "@unknown default"
 32 |                 case .product(let product):
 33 |                     addTargets(product.targets)
[3/3] Compiling plugin Swift-DocC
Building for debugging...
[3/47] Write sources
[20/47] Compiling CNIOWindows shim.c
[20/47] Compiling _AtomicsShims.c
[22/47] Compiling CNIOWindows WSAStartup.c
[23/47] Compiling CNIOWASI CNIOWASI.c
[24/47] Compiling CNIOLinux liburing_shims.c
[25/47] Compiling CNIOLLHTTP c_nio_http.c
[26/47] Compiling CNIODarwin shim.c
[27/47] Compiling CNIOLLHTTP c_nio_api.c
[28/47] Compiling CNIOLinux shim.c
[29/47] Write swift-version-24593BA9C3E375BF.txt
[30/47] Compiling CNIOLLHTTP c_nio_llhttp.c
[32/94] Emitting module InternalCollectionsUtilities
[33/96] Emitting module Logging
[34/96] Emitting module _NIOBase64
[35/96] Compiling _NIOBase64 Base64.swift
[36/97] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[37/97] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[39/97] Compiling _NIODataStructures PriorityQueue.swift
[40/97] Compiling _NIODataStructures _TinyArray.swift
[41/97] Compiling InternalCollectionsUtilities UInt+reversed.swift
[42/97] Compiling InternalCollectionsUtilities _UnsafeBitSet+Index.swift
[43/97] Compiling InternalCollectionsUtilities _UnsafeBitSet+_Word.swift
[44/97] Compiling InternalCollectionsUtilities _UnsafeBitSet.swift
[45/97] Compiling InternalCollectionsUtilities FixedWidthInteger+roundUpToPowerOfTwo.swift
[46/97] Compiling InternalCollectionsUtilities Integer rank.swift
[47/97] Compiling InternalCollectionsUtilities UInt+first and last set bit.swift
[50/97] Compiling InternalCollectionsUtilities Debugging.swift
[51/97] Compiling InternalCollectionsUtilities Descriptions.swift
[52/97] Compiling InternalCollectionsUtilities RandomAccessCollection+Offsets.swift
[53/97] Compiling InternalCollectionsUtilities Specialize.swift
[54/97] Compiling InternalCollectionsUtilities _SortedCollection.swift
[55/97] Compiling InternalCollectionsUtilities _UniqueCollection.swift
[56/99] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+SE-0370.swift
[57/99] Compiling InternalCollectionsUtilities UnsafeMutablePointer+SE-0370.swift
[58/99] Compiling InternalCollectionsUtilities UnsafeRawPointer extensions.swift
[69/100] Compiling Logging LogHandler.swift
[70/100] Wrapping AST for _NIOBase64 for debugging
[71/100] Compiling c-nioatomics.c
[72/100] Wrapping AST for InternalCollectionsUtilities for debugging
[74/115] Emitting module Atomics
[75/115] Compiling Atomics IntegerOperations.swift
[76/115] Compiling Atomics Unmanaged extensions.swift
[77/115] Compiling DequeModule Deque+CustomReflectable.swift
[78/115] Compiling DequeModule Deque+Descriptions.swift
[79/115] Compiling DequeModule Deque+Equatable.swift
[80/115] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[81/115] Compiling DequeModule _DequeBuffer.swift
[82/115] Compiling DequeModule _DequeBufferHeader.swift
[86/117] Compiling DequeModule Deque+Codable.swift
[87/117] Compiling DequeModule Deque+Collection.swift
[89/118] Wrapping AST for Atomics for debugging
[91/118] Compiling DequeModule Deque+Extras.swift
[92/118] Compiling DequeModule Deque+Hashable.swift
[92/118] Compiling c-atomics.c
[94/118] Emitting module _NIODataStructures
[95/118] Compiling _NIODataStructures Heap.swift
[96/119] Compiling Logging Locks.swift
[97/119] Compiling Logging MetadataProvider.swift
[98/125] Wrapping AST for _NIODataStructures for debugging
[99/125] Compiling DequeModule _DequeSlot.swift
[100/125] Compiling DequeModule _UnsafeWrappedBuffer.swift
[102/125] Compiling Logging Logging.swift
[104/126] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[105/126] Compiling DequeModule Deque+Testing.swift
[106/126] Compiling DequeModule Deque._Storage.swift
[107/126] Compiling DequeModule Deque._UnsafeHandle.swift
[108/126] Compiling DequeModule Deque.swift
[109/126] Compiling NIOConcurrencyHelpers NIOLock.swift
[110/126] Compiling NIOConcurrencyHelpers lock.swift
[113/126] Emitting module DequeModule
[114/127] Emitting module NIOConcurrencyHelpers
[116/127] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[117/127] Compiling NIOConcurrencyHelpers atomics.swift
[117/128] Wrapping AST for DequeModule for debugging
[119/128] Wrapping AST for NIOConcurrencyHelpers for debugging
[121/187] Compiling NIOCore MarkedCircularBuffer.swift
[122/187] Compiling NIOCore MulticastChannel.swift
[123/187] Compiling NIOCore NIOAny.swift
[124/187] Compiling NIOCore NIOCloseOnErrorHandler.swift
[125/187] Compiling NIOCore NIOLoopBound.swift
[126/187] Compiling NIOCore NIOScheduledCallback.swift
[127/187] Compiling NIOCore NIOSendable.swift
[128/187] Compiling NIOCore RecvByteBufferAllocator.swift
[129/195] Compiling NIOCore GlobalSingletons.swift
[130/195] Compiling NIOCore IO.swift
[131/195] Compiling NIOCore IOData.swift
[132/195] Compiling NIOCore IPProtocol.swift
[133/195] Compiling NIOCore IntegerBitPacking.swift
[134/195] Compiling NIOCore IntegerTypes.swift
[135/195] Compiling NIOCore Interfaces.swift
[136/195] Compiling NIOCore Linux.swift
[137/195] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[138/195] Compiling NIOCore SocketAddresses.swift
[139/195] Compiling NIOCore SocketOptionProvider.swift
[140/195] Compiling NIOCore SystemCallHelpers.swift
[141/195] Compiling NIOCore TimeAmount+Duration.swift
[142/195] Compiling NIOCore TypeAssistedChannelHandler.swift
[143/195] Compiling NIOCore UniversalBootstrapSupport.swift
[144/195] Compiling NIOCore Utilities.swift
[145/195] Compiling NIOCore EventLoop.swift
[146/195] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[147/195] Compiling NIOCore EventLoopFuture+Deprecated.swift
[148/195] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[149/195] Compiling NIOCore EventLoopFuture.swift
[150/195] Compiling NIOCore FileDescriptor.swift
[151/195] Compiling NIOCore FileHandle.swift
[152/195] Compiling NIOCore FileRegion.swift
[153/195] Compiling NIOCore ChannelPipeline.swift
[154/195] Compiling NIOCore CircularBuffer.swift
[155/195] Compiling NIOCore Codec.swift
[156/195] Compiling NIOCore ConvenienceOptionSupport.swift
[157/195] Compiling NIOCore DeadChannel.swift
[158/195] Compiling NIOCore DispatchQueue+WithFuture.swift
[159/195] Compiling NIOCore EventLoop+Deprecated.swift
[160/195] Compiling NIOCore EventLoop+SerialExecutor.swift
[161/195] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[162/195] Compiling NIOCore BSDSocketAPI.swift
[163/195] Compiling NIOCore ByteBuffer-aux.swift
[164/195] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[165/195] Compiling NIOCore ByteBuffer-conversions.swift
[166/195] Compiling NIOCore ByteBuffer-core.swift
[167/195] Compiling NIOCore ByteBuffer-hex.swift
[168/195] Compiling NIOCore ByteBuffer-int.swift
[169/195] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[170/195] Compiling NIOCore ByteBuffer-multi-int.swift
[171/195] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[172/195] Compiling NIOCore ByteBuffer-views.swift
[173/195] Compiling NIOCore Channel.swift
[174/195] Compiling NIOCore ChannelHandler.swift
[175/195] Compiling NIOCore ChannelHandlers.swift
[176/195] Compiling NIOCore ChannelInvoker.swift
[177/195] Compiling NIOCore ChannelOption.swift
[178/195] Compiling NIOCore AddressedEnvelope.swift
[179/195] Compiling NIOCore AsyncAwaitSupport.swift
[180/195] Compiling NIOCore AsyncChannel.swift
[181/195] Compiling NIOCore AsyncChannelHandler.swift
[182/195] Compiling NIOCore AsyncChannelInboundStream.swift
[183/195] Compiling NIOCore AsyncChannelOutboundWriter.swift
[184/195] Compiling NIOCore NIOAsyncSequenceProducer.swift
[185/195] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[186/195] Compiling NIOCore NIOAsyncWriter.swift
[187/195] Emitting module NIOCore
[188/196] Wrapping AST for NIOCore for debugging
[190/247] Emitting module NIOEmbedded
[191/247] Compiling NIOPosix PooledRecvBufferAllocator.swift
[192/247] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[193/247] Compiling NIOPosix PosixSingletons.swift
[194/247] Compiling NIOPosix RawSocketBootstrap.swift
[195/247] Compiling NIOPosix Resolver.swift
[196/247] Compiling NIOPosix Selectable.swift
[197/253] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[198/253] Compiling NIOEmbedded AsyncTestingChannel.swift
[199/253] Compiling NIOEmbedded Embedded.swift
[200/254] Wrapping AST for NIOEmbedded for debugging
[202/254] Compiling NIOPosix ThreadPosix.swift
[203/254] Compiling NIOPosix ThreadWindows.swift
[204/254] Compiling NIOPosix UnsafeTransfer.swift
[205/254] Compiling NIOPosix Utilities.swift
[206/254] Compiling NIOPosix VsockAddress.swift
[207/254] Compiling NIOPosix VsockChannelEvents.swift
[208/254] Compiling NIOPosix SelectableChannel.swift
[209/254] Compiling NIOPosix SelectableEventLoop.swift
[210/254] Compiling NIOPosix SelectorEpoll.swift
[211/254] Compiling NIOPosix SelectorGeneric.swift
[212/254] Compiling NIOPosix SelectorKqueue.swift
[213/254] Compiling NIOPosix SelectorUring.swift
[214/254] Compiling NIOPosix ServerSocket.swift
[215/254] Compiling NIOPosix Socket.swift
[216/254] Compiling NIOPosix SocketChannel.swift
[217/254] Compiling NIOPosix SocketProtocols.swift
[218/254] Compiling NIOPosix System.swift
[219/254] Compiling NIOPosix Thread.swift
[220/254] Compiling NIOPosix NIOThreadPool.swift
[221/254] Compiling NIOPosix NonBlockingFileIO.swift
[222/254] Compiling NIOPosix PendingDatagramWritesManager.swift
[223/254] Compiling NIOPosix PendingWritesManager.swift
[224/254] Compiling NIOPosix PipeChannel.swift
[225/254] Compiling NIOPosix PipePair.swift
[226/254] Compiling NIOPosix Pool.swift
[227/254] Compiling NIOPosix IO.swift
[228/254] Compiling NIOPosix IntegerBitPacking.swift
[229/254] Compiling NIOPosix IntegerTypes.swift
[230/254] Compiling NIOPosix Linux.swift
[231/254] Compiling NIOPosix LinuxCPUSet.swift
[232/254] Compiling NIOPosix LinuxUring.swift
[233/254] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[234/254] Compiling NIOPosix BSDSocketAPICommon.swift
[235/254] Compiling NIOPosix BSDSocketAPIPosix.swift
[236/254] Compiling NIOPosix BSDSocketAPIWindows.swift
[237/254] Compiling NIOPosix BaseSocket.swift
[238/254] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[239/254] Compiling NIOPosix BaseSocketChannel.swift
[240/254] Compiling NIOPosix BaseStreamSocketChannel.swift
[241/254] Emitting module NIOPosix
[242/254] Compiling NIOPosix Bootstrap.swift
[243/254] Compiling NIOPosix ControlMessage.swift
[244/254] Compiling NIOPosix DatagramVectorReadManager.swift
[245/254] Compiling NIOPosix Errors+Any.swift
[246/254] Compiling NIOPosix FileDescriptor.swift
[247/254] Compiling NIOPosix GetaddrinfoResolver.swift
[248/254] Compiling NIOPosix HappyEyeballs.swift
[249/255] Wrapping AST for NIOPosix for debugging
[251/257] Emitting module NIO
[252/257] Compiling NIO Exports.swift
[253/258] Wrapping AST for NIO for debugging
[255/279] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[256/279] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[257/281] Emitting module NIOHTTP1
[258/281] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[259/281] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[260/281] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[261/281] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[262/281] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[263/281] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[264/281] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[265/281] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[266/281] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[267/281] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[268/281] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[269/281] Compiling NIOHTTP1 HTTPTypes.swift
[270/281] Compiling NIOHTTP1 ByteCollectionUtils.swift
[271/281] Compiling NIOHTTP1 HTTPDecoder.swift
[272/281] Compiling NIOHTTP1 HTTPEncoder.swift
[273/284] Wrapping AST for NIOHTTP1 for debugging
[275/299] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[276/299] Emitting module NIOFoundationCompat
[277/299] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[278/299] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[279/299] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[281/300] Compiling MockServer main.swift
/host/spi-builder-workspace/Sources/MockServer/main.swift:38:49: warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
 36 |             .childChannelInitializer { channel in
 37 |                 channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
 38 |                     channel.pipeline.addHandler(HTTPHandler(mode: self.mode))
    |                                                 `- warning: type 'HTTPHandler' does not conform to the 'Sendable' protocol
 39 |                 }
 40 |             }
    :
 49 | }
 50 |
 51 | final class HTTPHandler: ChannelInboundHandler {
    |             `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 52 |     public typealias InboundIn = HTTPServerRequestPart
 53 |     public typealias OutboundOut = HTTPServerResponsePart
/host/spi-builder-workspace/Sources/MockServer/main.swift:118:22: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
 49 | }
 50 |
 51 | final class HTTPHandler: ChannelInboundHandler {
    |             `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 52 |     public typealias InboundIn = HTTPServerRequestPart
 53 |     public typealias OutboundOut = HTTPServerResponsePart
    :
116 |
117 |         context.write(wrapOutboundOut(.head(head))).whenFailure { error in
118 |             print("\(self) write error \(error)")
    |                      `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
119 |         }
120 |
/host/spi-builder-workspace/Sources/MockServer/main.swift:125:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
 49 | }
 50 |
 51 | final class HTTPHandler: ChannelInboundHandler {
    |             `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 52 |     public typealias InboundIn = HTTPServerRequestPart
 53 |     public typealias OutboundOut = HTTPServerResponsePart
    :
123 |             buffer.writeString(b)
124 |             context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
125 |                 print("\(self) write error \(error)")
    |                          `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
126 |             }
127 |         }
/host/spi-builder-workspace/Sources/MockServer/main.swift:131:26: warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
 49 | }
 50 |
 51 | final class HTTPHandler: ChannelInboundHandler {
    |             `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 52 |     public typealias InboundIn = HTTPServerRequestPart
 53 |     public typealias OutboundOut = HTTPServerResponsePart
    :
129 |         context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
130 |             if case .failure(let error) = result {
131 |                 print("\(self) write error \(error)")
    |                          `- warning: capture of 'self' with non-sendable type 'HTTPHandler' in a '@Sendable' closure
132 |             }
133 |         }
[282/300] Emitting module MockServer
[283/300] Compiling AWSLambdaRuntimeCore LambdaRuntime.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:127:17: warning: reference to captured var 'logger' in concurrently-executing code
125 |                 // if, we had an error shutting down the handler, we want to concatenate it with
126 |                 // the runner result
127 |                 logger.error("Error shutting down handler: \(error)")
    |                 `- warning: reference to captured var 'logger' in concurrently-executing code
128 |                 throw LambdaRuntimeError.shutdownError(shutdownError: error, runnerResult: runnerResult)
129 |             }.flatMapResult { _ -> Result<Int, Error> in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:174:25: warning: capture of '_run' with non-sendable type '<Handler where Handler : LambdaRuntimeHandler> (Int) -> ()' in a '@Sendable' closure
172 |                         logger.log(level: .debug, "lambda invocation sequence completed successfully")
173 |                         // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 |                         _run(count + 1)
    |                         `- warning: capture of '_run' with non-sendable type '<Handler where Handler : LambdaRuntimeHandler> (Int) -> ()' in a '@Sendable' closure
175 |                     case .failure(HTTPClient.Errors.cancelled):
176 |                         if case .shuttingdown = self.state {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:172:25: warning: reference to captured var 'logger' in concurrently-executing code
170 |                     switch result {
171 |                     case .success:
172 |                         logger.log(level: .debug, "lambda invocation sequence completed successfully")
    |                         `- warning: reference to captured var 'logger' in concurrently-executing code
173 |                         // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 |                         _run(count + 1)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:161:14: warning: concurrently-executed local function '_run' must be marked as '@Sendable'
159 |     @inline(__always)
160 |     private func run(promise: EventLoopPromise<Int>) {
161 |         func _run(_ count: Int) {
    |              `- warning: concurrently-executed local function '_run' must be marked as '@Sendable'
162 |             switch self.state {
163 |             case .active(let runner, let handler):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:180:29: warning: reference to captured var 'logger' in concurrently-executing code
178 |                             // invocation request might have been cancelled. For this reason we
179 |                             // succeed the promise here.
180 |                             logger.log(level: .info, "lambda invocation sequence has been cancelled for shutdown")
    |                             `- warning: reference to captured var 'logger' in concurrently-executing code
181 |                             return promise.succeed(count)
182 |                         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:183:25: warning: reference to captured var 'logger' in concurrently-executing code
181 |                             return promise.succeed(count)
182 |                         }
183 |                         logger.log(level: .error, "lambda invocation sequence has been cancelled unexpectedly")
    |                         `- warning: reference to captured var 'logger' in concurrently-executing code
184 |                         promise.fail(HTTPClient.Errors.cancelled)
185 |                     case .failure(let error):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:186:25: warning: reference to captured var 'logger' in concurrently-executing code
184 |                         promise.fail(HTTPClient.Errors.cancelled)
185 |                     case .failure(let error):
186 |                         logger.log(level: .error, "lambda invocation sequence completed with error: \(error)")
    |                         `- warning: reference to captured var 'logger' in concurrently-executing code
187 |                         promise.fail(error)
188 |                     }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:335:25: warning: type 'Handler' does not conform to the 'Sendable' protocol
325 |     ///     - logger: A `Logger` to log the Lambda events.
326 |     @inlinable
327 |     public static func makeRuntime<Handler: LambdaRuntimeHandler>(
    |                                    `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
328 |         handlerProvider: @escaping (LambdaInitializationContext) async throws -> Handler,
329 |         eventLoop: any EventLoop,
    :
333 |             handlerProvider: { context in
334 |                 let promise = eventLoop.makePromise(of: Handler.self)
335 |                 promise.completeWithTask {
    |                         `- warning: type 'Handler' does not conform to the 'Sendable' protocol
336 |                     try await handlerProvider(context)
337 |                 }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:336:31: warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
334 |                 let promise = eventLoop.makePromise(of: Handler.self)
335 |                 promise.completeWithTask {
336 |                     try await handlerProvider(context)
    |                               |- warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
    |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
337 |                 }
338 |                 return promise.futureResult
[284/300] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:127:17: warning: reference to captured var 'logger' in concurrently-executing code
125 |                 // if, we had an error shutting down the handler, we want to concatenate it with
126 |                 // the runner result
127 |                 logger.error("Error shutting down handler: \(error)")
    |                 `- warning: reference to captured var 'logger' in concurrently-executing code
128 |                 throw LambdaRuntimeError.shutdownError(shutdownError: error, runnerResult: runnerResult)
129 |             }.flatMapResult { _ -> Result<Int, Error> in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:174:25: warning: capture of '_run' with non-sendable type '<Handler where Handler : LambdaRuntimeHandler> (Int) -> ()' in a '@Sendable' closure
172 |                         logger.log(level: .debug, "lambda invocation sequence completed successfully")
173 |                         // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 |                         _run(count + 1)
    |                         `- warning: capture of '_run' with non-sendable type '<Handler where Handler : LambdaRuntimeHandler> (Int) -> ()' in a '@Sendable' closure
175 |                     case .failure(HTTPClient.Errors.cancelled):
176 |                         if case .shuttingdown = self.state {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:172:25: warning: reference to captured var 'logger' in concurrently-executing code
170 |                     switch result {
171 |                     case .success:
172 |                         logger.log(level: .debug, "lambda invocation sequence completed successfully")
    |                         `- warning: reference to captured var 'logger' in concurrently-executing code
173 |                         // recursive! per aws lambda runtime spec the polling requests are to be done one at a time
174 |                         _run(count + 1)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:161:14: warning: concurrently-executed local function '_run' must be marked as '@Sendable'
159 |     @inline(__always)
160 |     private func run(promise: EventLoopPromise<Int>) {
161 |         func _run(_ count: Int) {
    |              `- warning: concurrently-executed local function '_run' must be marked as '@Sendable'
162 |             switch self.state {
163 |             case .active(let runner, let handler):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:180:29: warning: reference to captured var 'logger' in concurrently-executing code
178 |                             // invocation request might have been cancelled. For this reason we
179 |                             // succeed the promise here.
180 |                             logger.log(level: .info, "lambda invocation sequence has been cancelled for shutdown")
    |                             `- warning: reference to captured var 'logger' in concurrently-executing code
181 |                             return promise.succeed(count)
182 |                         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:183:25: warning: reference to captured var 'logger' in concurrently-executing code
181 |                             return promise.succeed(count)
182 |                         }
183 |                         logger.log(level: .error, "lambda invocation sequence has been cancelled unexpectedly")
    |                         `- warning: reference to captured var 'logger' in concurrently-executing code
184 |                         promise.fail(HTTPClient.Errors.cancelled)
185 |                     case .failure(let error):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:186:25: warning: reference to captured var 'logger' in concurrently-executing code
184 |                         promise.fail(HTTPClient.Errors.cancelled)
185 |                     case .failure(let error):
186 |                         logger.log(level: .error, "lambda invocation sequence completed with error: \(error)")
    |                         `- warning: reference to captured var 'logger' in concurrently-executing code
187 |                         promise.fail(error)
188 |                     }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:335:25: warning: type 'Handler' does not conform to the 'Sendable' protocol
325 |     ///     - logger: A `Logger` to log the Lambda events.
326 |     @inlinable
327 |     public static func makeRuntime<Handler: LambdaRuntimeHandler>(
    |                                    `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
328 |         handlerProvider: @escaping (LambdaInitializationContext) async throws -> Handler,
329 |         eventLoop: any EventLoop,
    :
333 |             handlerProvider: { context in
334 |                 let promise = eventLoop.makePromise(of: Handler.self)
335 |                 promise.completeWithTask {
    |                         `- warning: type 'Handler' does not conform to the 'Sendable' protocol
336 |                     try await handlerProvider(context)
337 |                 }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:336:31: warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
334 |                 let promise = eventLoop.makePromise(of: Handler.self)
335 |                 promise.completeWithTask {
336 |                     try await handlerProvider(context)
    |                               |- warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
    |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
337 |                 }
338 |                 return promise.futureResult
[286/303] Compiling AWSLambdaRuntimeCore Lambda.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:134:21: warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a '@Sendable' closure
132 |                 }.whenComplete { lifecycleResult in
133 |                     #if DEBUG
134 |                     signalSource.cancel()
    |                     `- warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a '@Sendable' closure
135 |                     #endif
136 |                     eventLoop.shutdownGracefully { error in
Dispatch.DispatchSourceSignal:1:17: note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
1 | public protocol DispatchSourceSignal : DispatchSourceProtocol {
  |                 `- note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
2 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:141:21: warning: mutation of captured var 'result' in concurrently-executing code
139 |                         }
140 |                     }
141 |                     result = lifecycleResult
    |                     `- warning: mutation of captured var 'result' in concurrently-executing code
142 |                 }
143 |             }
[287/303] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:134:21: warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a '@Sendable' closure
132 |                 }.whenComplete { lifecycleResult in
133 |                     #if DEBUG
134 |                     signalSource.cancel()
    |                     `- warning: capture of 'signalSource' with non-sendable type 'any DispatchSourceSignal' in a '@Sendable' closure
135 |                     #endif
136 |                     eventLoop.shutdownGracefully { error in
Dispatch.DispatchSourceSignal:1:17: note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
1 | public protocol DispatchSourceSignal : DispatchSourceProtocol {
  |                 `- note: protocol 'DispatchSourceSignal' does not conform to the 'Sendable' protocol
2 | }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda.swift:141:21: warning: mutation of captured var 'result' in concurrently-executing code
139 |                         }
140 |                     }
141 |                     result = lifecycleResult
    |                     `- warning: mutation of captured var 'result' in concurrently-executing code
142 |                 }
143 |             }
[287/303] Wrapping AST for MockServer for debugging
[288/303] Write Objects.LinkFileList
[290/303] Compiling AWSLambdaRuntimeCore Lambda+LocalServer.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |         private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
 95 |
 96 |         private static var invocations = CircularBuffer<Invocation>()
    |                            |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |         private static var invocationState = InvocationState.waitingForLambdaRequest
 98 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 95 |
 96 |         private static var invocations = CircularBuffer<Invocation>()
 97 |         private static var invocationState = InvocationState.waitingForLambdaRequest
    |                            |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 98 |
 99 |         private let logger: Logger
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:73:53: warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
 71 |                 .childChannelInitializer { channel in
 72 |                     channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
 73 |                         channel.pipeline.addHandler(HTTPHandler(logger: self.logger, invocationEndpoint: self.invocationEndpoint))
    |                                                     `- warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
 74 |                     }
 75 |                 }
    :
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
137 |                     switch result {
138 |                     case .failure(let error):
139 |                         self.logger.error("invocation error: \(error)")
    |                         `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
140 |                         self.writeResponse(context: context, response: .init(status: .internalServerError))
141 |                     case .success(let response):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
138 |                     case .failure(let error):
139 |                         self.logger.error("invocation error: \(error)")
140 |                         self.writeResponse(context: context, response: .init(status: .internalServerError))
    |                                                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
141 |                     case .success(let response):
142 |                         self.writeResponse(context: context, response: response)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
173 |                         switch result {
174 |                         case .failure(let error):
175 |                             self.logger.error("invocation error: \(error)")
    |                             `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
176 |                             self.writeResponse(context: context, status: .internalServerError)
177 |                         case .success(let invocation):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
174 |                         case .failure(let error):
175 |                             self.logger.error("invocation error: \(error)")
176 |                             self.writeResponse(context: context, status: .internalServerError)
    |                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
177 |                         case .success(let invocation):
178 |                             Self.invocationState = .waitingForLambdaResponse(invocation)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
247 |
248 |             context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 |                 self.logger.error("\(self) write error \(error)")
    |                 `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
250 |             }
251 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
247 |
248 |             context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 |                 self.logger.error("\(self) write error \(error)")
    |                                      `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
250 |             }
251 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
252 |             if let buffer = response.body {
253 |                 context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 |                     self.logger.error("\(self) write error \(error)")
    |                     `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
255 |                 }
256 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
252 |             if let buffer = response.body {
253 |                 context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 |                     self.logger.error("\(self) write error \(error)")
    |                                          `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
255 |                 }
256 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
258 |             context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 |                 if case .failure(let error) = result {
260 |                     self.logger.error("\(self) write error \(error)")
    |                     `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
261 |                 }
262 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
258 |             context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 |                 if case .failure(let error) = result {
260 |                     self.logger.error("\(self) write error \(error)")
    |                                          `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
261 |                 }
262 |             }
[291/303] Compiling AWSLambdaRuntimeCore Lambda+String.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |         private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
 95 |
 96 |         private static var invocations = CircularBuffer<Invocation>()
    |                            |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |         private static var invocationState = InvocationState.waitingForLambdaRequest
 98 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 95 |
 96 |         private static var invocations = CircularBuffer<Invocation>()
 97 |         private static var invocationState = InvocationState.waitingForLambdaRequest
    |                            |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 98 |
 99 |         private let logger: Logger
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:73:53: warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
 71 |                 .childChannelInitializer { channel in
 72 |                     channel.pipeline.configureHTTPServerPipeline(withErrorHandling: true).flatMap { _ in
 73 |                         channel.pipeline.addHandler(HTTPHandler(logger: self.logger, invocationEndpoint: self.invocationEndpoint))
    |                                                     `- warning: type 'LocalLambda.HTTPHandler' does not conform to the 'Sendable' protocol
 74 |                     }
 75 |                 }
    :
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:139:25: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
137 |                     switch result {
138 |                     case .failure(let error):
139 |                         self.logger.error("invocation error: \(error)")
    |                         `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
140 |                         self.writeResponse(context: context, response: .init(status: .internalServerError))
141 |                     case .success(let response):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:140:53: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
138 |                     case .failure(let error):
139 |                         self.logger.error("invocation error: \(error)")
140 |                         self.writeResponse(context: context, response: .init(status: .internalServerError))
    |                                                     `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
141 |                     case .success(let response):
142 |                         self.writeResponse(context: context, response: response)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:175:29: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
173 |                         switch result {
174 |                         case .failure(let error):
175 |                             self.logger.error("invocation error: \(error)")
    |                             `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
176 |                             self.writeResponse(context: context, status: .internalServerError)
177 |                         case .success(let invocation):
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:176:57: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
174 |                         case .failure(let error):
175 |                             self.logger.error("invocation error: \(error)")
176 |                             self.writeResponse(context: context, status: .internalServerError)
    |                                                         `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
177 |                         case .success(let invocation):
178 |                             Self.invocationState = .waitingForLambdaResponse(invocation)
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:17: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
247 |
248 |             context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 |                 self.logger.error("\(self) write error \(error)")
    |                 `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
250 |             }
251 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:249:38: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
247 |
248 |             context.write(wrapOutboundOut(.head(head))).whenFailure { error in
249 |                 self.logger.error("\(self) write error \(error)")
    |                                      `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
250 |             }
251 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
252 |             if let buffer = response.body {
253 |                 context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 |                     self.logger.error("\(self) write error \(error)")
    |                     `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
255 |                 }
256 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:254:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
252 |             if let buffer = response.body {
253 |                 context.write(wrapOutboundOut(.body(.byteBuffer(buffer)))).whenFailure { error in
254 |                     self.logger.error("\(self) write error \(error)")
    |                                          `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
255 |                 }
256 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:21: warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
258 |             context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 |                 if case .failure(let error) = result {
260 |                     self.logger.error("\(self) write error \(error)")
    |                     `- warning: capture of 'self' with non-sendable type 'LocalLambda.HTTPHandler' in a '@Sendable' closure
261 |                 }
262 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:260:42: warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 88 |     }
 89 |
 90 |     final class HTTPHandler: ChannelInboundHandler {
    |                 `- note: class 'HTTPHandler' does not conform to the 'Sendable' protocol
 91 |         public typealias InboundIn = HTTPServerRequestPart
 92 |         public typealias OutboundOut = HTTPServerResponsePart
    :
258 |             context.writeAndFlush(wrapOutboundOut(.end(nil))).whenComplete { result in
259 |                 if case .failure(let error) = result {
260 |                     self.logger.error("\(self) write error \(error)")
    |                                          `- warning: implicit capture of 'self' requires that 'LocalLambda.HTTPHandler' conforms to 'Sendable'; this is an error in the Swift 6 language mode
261 |                 }
262 |             }
[292/303] Emitting module AWSLambdaRuntimeCore
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:96:28: warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 94 |         private var pending = CircularBuffer<(head: HTTPRequestHead, body: ByteBuffer?)>()
 95 |
 96 |         private static var invocations = CircularBuffer<Invocation>()
    |                            |- warning: static property 'invocations' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'invocations' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'invocations' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 97 |         private static var invocationState = InvocationState.waitingForLambdaRequest
 98 |
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Lambda+LocalServer.swift:97:28: warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 95 |
 96 |         private static var invocations = CircularBuffer<Invocation>()
 97 |         private static var invocationState = InvocationState.waitingForLambdaRequest
    |                            |- warning: static property 'invocationState' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                            |- note: convert 'invocationState' to a 'let' constant to make 'Sendable' shared state immutable
    |                            |- note: add '@MainActor' to make static property 'invocationState' part of global actor 'MainActor'
    |                            `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 98 |
 99 |         private let logger: Logger
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
 64 |
 65 | @usableFromInline
 66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
 67 |     @usableFromInline
 68 |     let handler: Underlying
    :
 73 |     static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
 74 |         let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
 75 |         promise.completeWithTask {
    |                 `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
 76 |             let handler = Underlying()
 77 |             return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
 64 |
 65 | @usableFromInline
 66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
 67 |     @usableFromInline
 68 |     let handler: Underlying
    :
 92 |             let input: Underlying.Event
 93 |             do {
 94 |                 input = try self.handler.decode(buffer: buffer)
    |                             `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
 95 |             } catch {
 96 |                 throw CodecError.requestDecoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 |     @usableFromInline
190 |     let handler: Underlying
    :
195 |     static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 |         let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 |         promise.completeWithTask {
    |                 `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
198 |             let handler = try await Underlying(context: context)
199 |             return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 |     @usableFromInline
190 |     let handler: Underlying
    :
214 |             let input: Underlying.Event
215 |             do {
216 |                 input = try self.handler.decode(buffer: buffer)
    |                             `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
217 |             } catch {
218 |                 throw CodecError.requestDecoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 |     @usableFromInline
341 |     let handler: Underlying
    :
367 |         return self.handler.handle(input, context: context).flatMapThrowing { output in
368 |             do {
369 |                 self.outputBuffer.clear()
    |                 `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
370 |                 try self.handler.encode(value: output, into: &self.outputBuffer)
371 |                 return self.outputBuffer
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 87 |
 88 |     /// thread safe secure random number generator.
 89 |     private static var generator = SystemRandomNumberGenerator()
    |                        |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'generator' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 90 |     private static func generateRandom() -> Self {
 91 |         var _uuid: uuid_t = LambdaRequestID.null
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:335:25: warning: type 'Handler' does not conform to the 'Sendable' protocol
325 |     ///     - logger: A `Logger` to log the Lambda events.
326 |     @inlinable
327 |     public static func makeRuntime<Handler: LambdaRuntimeHandler>(
    |                                    `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
328 |         handlerProvider: @escaping (LambdaInitializationContext) async throws -> Handler,
329 |         eventLoop: any EventLoop,
    :
333 |             handlerProvider: { context in
334 |                 let promise = eventLoop.makePromise(of: Handler.self)
335 |                 promise.completeWithTask {
    |                         `- warning: type 'Handler' does not conform to the 'Sendable' protocol
336 |                     try await handlerProvider(context)
337 |                 }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRuntime.swift:336:31: warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
334 |                 let promise = eventLoop.makePromise(of: Handler.self)
335 |                 promise.completeWithTask {
336 |                     try await handlerProvider(context)
    |                               |- warning: capture of 'handlerProvider' with non-sendable type '(LambdaInitializationContext) async throws -> Handler' in a '@Sendable' closure
    |                               `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
337 |                 }
338 |                 return promise.futureResult
[293/303] Compiling AWSLambdaRuntimeCore ControlPlaneRequest.swift
[294/303] Compiling AWSLambdaRuntimeCore ControlPlaneRequestEncoder.swift
[295/303] Compiling AWSLambdaRuntimeCore DetachedTasks.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:78:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
 22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
 23 | final class HTTPClient {
    |             `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 24 |     private let eventLoop: EventLoop
 25 |     private let configuration: LambdaConfiguration.RuntimeEngine
    :
 76 |         case .disconnected:
 77 |             return self.connect().flatMap { channel -> EventLoopFuture<Response> in
 78 |                 self.state = .connected(channel)
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 79 |                 return self.execute(request, validate: false)
 80 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
 22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
 23 | final class HTTPClient {
    |             `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 24 |     private let eventLoop: EventLoop
 25 |     private let configuration: LambdaConfiguration.RuntimeEngine
    :
 87 |             let promise = channel.eventLoop.makePromise(of: Response.self)
 88 |             promise.futureResult.whenComplete { _ in
 89 |                 precondition(self.executing == true, "invalid execution state")
    |                              `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 90 |                 self.executing = false
 91 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
 22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
 23 | final class HTTPClient {
    |             `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 24 |     private let eventLoop: EventLoop
 25 |     private let configuration: LambdaConfiguration.RuntimeEngine
    :
 87 |             let promise = channel.eventLoop.makePromise(of: Response.self)
 88 |             promise.futureResult.whenComplete { _ in
 89 |                 precondition(self.executing == true, "invalid execution state")
    |                              `- warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 90 |                 self.executing = false
 91 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:199:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
159 |
160 | // no need in locks since we validate only one request can run at a time
161 | private final class LambdaChannelHandler: ChannelDuplexHandler {
    |                     `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
162 |     typealias InboundIn = NIOHTTPClientResponseFull
163 |     typealias OutboundIn = HTTPRequestWrapper
    :
197 |         let timeoutTask = wrapper.request.timeout.map {
198 |             context.eventLoop.scheduleTask(in: $0) {
199 |                 guard case .running = self.state else {
    |                                       `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
200 |                     preconditionFailure("invalid state")
201 |                 }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
201 |                 }
202 |
203 |                 context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
204 |             }
205 |         }
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
[296/303] Compiling AWSLambdaRuntimeCore HTTPClient.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:78:17: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
 22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
 23 | final class HTTPClient {
    |             `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 24 |     private let eventLoop: EventLoop
 25 |     private let configuration: LambdaConfiguration.RuntimeEngine
    :
 76 |         case .disconnected:
 77 |             return self.connect().flatMap { channel -> EventLoopFuture<Response> in
 78 |                 self.state = .connected(channel)
    |                 `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 79 |                 return self.execute(request, validate: false)
 80 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
 22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
 23 | final class HTTPClient {
    |             `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 24 |     private let eventLoop: EventLoop
 25 |     private let configuration: LambdaConfiguration.RuntimeEngine
    :
 87 |             let promise = channel.eventLoop.makePromise(of: Response.self)
 88 |             promise.futureResult.whenComplete { _ in
 89 |                 precondition(self.executing == true, "invalid execution state")
    |                              `- warning: capture of 'self' with non-sendable type 'HTTPClient' in a '@Sendable' closure
 90 |                 self.executing = false
 91 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:89:30: warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 21 | /// Note that Lambda Runtime API dictate that only one requests runs at a time.
 22 | /// This means we can avoid locks and other concurrency concern we would otherwise need to build into the client
 23 | final class HTTPClient {
    |             `- note: class 'HTTPClient' does not conform to the 'Sendable' protocol
 24 |     private let eventLoop: EventLoop
 25 |     private let configuration: LambdaConfiguration.RuntimeEngine
    :
 87 |             let promise = channel.eventLoop.makePromise(of: Response.self)
 88 |             promise.futureResult.whenComplete { _ in
 89 |                 precondition(self.executing == true, "invalid execution state")
    |                              `- warning: implicit capture of 'self' requires that 'HTTPClient' conforms to 'Sendable'; this is an error in the Swift 6 language mode
 90 |                 self.executing = false
 91 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:199:39: warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
159 |
160 | // no need in locks since we validate only one request can run at a time
161 | private final class LambdaChannelHandler: ChannelDuplexHandler {
    |                     `- note: class 'LambdaChannelHandler' does not conform to the 'Sendable' protocol
162 |     typealias InboundIn = NIOHTTPClientResponseFull
163 |     typealias OutboundIn = HTTPRequestWrapper
    :
197 |         let timeoutTask = wrapper.request.timeout.map {
198 |             context.eventLoop.scheduleTask(in: $0) {
199 |                 guard case .running = self.state else {
    |                                       `- warning: capture of 'self' with non-sendable type 'LambdaChannelHandler' in a '@Sendable' closure
200 |                     preconditionFailure("invalid state")
201 |                 }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/HTTPClient.swift:203:17: warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
201 |                 }
202 |
203 |                 context.pipeline.fireErrorCaught(HTTPClient.Errors.timeout)
    |                 `- warning: capture of 'context' with non-sendable type 'ChannelHandlerContext' in a '@Sendable' closure
204 |             }
205 |         }
/host/spi-builder-workspace/.build/checkouts/swift-nio/Sources/NIOCore/ChannelPipeline.swift:1786:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1784 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1785 | /// `ChannelHandler`.
1786 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1787 |     // visible for ChannelPipeline to modify
1788 |     fileprivate var next: Optional<ChannelHandlerContext>
[297/303] Compiling AWSLambdaRuntimeCore Terminator.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:24: warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a '@Sendable' closure
 72 |                     errors.append(error)
 73 |                 }
 74 |                 return terminate(iterator, errors: errors, promise: promise)
    |                        |- warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 75 |             }
 76 |         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a '@Sendable' closure
 72 |                     errors.append(error)
 73 |                 }
 74 |                 return terminate(iterator, errors: errors, promise: promise)
    |                                  |- warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 75 |             }
 76 |         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:60:14: warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'
 58 |     /// - Returns: An `EventLoopFuture` with the result of the termination cycle.
 59 |     func terminate(eventLoop: EventLoop) -> EventLoopFuture<Void> {
 60 |         func terminate(_ iterator: IndexingIterator<[(name: String, handler: Handler)]>, errors: [Error], promise: EventLoopPromise<Void>) {
    |              `- warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'
 61 |             var iterator = iterator
 62 |             guard let handler = iterator.next()?.handler else {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: reference to captured var 'iterator' in concurrently-executing code
 72 |                     errors.append(error)
 73 |                 }
 74 |                 return terminate(iterator, errors: errors, promise: promise)
    |                                  `- warning: reference to captured var 'iterator' in concurrently-executing code
 75 |             }
 76 |         }
[298/303] Compiling AWSLambdaRuntimeCore Utils.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:24: warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a '@Sendable' closure
 72 |                     errors.append(error)
 73 |                 }
 74 |                 return terminate(iterator, errors: errors, promise: promise)
    |                        |- warning: capture of 'terminate(_:errors:promise:)' with non-sendable type '(IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>, [any Error], EventLoopPromise<Void>) -> ()' (aka '(IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>, Array<any Error>, EventLoopPromise<()>) -> ()') in a '@Sendable' closure
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 75 |             }
 76 |         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a '@Sendable' closure
 72 |                     errors.append(error)
 73 |                 }
 74 |                 return terminate(iterator, errors: errors, promise: promise)
    |                                  |- warning: capture of 'iterator' with non-sendable type 'IndexingIterator<[(name: String, handler: LambdaTerminator.Handler)]>' (aka 'IndexingIterator<Array<(name: String, handler: (any EventLoop) -> EventLoopFuture<()>)>>') in a '@Sendable' closure
    |                                  `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 75 |             }
 76 |         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:60:14: warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'
 58 |     /// - Returns: An `EventLoopFuture` with the result of the termination cycle.
 59 |     func terminate(eventLoop: EventLoop) -> EventLoopFuture<Void> {
 60 |         func terminate(_ iterator: IndexingIterator<[(name: String, handler: Handler)]>, errors: [Error], promise: EventLoopPromise<Void>) {
    |              `- warning: concurrently-executed local function 'terminate(_:errors:promise:)' must be marked as '@Sendable'
 61 |             var iterator = iterator
 62 |             guard let handler = iterator.next()?.handler else {
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/Terminator.swift:74:34: warning: reference to captured var 'iterator' in concurrently-executing code
 72 |                     errors.append(error)
 73 |                 }
 74 |                 return terminate(iterator, errors: errors, promise: promise)
    |                                  `- warning: reference to captured var 'iterator' in concurrently-executing code
 75 |             }
 76 |         }
[299/303] Compiling AWSLambdaRuntimeCore LambdaRequestID.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 87 |
 88 |     /// thread safe secure random number generator.
 89 |     private static var generator = SystemRandomNumberGenerator()
    |                        |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'generator' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 90 |     private static func generateRandom() -> Self {
 91 |         var _uuid: uuid_t = LambdaRequestID.null
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:56:14: warning: type 'Handler' does not conform to the 'Sendable' protocol
 34 |     ///
 35 |     /// - Returns: An `EventLoopFuture<LambdaHandler>` fulfilled with the outcome of the initialization.
 36 |     func initialize<Handler: LambdaRuntimeHandler>(
    |                     `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
 37 |         handlerProvider: @escaping (LambdaInitializationContext) -> EventLoopFuture<Handler>,
 38 |         logger: Logger,
    :
 54 |             // This can happen if the factory uses a library (let's say a database client) that manages its own threads/loops
 55 |             // for whatever reason and returns a future that originated from that foreign EventLoop.
 56 |             .hop(to: self.eventLoop)
    |              `- warning: type 'Handler' does not conform to the 'Sendable' protocol
 57 |             .peekError { error in
 58 |                 self.runtimeClient.reportInitializationError(logger: logger, error: error).peekError { reportingError in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:88:20: warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
 64 |     }
 65 |
 66 |     func run(handler: some LambdaRuntimeHandler, logger: Logger) -> EventLoopFuture<Void> {
    |                       `- note: consider making generic parameter 'some LambdaRuntimeHandler' conform to the 'Sendable' protocol
 67 |         logger.debug("lambda invocation sequence starting")
 68 |         // 1. request invocation from lambda runtime engine
    :
 86 |                 logger.debug("sending invocation to lambda handler")
 87 |             }
 88 |             return handler.handle(bytes, context: context)
    |                    `- warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
 89 |                 // Hopping back to "our" EventLoop is important in case the handler returns a future that
 90 |                 // originated from a foreign EventLoop/EventLoopGroup.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:149:14: warning: type 'Value' does not conform to the 'Sendable' protocol
147 |     // callback does not have side effects, failing with original result
148 |     func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 |         self.flatMapError { error in
    |              `- warning: type 'Value' does not conform to the 'Sendable' protocol
150 |             callback(error)
151 |             return self
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:150:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
148 |     func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 |         self.flatMapError { error in
150 |             callback(error)
    |             |- warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
151 |             return self
152 |         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:157:14: warning: type 'Value' does not conform to the 'Sendable' protocol
155 |     // callback does not have side effects, failing with original result
156 |     func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
157 |         self.flatMapError { error in
    |              `- warning: type 'Value' does not conform to the 'Sendable' protocol
158 |             let promise = self.eventLoop.makePromise(of: Value.self)
159 |             callback(error).whenComplete { _ in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:160:25: warning: type 'Value' does not conform to the 'Sendable' protocol
158 |             let promise = self.eventLoop.makePromise(of: Value.self)
159 |             callback(error).whenComplete { _ in
160 |                 promise.completeWith(self)
    |                         `- warning: type 'Value' does not conform to the 'Sendable' protocol
161 |             }
162 |             return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:159:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
157 |         self.flatMapError { error in
158 |             let promise = self.eventLoop.makePromise(of: Value.self)
159 |             callback(error).whenComplete { _ in
    |             |- warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 |                 promise.completeWith(self)
161 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:168:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
166 |     func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
167 |         self.map { value in
168 |             callback(.success(value))
    |             |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
169 |         }.flatMapErrorThrowing { error in
170 |             callback(.failure(error))
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:170:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
168 |             callback(.success(value))
169 |         }.flatMapErrorThrowing { error in
170 |             callback(.failure(error))
    |             |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
171 |         }
172 |     }
[300/303] Compiling AWSLambdaRuntimeCore LambdaRunner.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRequestID.swift:89:24: warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 87 |
 88 |     /// thread safe secure random number generator.
 89 |     private static var generator = SystemRandomNumberGenerator()
    |                        |- warning: static property 'generator' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'generator' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: add '@MainActor' to make static property 'generator' part of global actor 'MainActor'
    |                        `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 90 |     private static func generateRandom() -> Self {
 91 |         var _uuid: uuid_t = LambdaRequestID.null
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:56:14: warning: type 'Handler' does not conform to the 'Sendable' protocol
 34 |     ///
 35 |     /// - Returns: An `EventLoopFuture<LambdaHandler>` fulfilled with the outcome of the initialization.
 36 |     func initialize<Handler: LambdaRuntimeHandler>(
    |                     `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
 37 |         handlerProvider: @escaping (LambdaInitializationContext) -> EventLoopFuture<Handler>,
 38 |         logger: Logger,
    :
 54 |             // This can happen if the factory uses a library (let's say a database client) that manages its own threads/loops
 55 |             // for whatever reason and returns a future that originated from that foreign EventLoop.
 56 |             .hop(to: self.eventLoop)
    |              `- warning: type 'Handler' does not conform to the 'Sendable' protocol
 57 |             .peekError { error in
 58 |                 self.runtimeClient.reportInitializationError(logger: logger, error: error).peekError { reportingError in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:88:20: warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
 64 |     }
 65 |
 66 |     func run(handler: some LambdaRuntimeHandler, logger: Logger) -> EventLoopFuture<Void> {
    |                       `- note: consider making generic parameter 'some LambdaRuntimeHandler' conform to the 'Sendable' protocol
 67 |         logger.debug("lambda invocation sequence starting")
 68 |         // 1. request invocation from lambda runtime engine
    :
 86 |                 logger.debug("sending invocation to lambda handler")
 87 |             }
 88 |             return handler.handle(bytes, context: context)
    |                    `- warning: capture of 'handler' with non-sendable type 'some LambdaRuntimeHandler' in a '@Sendable' closure
 89 |                 // Hopping back to "our" EventLoop is important in case the handler returns a future that
 90 |                 // originated from a foreign EventLoop/EventLoopGroup.
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:149:14: warning: type 'Value' does not conform to the 'Sendable' protocol
147 |     // callback does not have side effects, failing with original result
148 |     func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 |         self.flatMapError { error in
    |              `- warning: type 'Value' does not conform to the 'Sendable' protocol
150 |             callback(error)
151 |             return self
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:150:13: warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
148 |     func peekError(_ callback: @escaping (Error) -> Void) -> EventLoopFuture<Value> {
149 |         self.flatMapError { error in
150 |             callback(error)
    |             |- warning: capture of 'callback' with non-sendable type '(any Error) -> Void' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
151 |             return self
152 |         }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:157:14: warning: type 'Value' does not conform to the 'Sendable' protocol
155 |     // callback does not have side effects, failing with original result
156 |     func peekError(_ callback: @escaping (Error) -> EventLoopFuture<Void>) -> EventLoopFuture<Value> {
157 |         self.flatMapError { error in
    |              `- warning: type 'Value' does not conform to the 'Sendable' protocol
158 |             let promise = self.eventLoop.makePromise(of: Value.self)
159 |             callback(error).whenComplete { _ in
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:160:25: warning: type 'Value' does not conform to the 'Sendable' protocol
158 |             let promise = self.eventLoop.makePromise(of: Value.self)
159 |             callback(error).whenComplete { _ in
160 |                 promise.completeWith(self)
    |                         `- warning: type 'Value' does not conform to the 'Sendable' protocol
161 |             }
162 |             return promise.futureResult
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:159:13: warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
157 |         self.flatMapError { error in
158 |             let promise = self.eventLoop.makePromise(of: Value.self)
159 |             callback(error).whenComplete { _ in
    |             |- warning: capture of 'callback' with non-sendable type '(any Error) -> EventLoopFuture<Void>' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
160 |                 promise.completeWith(self)
161 |             }
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:168:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
166 |     func mapResult<NewValue>(_ callback: @escaping (Result<Value, Error>) -> NewValue) -> EventLoopFuture<NewValue> {
167 |         self.map { value in
168 |             callback(.success(value))
    |             |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
169 |         }.flatMapErrorThrowing { error in
170 |             callback(.failure(error))
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaRunner.swift:170:13: warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
168 |             callback(.success(value))
169 |         }.flatMapErrorThrowing { error in
170 |             callback(.failure(error))
    |             |- warning: capture of 'callback' with non-sendable type '(Result<Value, any Error>) -> NewValue' in a '@Sendable' closure
    |             `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
171 |         }
172 |     }
[301/303] Compiling AWSLambdaRuntimeCore LambdaContext.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
 64 |
 65 | @usableFromInline
 66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
 67 |     @usableFromInline
 68 |     let handler: Underlying
    :
 73 |     static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
 74 |         let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
 75 |         promise.completeWithTask {
    |                 `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
 76 |             let handler = Underlying()
 77 |             return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
 64 |
 65 | @usableFromInline
 66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
 67 |     @usableFromInline
 68 |     let handler: Underlying
    :
 92 |             let input: Underlying.Event
 93 |             do {
 94 |                 input = try self.handler.decode(buffer: buffer)
    |                             `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
 95 |             } catch {
 96 |                 throw CodecError.requestDecoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 |     @usableFromInline
190 |     let handler: Underlying
    :
195 |     static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 |         let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 |         promise.completeWithTask {
    |                 `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
198 |             let handler = try await Underlying(context: context)
199 |             return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 |     @usableFromInline
190 |     let handler: Underlying
    :
214 |             let input: Underlying.Event
215 |             do {
216 |                 input = try self.handler.decode(buffer: buffer)
    |                             `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
217 |             } catch {
218 |                 throw CodecError.requestDecoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 |     @usableFromInline
341 |     let handler: Underlying
    :
367 |         return self.handler.handle(input, context: context).flatMapThrowing { output in
368 |             do {
369 |                 self.outputBuffer.clear()
    |                 `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
370 |                 try self.handler.encode(value: output, into: &self.outputBuffer)
371 |                 return self.outputBuffer
[302/303] Compiling AWSLambdaRuntimeCore LambdaHandler.swift
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:75:17: warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
 64 |
 65 | @usableFromInline
 66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
 67 |     @usableFromInline
 68 |     let handler: Underlying
    :
 73 |     static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableSimpleLambdaHandler> {
 74 |         let promise = context.eventLoop.makePromise(of: CodableSimpleLambdaHandler<Underlying>.self)
 75 |         promise.completeWithTask {
    |                 `- warning: type 'CodableSimpleLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
 76 |             let handler = Underlying()
 77 |             return CodableSimpleLambdaHandler(handler: handler, allocator: context.allocator)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:94:29: warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
 64 |
 65 | @usableFromInline
 66 | final class CodableSimpleLambdaHandler<Underlying: SimpleLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableSimpleLambdaHandler' does not conform to the 'Sendable' protocol
 67 |     @usableFromInline
 68 |     let handler: Underlying
    :
 92 |             let input: Underlying.Event
 93 |             do {
 94 |                 input = try self.handler.decode(buffer: buffer)
    |                             `- warning: capture of 'self' with non-sendable type 'CodableSimpleLambdaHandler<Underlying>' in a '@Sendable' closure
 95 |             } catch {
 96 |                 throw CodecError.requestDecoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:197:17: warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 |     @usableFromInline
190 |     let handler: Underlying
    :
195 |     static func makeHandler(context: LambdaInitializationContext) -> EventLoopFuture<CodableLambdaHandler> {
196 |         let promise = context.eventLoop.makePromise(of: CodableLambdaHandler<Underlying>.self)
197 |         promise.completeWithTask {
    |                 `- warning: type 'CodableLambdaHandler<Underlying>' does not conform to the 'Sendable' protocol
198 |             let handler = try await Underlying(context: context)
199 |             return CodableLambdaHandler(handler: handler, allocator: context.allocator)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:216:29: warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
186 |
187 | @usableFromInline
188 | final class CodableLambdaHandler<Underlying: LambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableLambdaHandler' does not conform to the 'Sendable' protocol
189 |     @usableFromInline
190 |     let handler: Underlying
    :
214 |             let input: Underlying.Event
215 |             do {
216 |                 input = try self.handler.decode(buffer: buffer)
    |                             `- warning: capture of 'self' with non-sendable type 'CodableLambdaHandler<Underlying>' in a '@Sendable' closure
217 |             } catch {
218 |                 throw CodecError.requestDecoding(error)
/host/spi-builder-workspace/Sources/AWSLambdaRuntimeCore/LambdaHandler.swift:369:17: warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
337 |
338 | @usableFromInline
339 | final class CodableEventLoopLambdaHandler<Underlying: EventLoopLambdaHandler>: ByteBufferLambdaHandler {
    |             `- note: generic class 'CodableEventLoopLambdaHandler' does not conform to the 'Sendable' protocol
340 |     @usableFromInline
341 |     let handler: Underlying
    :
367 |         return self.handler.handle(input, context: context).flatMapThrowing { output in
368 |             do {
369 |                 self.outputBuffer.clear()
    |                 `- warning: capture of 'self' with non-sendable type 'CodableEventLoopLambdaHandler<Underlying>' in a '@Sendable' closure
370 |                 try self.handler.encode(value: output, into: &self.outputBuffer)
371 |                 return self.outputBuffer
[302/304] Linking MockServer
[305/307] Emitting module AWSLambdaRuntime
[306/307] Compiling AWSLambdaRuntime Context+Foundation.swift
[307/307] Compiling AWSLambdaRuntime Lambda+Codable.swift
[309/310] Emitting module AWSLambdaTesting
[310/310] Compiling AWSLambdaTesting Lambda+Testing.swift
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:87:73: warning: type 'Handler' does not conform to the 'Sendable' protocol
 79 |     }
 80 |
 81 |     public static func test<Handler: EventLoopLambdaHandler>(
    |                             `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
 82 |         _ handlerType: Handler.Type,
 83 |         with event: Handler.Event,
    :
 85 |     ) async throws -> Handler.Output {
 86 |         let context = Self.makeContext(config: config)
 87 |         let handler = try await Handler.makeHandler(context: context.0).get()
    |                                                                         `- warning: type 'Handler' does not conform to the 'Sendable' protocol
 88 |         return try await handler.handle(event, context: context.1).get()
 89 |     }
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:88:68: warning: type 'Handler.Output' does not conform to the 'Sendable' protocol
 86 |         let context = Self.makeContext(config: config)
 87 |         let handler = try await Handler.makeHandler(context: context.0).get()
 88 |         return try await handler.handle(event, context: context.1).get()
    |                                                                    `- warning: type 'Handler.Output' does not conform to the 'Sendable' protocol
 89 |     }
 90 |
/host/spi-builder-workspace/Sources/AWSLambdaTesting/Lambda+Testing.swift:97:73: warning: type 'Handler' does not conform to the 'Sendable' protocol
 89 |     }
 90 |
 91 |     public static func test<Handler: ByteBufferLambdaHandler>(
    |                             `- note: consider making generic parameter 'Handler' conform to the 'Sendable' protocol
 92 |         _ handlerType: Handler.Type,
 93 |         with buffer: ByteBuffer,
    :
 95 |     ) async throws -> ByteBuffer? {
 96 |         let context = Self.makeContext(config: config)
 97 |         let handler = try await Handler.makeHandler(context: context.0).get()
    |                                                                         `- warning: type 'Handler' does not conform to the 'Sendable' protocol
 98 |         return try await handler.handle(buffer, context: context.1).get()
 99 |     }
Build complete! (89.78s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-nio",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "2.67.0",
            "upper_bound" : "3.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-nio.git"
    },
    {
      "identity" : "swift-log",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.5.4",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-log.git"
    },
    {
      "identity" : "swift-docc-plugin",
      "requirement" : {
        "exact" : [
          "1.3.0"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-docc-plugin"
    }
  ],
  "manifest_display_name" : "swift-aws-lambda-runtime",
  "name" : "swift-aws-lambda-runtime",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    }
  ],
  "products" : [
    {
      "name" : "AWSLambdaRuntime",
      "targets" : [
        "AWSLambdaRuntime"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AWSLambdaRuntimeCore",
      "targets" : [
        "AWSLambdaRuntimeCore"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "AWSLambdaPackager",
      "targets" : [
        "AWSLambdaPackager"
      ],
      "type" : {
        "plugin" : null
      }
    },
    {
      "name" : "AWSLambdaTesting",
      "targets" : [
        "AWSLambdaTesting"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "MockServer",
      "targets" : [
        "MockServer"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MockServer",
      "module_type" : "SwiftTarget",
      "name" : "MockServer",
      "path" : "Sources/MockServer",
      "product_dependencies" : [
        "NIOHTTP1",
        "NIO"
      ],
      "product_memberships" : [
        "MockServer"
      ],
      "sources" : [
        "main.swift"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "AWSLambdaTestingTests",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaTestingTests",
      "path" : "Tests/AWSLambdaTestingTests",
      "sources" : [
        "Tests.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaTesting"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AWSLambdaTesting",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaTesting",
      "path" : "Sources/AWSLambdaTesting",
      "product_dependencies" : [
        "NIO"
      ],
      "product_memberships" : [
        "AWSLambdaTesting"
      ],
      "sources" : [
        "Lambda+Testing.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntime"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AWSLambdaRuntimeTests",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntimeTests",
      "path" : "Tests/AWSLambdaRuntimeTests",
      "sources" : [
        "Lambda+CodableTest.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntimeCore",
        "AWSLambdaRuntime"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AWSLambdaRuntimeCoreTests",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntimeCoreTests",
      "path" : "Tests/AWSLambdaRuntimeCoreTests",
      "product_dependencies" : [
        "NIOTestUtils",
        "NIOFoundationCompat"
      ],
      "sources" : [
        "ControlPlaneRequestEncoderTests.swift",
        "ControlPlaneRequestTests.swift",
        "DetachedTasksTests.swift",
        "LambdaHandlerTest.swift",
        "LambdaHandlers.swift",
        "LambdaRequestIDTests.swift",
        "LambdaRunnerTest.swift",
        "LambdaRuntimeClientTest.swift",
        "LambdaRuntimeTest.swift",
        "LambdaTest.swift",
        "MockLambdaServer.swift",
        "Utils.swift",
        "UtilsTest.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntimeCore"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AWSLambdaRuntimeCore",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntimeCore",
      "path" : "Sources/AWSLambdaRuntimeCore",
      "product_dependencies" : [
        "Logging",
        "NIOHTTP1",
        "NIOCore",
        "NIOConcurrencyHelpers",
        "NIOPosix"
      ],
      "product_memberships" : [
        "AWSLambdaRuntime",
        "AWSLambdaRuntimeCore",
        "AWSLambdaTesting"
      ],
      "sources" : [
        "ControlPlaneRequest.swift",
        "ControlPlaneRequestEncoder.swift",
        "DetachedTasks.swift",
        "HTTPClient.swift",
        "Lambda+LocalServer.swift",
        "Lambda+String.swift",
        "Lambda.swift",
        "LambdaConfiguration.swift",
        "LambdaContext.swift",
        "LambdaHandler.swift",
        "LambdaRequestID.swift",
        "LambdaRunner.swift",
        "LambdaRuntime.swift",
        "LambdaRuntimeClient.swift",
        "Terminator.swift",
        "Utils.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AWSLambdaRuntime",
      "module_type" : "SwiftTarget",
      "name" : "AWSLambdaRuntime",
      "path" : "Sources/AWSLambdaRuntime",
      "product_dependencies" : [
        "NIOCore",
        "NIOFoundationCompat"
      ],
      "product_memberships" : [
        "AWSLambdaRuntime",
        "AWSLambdaTesting"
      ],
      "sources" : [
        "Context+Foundation.swift",
        "Lambda+Codable.swift"
      ],
      "target_dependencies" : [
        "AWSLambdaRuntimeCore"
      ],
      "type" : "library"
    },
    {
      "c99name" : "AWSLambdaPackager",
      "module_type" : "PluginTarget",
      "name" : "AWSLambdaPackager",
      "path" : "Plugins/AWSLambdaPackager",
      "plugin_capability" : {
        "intent" : {
          "description" : "Archive the Lambda binary and prepare it for uploading to AWS. Requires docker on macOS or non Amazonlinux 2 distributions.",
          "type" : "custom",
          "verb" : "archive"
        },
        "permissions" : [
        ],
        "type" : "command"
      },
      "product_memberships" : [
        "AWSLambdaPackager"
      ],
      "sources" : [
        "Plugin.swift"
      ],
      "type" : "plugin"
    }
  ],
  "tools_version" : "5.9"
}
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.