The Swift Package Index logo.Swift Package Index

Has it really been five years since Swift Package Index launched? Read our anniversary blog post!

Build Information

Failed to build swift-aws-lambda-runtime, reference 1.0.0-alpha.3 (5ecc24), with Swift 6.1 for Android on 28 May 2025 02:04:08 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-3":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 2>&1

Build Log

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