The Swift Package Index logo.Swift Package Index

Build Information

Successful build of swift-aws-lambda-runtime, reference 0.5.2 (699ada), with Swift 6.1 for Linux on 13 Jul 2025 11:44:08 UTC.

Swift 6 data race errors: 7

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/andrea-scuderi/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/andrea-scuderi/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/andrea-scuderi/swift-aws-lambda-runtime.git
Revision (git rev-parse @):
699ada1724459582303c15aae64fa12ca4d33809
SUCCESS checkout https://github.com/andrea-scuderi/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/andrea-scuderi/swift-aws-lambda-runtime.git
https://github.com/andrea-scuderi/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-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
basic-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/apple/swift-nio.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/swift-server/swift-backtrace.git
[1/631] Fetching swift-backtrace
[487/4485] Fetching swift-backtrace, swift-log
[4486/81064] Fetching swift-backtrace, swift-log, swift-nio
Fetched https://github.com/swift-server/swift-backtrace.git from cache (4.66s)
Fetched https://github.com/apple/swift-log.git from cache (4.67s)
Fetched https://github.com/apple/swift-nio.git from cache (4.81s)
Computing version for https://github.com/swift-server/swift-backtrace.git
Computed https://github.com/swift-server/swift-backtrace.git at 1.3.5 (5.55s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.3 (0.66s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.84.0 (2.32s)
Fetching https://github.com/apple/swift-system.git
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-atomics.git
[1/1808] Fetching swift-atomics
[20/6465] Fetching swift-atomics, swift-system
[4945/23211] Fetching swift-atomics, swift-system, swift-collections
Fetched https://github.com/apple/swift-system.git from cache (0.52s)
Fetched https://github.com/apple/swift-atomics.git from cache (0.52s)
[4354/16746] Fetching swift-collections
Fetched https://github.com/apple/swift-collections.git from cache (1.63s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.3.0 (2.41s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.5.0 (0.65s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.2.0 (0.88s)
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.3.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.5.0
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-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.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.84.0
Building for debugging...
[0/73] Write sources
[20/73] Compiling _AtomicsShims.c
[21/73] Compiling CNIOWASI CNIOWASI.c
[21/73] Compiling CNIOLinux liburing_shims.c
[23/73] Compiling CNIOWindows WSAStartup.c
[24/73] Compiling CNIOWindows shim.c
[25/73] Compiling CNIOLLHTTP c_nio_http.c
[26/73] Compiling CNIODarwin shim.c
[27/73] Compiling CNIOLinux shim.c
[28/73] Compiling CNIOLLHTTP c_nio_api.c
[29/73] Compiling CBacktrace state.c
[30/73] Compiling CBacktrace sort.c
[31/73] Compiling CBacktrace print.c
[32/73] Compiling CBacktrace simple.c
[33/73] Write swift-version-24593BA9C3E375BF.txt
[34/73] Compiling CBacktrace mmapio.c
[35/73] Compiling CBacktrace fileline.c
[36/73] Compiling CBacktrace posix.c
[37/73] Compiling CBacktrace mmap.c
[38/73] Compiling CBacktrace elf.c
[39/79] Compiling CNIOLLHTTP c_nio_llhttp.c
[40/79] Compiling CBacktrace dwarf.c
[41/83] Compiling CBacktrace backtrace.c
[42/98] Compiling CBacktrace atomic.c
[42/98] Write sources
[46/115] Emitting module _NIODataStructures
[47/115] Emitting module InternalCollectionsUtilities
[48/116] Compiling AWSLambdaEvents SES.swift
[49/116] Compiling AWSLambdaEvents SNS.swift
[50/116] Compiling Backtrace Demangle.swift
[51/116] Emitting module _NIOBase64
[52/116] Compiling _NIOBase64 Base64.swift
[53/117] Emitting module Backtrace
[54/117] Compiling Backtrace Backtrace.swift
[55/118] Compiling Logging LogHandler.swift
[55/118] Compiling c-nioatomics.c
[57/118] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[58/118] Compiling AWSLambdaEvents SQS.swift
[59/118] Compiling AWSLambdaEvents Base64.swift
[60/118] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[61/118] Compiling _NIODataStructures _TinyArray.swift
[62/118] Compiling _NIODataStructures PriorityQueue.swift
[63/118] Compiling AWSLambdaEvents DynamoDB.swift
[64/118] Compiling AWSLambdaEvents S3.swift
[65/118] Compiling AWSLambdaEvents AppSync.swift
[66/118] Compiling AWSLambdaEvents Cloudwatch.swift
[67/118] Compiling AWSLambdaEvents APIGateway.swift
[68/118] Compiling AWSLambdaEvents AWSRegion.swift
[69/118] Compiling AWSLambdaEvents ALB.swift
[70/118] Compiling AWSLambdaEvents APIGateway+V2.swift
[73/119] 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 | }
[74/120] Wrapping AST for Backtrace for debugging
[75/120] Wrapping AST for _NIOBase64 for debugging
[76/138] Wrapping AST for InternalCollectionsUtilities for debugging
[78/139] Compiling Atomics UnsafeAtomic.swift
[79/139] Compiling Atomics UnsafeAtomicLazyReference.swift
[80/155] Compiling AWSLambdaEvents HTTP.swift
[81/155] Compiling DequeModule Deque.swift
[82/155] Compiling DequeModule _DequeBuffer.swift
[83/155] Compiling DequeModule Deque._Storage.swift
[84/155] Compiling DequeModule Deque._UnsafeHandle.swift
[85/155] Compiling DequeModule _DequeBufferHeader.swift
[86/155] Compiling Atomics ManagedAtomicLazyReference.swift
[87/155] Compiling DequeModule Deque+CustomReflectable.swift
[88/155] Compiling DequeModule Deque+Descriptions.swift
[91/157] Compiling DequeModule Deque+Codable.swift
[92/157] Compiling DequeModule Deque+Collection.swift
[94/157] Compiling DequeModule Deque+Extras.swift
[95/157] Compiling DequeModule Deque+Hashable.swift
[96/157] Compiling DequeModule Deque+Equatable.swift
[97/157] Compiling DequeModule Deque+ExpressibleByArrayLiteral.swift
[98/157] Compiling Atomics IntegerOperations.swift
[99/157] Compiling Atomics Unmanaged extensions.swift
[100/157] Emitting module Logging
[101/157] Compiling Logging Locks.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,
/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,
[104/157] Compiling _NIODataStructures Heap.swift
[107/158] Compiling DequeModule Deque+Testing.swift
[108/158] Compiling Logging MetadataProvider.swift
[109/158] Compiling AWSLambdaEvents DateWrappers.swift
[114/158] Compiling Logging Logging.swift
[123/159] Compiling DequeModule _DequeSlot.swift
[124/159] Compiling DequeModule _UnsafeWrappedBuffer.swift
[124/159] Wrapping AST for _NIODataStructures for debugging
/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 | }
/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 | }
[127/159] Wrapping AST for Logging for debugging
[131/160] Compiling c-atomics.c
[135/160] Emitting module DequeModule
[136/167] Wrapping AST for DequeModule for debugging
[138/167] Compiling NIOConcurrencyHelpers NIOLock.swift
[139/167] Compiling NIOConcurrencyHelpers lock.swift
[140/167] Emitting module NIOConcurrencyHelpers
[141/167] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[142/167] Compiling NIOConcurrencyHelpers atomics.swift
[143/167] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[145/168] Emitting module Atomics
[145/168] Wrapping AST for NIOConcurrencyHelpers for debugging
[150/169] Wrapping AST for Atomics for debugging
[152/230] Compiling NIOCore IOData.swift
[153/230] Compiling NIOCore IPProtocol.swift
[154/230] Compiling NIOCore IntegerBitPacking.swift
[155/230] Compiling NIOCore IntegerTypes.swift
[156/230] Compiling NIOCore Interfaces.swift
[157/230] Compiling NIOCore Linux.swift
[158/230] Compiling NIOCore MarkedCircularBuffer.swift
[159/230] Compiling NIOCore MulticastChannel.swift
[160/238] Compiling NIOCore AddressedEnvelope.swift
[161/238] Compiling NIOCore AsyncAwaitSupport.swift
[162/238] Compiling NIOCore AsyncChannel.swift
[163/238] Compiling NIOCore AsyncChannelHandler.swift
[164/238] Compiling NIOCore AsyncChannelInboundStream.swift
[165/238] Compiling NIOCore AsyncChannelOutboundWriter.swift
[166/238] Compiling NIOCore NIOAsyncSequenceProducer.swift
[167/238] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[168/238] Compiling NIOCore NIOAsyncWriter.swift
[169/238] Compiling NIOCore CircularBuffer.swift
[170/238] Compiling NIOCore Codec.swift
[171/238] Compiling NIOCore ConvenienceOptionSupport.swift
[172/238] Compiling NIOCore DeadChannel.swift
[173/238] Compiling NIOCore DispatchQueue+WithFuture.swift
[174/238] Compiling NIOCore EventLoop+Deprecated.swift
[175/238] Compiling NIOCore EventLoop+SerialExecutor.swift
[176/238] Compiling NIOCore EventLoop.swift
[177/238] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[178/238] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[179/238] Compiling NIOCore SocketAddresses.swift
[180/238] Compiling NIOCore SocketOptionProvider.swift
[181/238] Compiling NIOCore SystemCallHelpers.swift
[182/238] Compiling NIOCore TimeAmount+Duration.swift
[183/238] Compiling NIOCore TypeAssistedChannelHandler.swift
[184/238] Compiling NIOCore UniversalBootstrapSupport.swift
[185/238] Compiling NIOCore Utilities.swift
[186/238] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[187/238] Compiling NIOCore BSDSocketAPI.swift
[188/238] Compiling NIOCore ByteBuffer-aux.swift
[189/238] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[190/238] Compiling NIOCore ByteBuffer-conversions.swift
[191/238] Compiling NIOCore ByteBuffer-core.swift
[192/238] Compiling NIOCore ByteBuffer-hex.swift
[193/238] Compiling NIOCore ByteBuffer-int.swift
[194/238] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[195/238] Compiling NIOCore ByteBuffer-multi-int.swift
[196/238] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[197/238] Compiling NIOCore ByteBuffer-views.swift
[198/238] Compiling NIOCore Channel.swift
[199/238] Compiling NIOCore ChannelHandler.swift
[200/238] Compiling NIOCore ChannelHandlers.swift
[201/238] Compiling NIOCore ChannelInvoker.swift
[202/238] Compiling NIOCore ChannelOption.swift
[203/238] Compiling NIOCore ChannelPipeline.swift
[204/238] Compiling NIOCore EventLoopFuture+Deprecated.swift
[205/238] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[206/238] Compiling NIOCore EventLoopFuture.swift
[207/238] Compiling NIOCore FileDescriptor.swift
[208/238] Compiling NIOCore FileHandle.swift
[209/238] Compiling NIOCore FileRegion.swift
[210/238] Compiling NIOCore GlobalSingletons.swift
[211/238] Compiling NIOCore IO.swift
[212/238] Compiling NIOCore NIOAny.swift
[213/238] Compiling NIOCore NIOCloseOnErrorHandler.swift
[214/238] Compiling NIOCore NIOCoreSendableMetatype.swift
[215/238] Compiling NIOCore NIOLoopBound.swift
[216/238] Compiling NIOCore NIOPooledRecvBufferAllocator.swift
[217/238] Compiling NIOCore NIOScheduledCallback.swift
[218/238] Compiling NIOCore NIOSendable.swift
[219/238] Compiling NIOCore RecvByteBufferAllocator.swift
[220/238] Emitting module NIOCore
[221/239] Wrapping AST for NIOCore for debugging
[223/290] Emitting module NIOEmbedded
[224/290] Compiling NIOEmbedded Embedded.swift
[225/290] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[226/290] Compiling NIOEmbedded AsyncTestingChannel.swift
[228/291] Compiling NIOPosix Pool.swift
[229/291] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[230/291] Compiling NIOPosix PosixSingletons.swift
[231/291] Compiling NIOPosix RawSocketBootstrap.swift
[232/291] Compiling NIOPosix Resolver.swift
[233/291] Compiling NIOPosix Selectable.swift
[234/297] Compiling NIOPosix IO.swift
[235/297] Compiling NIOPosix IntegerBitPacking.swift
[236/297] Compiling NIOPosix IntegerTypes.swift
[237/297] Compiling NIOPosix Linux.swift
[238/297] Compiling NIOPosix LinuxCPUSet.swift
[239/297] Compiling NIOPosix LinuxUring.swift
[240/297] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[240/297] Wrapping AST for NIOEmbedded for debugging
[242/297] Compiling NIOPosix ThreadPosix.swift
[243/297] Compiling NIOPosix ThreadWindows.swift
[244/297] Compiling NIOPosix UnsafeTransfer.swift
[245/297] Compiling NIOPosix Utilities.swift
[246/297] Compiling NIOPosix VsockAddress.swift
[247/297] Compiling NIOPosix VsockChannelEvents.swift
[248/297] Emitting module NIOPosix
[249/297] Compiling NIOPosix SelectableChannel.swift
[250/297] Compiling NIOPosix SelectableEventLoop.swift
[251/297] Compiling NIOPosix SelectorEpoll.swift
[252/297] Compiling NIOPosix SelectorGeneric.swift
[253/297] Compiling NIOPosix SelectorKqueue.swift
[254/297] Compiling NIOPosix SelectorUring.swift
[255/297] Compiling NIOPosix ServerSocket.swift
[256/297] Compiling NIOPosix Socket.swift
[257/297] Compiling NIOPosix SocketChannel.swift
[258/297] Compiling NIOPosix SocketProtocols.swift
[259/297] Compiling NIOPosix System.swift
[260/297] Compiling NIOPosix Thread.swift
[261/297] Compiling NIOPosix BSDSocketAPICommon.swift
[262/297] Compiling NIOPosix BSDSocketAPIPosix.swift
[263/297] Compiling NIOPosix BSDSocketAPIWindows.swift
[264/297] Compiling NIOPosix BaseSocket.swift
[265/297] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[266/297] Compiling NIOPosix BaseSocketChannel.swift
[267/297] Compiling NIOPosix BaseStreamSocketChannel.swift
[268/297] Compiling NIOPosix NIOPosixSendableMetatype.swift
[269/297] Compiling NIOPosix NIOThreadPool.swift
[270/297] Compiling NIOPosix NonBlockingFileIO.swift
[271/297] Compiling NIOPosix PendingDatagramWritesManager.swift
[272/297] Compiling NIOPosix PendingWritesManager.swift
[273/297] Compiling NIOPosix PipeChannel.swift
[274/297] Compiling NIOPosix PipePair.swift
[275/297] Compiling NIOPosix Bootstrap.swift
[276/297] Compiling NIOPosix ControlMessage.swift
[277/297] Compiling NIOPosix DatagramVectorReadManager.swift
[278/297] Compiling NIOPosix Errors+Any.swift
[279/297] Compiling NIOPosix FileDescriptor.swift
[280/297] Compiling NIOPosix GetaddrinfoResolver.swift
[281/297] Compiling NIOPosix HappyEyeballs.swift
[282/298] Wrapping AST for NIOPosix for debugging
[284/300] Emitting module NIO
[285/300] Compiling NIO Exports.swift
[286/301] Wrapping AST for NIO for debugging
[288/324] Emitting module _NIOConcurrency
[289/324] Compiling _NIOConcurrency Empty.swift
[290/325] Wrapping AST for _NIOConcurrency for debugging
[292/325] Compiling NIOFoundationCompat Codable+ByteBuffer.swift
[293/325] Compiling NIOFoundationCompat JSONSerialization+ByteBuffer.swift
[294/325] Compiling NIOFoundationCompat WaitSpinningRunLoop.swift
[295/325] Compiling NIOHTTP1 HTTPHeaderValidator.swift
[296/325] Compiling NIOHTTP1 HTTPHeaders+Validation.swift
[297/327] Compiling NIOHTTP1 NIOTypedHTTPClientUpgradeHandler.swift
[298/327] Compiling NIOHTTP1 NIOTypedHTTPClientUpgraderStateMachine.swift
[299/327] Emitting module NIOHTTP1
[300/327] Compiling NIOFoundationCompat ByteBuffer-foundation.swift
[301/327] Emitting module NIOFoundationCompat
[302/328] Compiling NIOHTTP1 NIOHTTPClientUpgradeHandler.swift
[303/328] Compiling NIOHTTP1 NIOHTTPObjectAggregator.swift
[305/328] Compiling NIOHTTP1 NIOTypedHTTPServerUpgradeHandler.swift
[306/328] Compiling NIOHTTP1 NIOTypedHTTPServerUpgraderStateMachine.swift
[306/328] Wrapping AST for NIOFoundationCompat for debugging
[308/328] Compiling NIOHTTP1 HTTPServerProtocolErrorHandler.swift
[309/328] Compiling NIOHTTP1 HTTPServerUpgradeHandler.swift
[310/328] Compiling NIOHTTP1 HTTPPipelineSetup.swift
[311/328] Compiling NIOHTTP1 HTTPServerPipelineHandler.swift
[312/328] Compiling NIOHTTP1 HTTPTypedPipelineSetup.swift
[313/328] Compiling NIOHTTP1 HTTPTypes.swift
[314/328] Compiling NIOHTTP1 ByteCollectionUtils.swift
[315/328] Compiling NIOHTTP1 HTTPDecoder.swift
[316/328] Compiling NIOHTTP1 HTTPEncoder.swift
[317/329] Wrapping AST for NIOHTTP1 for debugging
[319/342] Compiling AWSLambdaRuntimeCore LambdaConfiguration.swift
[320/342] Compiling AWSLambdaRuntimeCore LambdaContext.swift
[321/342] 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 |             }
[322/342] 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 |             }
[323/343] 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 |     }
[324/343] Compiling AWSLambdaRuntimeCore LambdaRuntimeClient.swift
[325/343] 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 |             }
[326/343] 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
[327/343] Emitting module MockServer
[328/343] 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 |         }
[329/344] Wrapping AST for MockServer for debugging
[330/344] Write Objects.LinkFileList
[332/344] Compiling AWSLambdaRuntimeCore Utils.swift
[333/344] 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:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 |     // visible for ChannelPipeline to modify
1794 |     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:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 |     // visible for ChannelPipeline to modify
1794 |     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:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 |     // visible for ChannelPipeline to modify
1794 |     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 |             }
[334/344] 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:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 |     // visible for ChannelPipeline to modify
1794 |     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:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 |     // visible for ChannelPipeline to modify
1794 |     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:1792:20: note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1790 | /// at the right point in time. Often, the right behaviour is to react to an event and then forward it to the next
1791 | /// `ChannelHandler`.
1792 | public final class ChannelHandlerContext: ChannelInvoker {
     |                    `- note: class 'ChannelHandlerContext' does not conform to the 'Sendable' protocol
1793 |     // visible for ChannelPipeline to modify
1794 |     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 |             }
[335/344] 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/345] Wrapping AST for AWSLambdaRuntimeCore for debugging
[337/348] Linking MockServer
[339/348] Emitting module AWSLambdaRuntime
[340/348] Compiling AWSLambdaRuntime Context+Foundation.swift
[341/348] Compiling AWSLambdaRuntime Lambda+Codable.swift
[342/349] Wrapping AST for AWSLambdaRuntime for debugging
[344/355] Compiling StringSample main.swift
[345/355] Emitting module StringSample
[346/356] Emitting module AWSLambdaTesting
[347/356] 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 |     }
[349/356] Compiling CodableSample main.swift
[350/356] Emitting module CodableSample
[351/358] Wrapping AST for StringSample for debugging
[352/358] Write Objects.LinkFileList
[354/358] Wrapping AST for CodableSample for debugging
[355/358] Write Objects.LinkFileList
[356/358] Linking StringSample
[357/358] Linking CodableSample
Build complete! (105.88s)
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:2e2b3aca8600f890617c2faa770b70e33c1dfd303d6f92b308423b89ef6bde64
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.