The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of swift-aws-lambda-runtime, reference 0.5.2 (699ada), with Swift 6.1 for Linux on 26 Apr 2025 15:36:57 UTC.

Swift 6 data race errors: 7

Build Command

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