The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of FluentMongo, reference master (76bc6e), with Swift 6.0 for Linux on 3 Nov 2024 23:17:36 UTC.

Swift 6 data race errors: 1

Build Command

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

Build Log

[541/608] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[542/608] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[543/608] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[544/608] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[545/608] Compiling BitCollections BitSet+SetAlgebra union.swift
[546/608] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[547/608] Compiling BitCollections BitSet.Counted.swift
[554/608] Compiling BitCollections BitArray+Descriptions.swift
[555/608] Compiling BitCollections BitArray+Equatable.swift
[556/608] Emitting module BitCollections
[559/608] Compiling BitCollections BitArray+Hashable.swift
[560/608] Compiling BitCollections BitArray+Initializers.swift
[561/608] Compiling BitCollections BitArray+Invariants.swift
[562/608] Compiling BitCollections BitArray+LosslessStringConvertible.swift
[579/608] Compiling BitCollections BitSet.Index.swift
[580/608] Compiling BitCollections BitSet._UnsafeHandle.swift
[581/608] Compiling BitCollections BitSet.swift
[582/608] Compiling BitCollections Range+Utilities.swift
[583/608] Compiling BitCollections Slice+Utilities.swift
[584/608] Compiling BitCollections UInt+Tricks.swift
[585/608] Compiling BitCollections _Word.swift
[590/609] Compiling Algorithms Trim.swift
[591/609] Compiling Algorithms Unique.swift
[592/609] Compiling Algorithms Windows.swift
[593/611] Compiling Collections Collections.swift
[594/611] Emitting module Collections
[603/612] Emitting module Atomics
[605/673] Compiling NIOCore AsyncChannelInboundStream.swift
[606/673] Compiling NIOCore AsyncChannelOutboundWriter.swift
[607/673] Compiling NIOCore NIOAsyncSequenceProducer.swift
[608/673] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[609/673] Compiling NIOCore AddressedEnvelope.swift
[610/673] Compiling NIOCore AsyncAwaitSupport.swift
[611/673] Compiling NIOCore AsyncChannel.swift
[612/673] Compiling NIOCore AsyncChannelHandler.swift
[613/673] Emitting module Algorithms
[615/674] Compiling NIOCore MulticastChannel.swift
[616/674] Compiling NIOCore NIOAny.swift
[617/674] Compiling NIOCore NIOCloseOnErrorHandler.swift
[618/674] Compiling NIOCore NIOLoopBound.swift
[619/674] Compiling NIOCore NIOScheduledCallback.swift
[620/674] Compiling NIOCore NIOSendable.swift
[621/674] Compiling NIOCore PointerHelpers.swift
[622/674] Compiling NIOCore RecvByteBufferAllocator.swift
[623/674] Compiling NIOCore IO.swift
[624/674] Compiling NIOCore IOData.swift
[625/674] Compiling NIOCore IPProtocol.swift
[626/674] Compiling NIOCore IntegerBitPacking.swift
[627/674] Compiling NIOCore IntegerTypes.swift
[628/674] Compiling NIOCore Interfaces.swift
[629/674] Compiling NIOCore Linux.swift
[630/674] Compiling NIOCore MarkedCircularBuffer.swift
[631/674] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[632/674] Compiling NIOCore EventLoopFuture+Deprecated.swift
[633/674] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[634/674] Compiling NIOCore EventLoopFuture.swift
[635/674] Compiling NIOCore FileDescriptor.swift
[636/674] Compiling NIOCore FileHandle.swift
[637/674] Compiling NIOCore FileRegion.swift
[638/674] Compiling NIOCore GlobalSingletons.swift
[639/682] Compiling NIOCore CircularBuffer.swift
[640/682] Compiling NIOCore Codec.swift
[641/682] Compiling NIOCore ConvenienceOptionSupport.swift
[642/682] Compiling NIOCore DeadChannel.swift
[643/682] Compiling NIOCore DispatchQueue+WithFuture.swift
[644/682] Compiling NIOCore EventLoop+Deprecated.swift
[645/682] Compiling NIOCore EventLoop+SerialExecutor.swift
[646/682] Compiling NIOCore EventLoop.swift
[655/682] Compiling NIOCore NIOAsyncWriter.swift
[656/682] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[657/682] Compiling NIOCore SocketAddresses.swift
[658/682] Compiling NIOCore SocketOptionProvider.swift
[659/682] Compiling NIOCore SystemCallHelpers.swift
[660/682] Compiling NIOCore TimeAmount+Duration.swift
[661/682] Compiling NIOCore TypeAssistedChannelHandler.swift
[662/682] Compiling NIOCore UniversalBootstrapSupport.swift
[663/682] Compiling NIOCore Utilities.swift
[664/682] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[665/682] Compiling NIOCore BSDSocketAPI.swift
[666/682] Compiling NIOCore ByteBuffer-aux.swift
[667/682] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[668/682] Compiling NIOCore ByteBuffer-conversions.swift
[669/682] Compiling NIOCore ByteBuffer-core.swift
[670/682] Compiling NIOCore ByteBuffer-hex.swift
[671/682] Compiling NIOCore ByteBuffer-int.swift
[672/682] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[673/682] Compiling NIOCore ByteBuffer-multi-int.swift
[674/682] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[675/682] Compiling NIOCore ByteBuffer-views.swift
[676/682] Compiling NIOCore Channel.swift
[677/682] Compiling NIOCore ChannelHandler.swift
[678/682] Compiling NIOCore ChannelHandlers.swift
[679/682] Compiling NIOCore ChannelInvoker.swift
[680/682] Compiling NIOCore ChannelOption.swift
[681/682] Compiling NIOCore ChannelPipeline.swift
[682/682] Emitting module NIOCore
[684/735] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[685/735] Compiling NIOEmbedded Embedded.swift
[686/735] Emitting module NIOEmbedded
[687/735] Compiling NIOEmbedded AsyncTestingChannel.swift
[689/736] Emitting module NIOPosix
[690/742] Compiling NIOPosix ThreadPosix.swift
[691/742] Compiling NIOPosix ThreadWindows.swift
[692/742] Compiling NIOPosix UnsafeTransfer.swift
[693/742] Compiling NIOPosix Utilities.swift
[694/742] Compiling NIOPosix VsockAddress.swift
[695/742] Compiling NIOPosix VsockChannelEvents.swift
[696/742] Compiling NIOPosix BSDSocketAPICommon.swift
[697/742] Compiling NIOPosix BSDSocketAPIPosix.swift
[698/742] Compiling NIOPosix BSDSocketAPIWindows.swift
[699/742] Compiling NIOPosix BaseSocket.swift
[700/742] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[701/742] Compiling NIOPosix BaseSocketChannel.swift
[702/742] Compiling NIOPosix BaseStreamSocketChannel.swift
[703/742] Compiling NIOPosix ServerSocket.swift
[704/742] Compiling NIOPosix Socket.swift
[705/742] Compiling NIOPosix SocketChannel.swift
[706/742] Compiling NIOPosix SocketProtocols.swift
[707/742] Compiling NIOPosix System.swift
[708/742] Compiling NIOPosix Thread.swift
[709/742] Compiling NIOPosix Pool.swift
[710/742] Compiling NIOPosix PooledRecvBufferAllocator.swift
[711/742] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[712/742] Compiling NIOPosix PosixSingletons.swift
[713/742] Compiling NIOPosix RawSocketBootstrap.swift
[714/742] Compiling NIOPosix Resolver.swift
[715/742] Compiling NIOPosix Selectable.swift
[716/742] Compiling NIOPosix SelectableChannel.swift
[717/742] Compiling NIOPosix SelectableEventLoop.swift
[718/742] Compiling NIOPosix SelectorEpoll.swift
[719/742] Compiling NIOPosix SelectorGeneric.swift
[720/742] Compiling NIOPosix SelectorKqueue.swift
[721/742] Compiling NIOPosix SelectorUring.swift
[722/742] Compiling NIOPosix Bootstrap.swift
[723/742] Compiling NIOPosix ControlMessage.swift
[724/742] Compiling NIOPosix DatagramVectorReadManager.swift
[725/742] Compiling NIOPosix Errors+Any.swift
[726/742] Compiling NIOPosix FileDescriptor.swift
[727/742] Compiling NIOPosix GetaddrinfoResolver.swift
[728/742] Compiling NIOPosix HappyEyeballs.swift
[729/742] Compiling NIOPosix NIOThreadPool.swift
[730/742] Compiling NIOPosix NonBlockingFileIO.swift
[731/742] Compiling NIOPosix PendingDatagramWritesManager.swift
[732/742] Compiling NIOPosix PendingWritesManager.swift
[733/742] Compiling NIOPosix PipeChannel.swift
[734/742] Compiling NIOPosix PipePair.swift
[735/742] Compiling NIOPosix PointerHelpers.swift
[736/742] Compiling NIOPosix IO.swift
[737/742] Compiling NIOPosix IntegerBitPacking.swift
[738/742] Compiling NIOPosix IntegerTypes.swift
[739/742] Compiling NIOPosix Linux.swift
[740/742] Compiling NIOPosix LinuxCPUSet.swift
[741/742] Compiling NIOPosix LinuxUring.swift
[742/742] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[744/767] Emitting module NIO
[745/767] Compiling NIO Exports.swift
[747/796] Compiling SwiftBSON BSONBinary.swift
[748/796] Compiling SwiftBSON BSONCode.swift
[749/796] Compiling SwiftBSON BSONError.swift
[750/798] Compiling SwiftBSON ExtendedJSONEncoder.swift
[751/798] Compiling SwiftBSON BSONDocument+Sequence.swift
[752/798] Compiling SwiftBSON BSONDocument.swift
[753/798] Compiling SwiftBSON Date+BSONValue.swift
[754/798] Compiling SwiftBSON Double+BSONValue.swift
[755/798] Compiling SwiftBSON ExtendedJSONDecoder.swift
[756/798] Compiling AsyncKit Optional+StrictMap.swift
[757/798] Compiling AsyncKit Exports.swift
[758/798] Emitting module SwiftBSON
[759/801] Compiling SwiftBSON BSONDBPointer.swift
[760/801] Compiling SwiftBSON BSONDecimal128.swift
[761/801] Compiling SwiftBSON BSONDecoder.swift
[762/801] Compiling SwiftBSON BSONDocument+Collection.swift
[763/801] Compiling SwiftBSON Array+BSONValue.swift
[764/801] Compiling SwiftBSON BSON.swift
[765/801] Compiling SwiftBSON ByteBuffer+BSON.swift
[766/801] Compiling SwiftBSON CodableNumber.swift
[767/801] Compiling SwiftBSON CodingStrategies.swift
[780/801] Compiling SwiftBSON BSONSymbol.swift
[781/801] Compiling SwiftBSON BSONTimestamp.swift
[782/801] Compiling SwiftBSON BSONValue.swift
[783/801] Compiling SwiftBSON Bool+BSONValue.swift
[789/801] Compiling SwiftBSON BSONNulls.swift
[790/801] Compiling SwiftBSON BSONObjectID.swift
[791/801] Compiling SwiftBSON BSONRegularExpression.swift
[792/801] Compiling SwiftBSON Integers+BSONValue.swift
[793/801] Compiling SwiftBSON JSON.swift
[794/801] Compiling SwiftBSON String+BSONValue.swift
[796/864] Emitting module AsyncKit
[797/864] Compiling MongoSwift MongoError.swift
[798/864] Compiling MongoSwift MongoNamespace.swift
[799/864] Compiling MongoSwift MongoServerAPI.swift
[800/864] Compiling MongoSwift MongoSwift.swift
[801/864] Compiling MongoSwift MongoSwiftVersion.swift
[802/864] Compiling MongoSwift AbortTransactionOperation.swift
[803/864] Compiling MongoSwift AggregateOperation.swift
[804/864] Compiling MongoSwift CommitTransactionOperation.swift
[805/864] Compiling MongoSwift CountDocumentsOperation.swift
[806/864] Compiling MongoSwift CreateCollectionOperation.swift
[807/864] Compiling MongoSwift CreateIndexesOperation.swift
[808/864] Compiling MongoSwift DistinctOperation.swift
[809/864] Compiling MongoSwift DropCollectionOperation.swift
[810/864] Compiling MongoSwift DropDatabaseOperation.swift
[811/864] Compiling MongoSwift DropIndexesOperation.swift
[812/864] Compiling MongoSwift EstimatedDocumentCountOperation.swift
[813/864] Compiling MongoSwift FindAndModifyOperation.swift
[814/864] Compiling MongoSwift FindOperation.swift
[815/864] Compiling MongoSwift ListCollectionsOperation.swift
[816/864] Compiling MongoSwift ListDatabasesOperation.swift
[817/864] Compiling MongoSwift ListIndexesOperation.swift
[818/864] Compiling MongoSwift MongocCommandHelpers.swift
[819/864] Compiling MongoSwift Operation.swift
[820/864] Compiling MongoSwift RenameCollectionOperation.swift
[821/864] Compiling MongoSwift RunCommandOperation.swift
[822/872] Emitting module MongoSwift
[823/872] Compiling MongoSwift APM.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[824/872] Compiling MongoSwift ChangeStream+AsyncSequence.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[825/872] Compiling MongoSwift ClientSession+AsyncAwait.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[826/872] Compiling MongoSwift MongoClient+AsyncAwait.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[827/872] Compiling MongoSwift MongoCollection+AsyncAwait.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[828/872] Compiling MongoSwift MongoCollection+ChangeStreams+AsyncAwait.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[829/872] Compiling MongoSwift MongoCollection+FindAndModify+AsyncAwait.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[830/872] Compiling MongoSwift MongoCollection+Indexes+AsyncAwait.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[831/872] Compiling MongoSwift MongoCollection+Read+AsyncAwait.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
1 | #include "/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
  |          `- note: in file included from <module-includes>:1:
2 |
[832/872] Compiling MongoSwift MongoCollection+Write+AsyncAwait.swift
[833/872] Compiling MongoSwift MongoCursor+AsyncSequence.swift
[834/872] Compiling MongoSwift MongoDatabase+AsyncAwait.swift
[835/872] Compiling MongoSwift BSONPointerUtils.swift
[836/872] Compiling MongoSwift BSONUtil.swift
[837/872] Compiling MongoSwift ChangeStream.swift
[838/872] Compiling MongoSwift ChangeStreamEvent.swift
[839/872] Compiling MongoSwift ChangeStreamOptions.swift
[840/872] Compiling MongoSwift ClientSession.swift
[841/872] Compiling MongoSwift Compressor.swift
[842/872] Compiling MongoSwift ConnectionPool.swift
[843/872] Compiling MongoSwift CursorCommon.swift
[844/872] Compiling MongoSwift EventLoopBoundMongoClient.swift
[845/872] Compiling MongoSwift Exports.swift
[846/872] Compiling MongoSwift Hint.swift
[847/872] Compiling MongoSwift MongoClient.swift
[848/872] Compiling MongoSwift MongoCollection+BulkWrite.swift
[849/872] Compiling MongoSwift MongoCollection+ChangeStreams.swift
[850/872] Compiling MongoSwift MongoCollection+FindAndModify.swift
[851/872] Compiling MongoSwift MongoCollection+Indexes.swift
[852/872] Compiling MongoSwift MongoCollection+Read.swift
[853/872] Compiling MongoSwift MongoCollection+Write.swift
[854/872] Compiling MongoSwift MongoCollection.swift
[855/872] Compiling MongoSwift MongoConnectionString.swift
[856/872] Compiling MongoSwift MongoCredential.swift
[857/872] Compiling MongoSwift MongoCursor.swift
[858/872] Compiling MongoSwift MongoDatabase.swift
[859/872] Compiling MongoSwift StartSessionOperation.swift
[860/872] Compiling MongoSwift StartTransactionOperation.swift
[861/872] Compiling MongoSwift WatchOperation.swift
[862/872] Compiling MongoSwift ReadConcern.swift
[863/872] Compiling MongoSwift ReadPreference.swift
[864/872] Compiling MongoSwift SDAM.swift
[865/872] Compiling MongoSwift ServerSelection.swift
[866/872] Compiling MongoSwift WriteConcern.swift
[875/956] Compiling FluentKit AsyncMigration.swift
[876/956] Compiling FluentKit AsyncModelMiddleware.swift
[877/956] Compiling FluentKit Children+Concurrency.swift
[878/956] Compiling FluentKit Database+Concurrency.swift
[879/956] Compiling FluentKit EnumBuilder+Concurrency.swift
[880/956] Compiling FluentKit Model+Concurrency.swift
[881/956] Compiling FluentKit ModelResponder+Concurrency.swift
[882/956] Compiling FluentKit OptionalChild+Concurrency.swift
[883/956] Compiling FluentKit OptionalParent+Concurrency.swift
[884/956] Compiling FluentKit Parent+Concurrency.swift
[885/956] Compiling FluentKit QueryBuilder+Concurrency.swift
[886/956] Compiling FluentKit Relation+Concurrency.swift
[887/967] Emitting module FluentKit
[888/967] Compiling FluentKit SchemaBuilder+Concurrency.swift
[889/967] Compiling FluentKit Siblings+Concurrency.swift
[890/967] Compiling FluentKit Database+Logging.swift
[891/967] Compiling FluentKit Database.swift
[892/967] Compiling FluentKit DatabaseID.swift
[893/967] Compiling FluentKit DatabaseInput.swift
[894/967] Compiling FluentKit DatabaseOutput+Cascade.swift
[895/967] Compiling FluentKit DatabaseOutput+Prefix.swift
[896/967] Compiling FluentKit DatabaseOutput.swift
[897/967] Compiling FluentKit Databases.swift
[898/967] Compiling FluentKit TransactionControlDatabase.swift
[899/967] Compiling FluentKit DatabaseEnum.swift
[900/967] Compiling FluentKit AnyModel.swift
[901/967] Compiling FluentKit EagerLoad.swift
[902/967] Compiling FluentKit Fields+Codable.swift
[903/967] Compiling FluentKit Fields.swift
[904/967] Compiling FluentKit MirrorBypass.swift
[905/967] Compiling FluentKit Model+CRUD.swift
[906/967] Compiling FluentKit Model.swift
[907/967] Compiling FluentKit ModelAlias.swift
[908/967] Compiling FluentKit Schema.swift
[909/967] Compiling FluentKit FieldOperators.swift
[910/967] Compiling FluentKit Operators.swift
[911/967] Compiling FluentKit ValueOperators+Array.swift
[912/967] Compiling FluentKit QueryBuilder+Filter.swift
[913/967] Compiling FluentKit QueryBuilder+Group.swift
[914/967] Compiling FluentKit QueryBuilder+Join.swift
[915/967] Compiling FluentKit QueryBuilder+Paginate.swift
[916/967] Compiling FluentKit QueryBuilder+Range.swift
[917/967] Compiling FluentKit QueryBuilder+Set.swift
[918/967] Compiling FluentKit QueryBuilder+Sort.swift
[919/967] Compiling FluentKit QueryBuilder.swift
[920/967] Compiling FluentKit DatabaseQuery+Action.swift
[921/967] Compiling FluentKit DatabaseQuery+Aggregate.swift
[922/967] Compiling FluentKit DatabaseQuery+Field.swift
[923/967] Compiling FluentKit DatabaseQuery+Filter.swift
[924/967] Compiling FluentKit DatabaseQuery+Join.swift
[925/967] Compiling FluentKit DatabaseQuery+Range.swift
[926/967] Compiling FluentKit DatabaseQuery+Sort.swift
[927/967] Compiling FluentKit DatabaseQuery+Value.swift
[928/967] Compiling FluentKit DatabaseQuery.swift
[929/967] Compiling FluentKit QueryHistory.swift
[930/967] Compiling FluentKit DatabaseSchema.swift
[931/967] Compiling FluentKit SchemaBuilder.swift
[932/967] Compiling FluentKit OptionalType.swift
[933/967] Compiling FluentKit RandomGeneratable.swift
[934/967] Compiling FluentKit OptionalChild.swift
[935/967] Compiling FluentKit OptionalField.swift
[936/967] Compiling FluentKit OptionalParent.swift
[937/967] Compiling FluentKit Parent.swift
[938/967] Compiling FluentKit Property.swift
[939/967] Compiling FluentKit Relation.swift
[940/967] Compiling FluentKit Siblings.swift
[941/967] Compiling FluentKit Timestamp.swift
[942/967] Compiling FluentKit TimestampFormat.swift
[943/967] Compiling FluentKit QueryBuilder+Aggregate.swift
[944/967] Compiling FluentKit QueryBuilder+EagerLoad.swift
[945/967] Compiling FluentKit EnumBuilder.swift
[946/967] Compiling FluentKit EnumMetadata.swift
[947/967] Compiling FluentKit EnumProperty.swift
[948/967] Compiling FluentKit OptionalEnumProperty.swift
[949/967] Compiling FluentKit Exports.swift
[950/967] Compiling FluentKit FluentError.swift
[951/967] Compiling FluentKit ModelMiddleware.swift
[952/967] Compiling FluentKit ModelResponder.swift
[953/967] Compiling FluentKit Migration.swift
[954/967] Compiling FluentKit MigrationLog.swift
[955/967] Compiling FluentKit Migrations.swift
[956/967] Compiling FluentKit Migrator.swift
[957/967] Compiling FluentKit ValueOperators+String.swift
[958/967] Compiling FluentKit ValueOperators.swift
[959/967] Compiling FluentKit Boolean.swift
[960/967] Compiling FluentKit BooleanPropertyFormat.swift
[961/967] Compiling FluentKit Children.swift
[962/967] Compiling FluentKit CompositeID.swift
[963/967] Compiling FluentKit Field.swift
[964/967] Compiling FluentKit FieldKey.swift
[965/967] Compiling FluentKit Group.swift
[966/967] Compiling FluentKit ID.swift
[967/967] Compiling FluentKit OptionalBoolean.swift
[969/991] Compiling FluentMongo Document+Nested.swift
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:129:21: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 |     @discardableResult
128 |     public func flatMapErrorIfDuplicatedKey(_ callback: @escaping (Error) -> EventLoopFuture<Value>) -> EventLoopFuture<Value> {
129 |         return self.flatMapError { error in
    |                     `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 |             guard
131 |                 let mongoError = error as? Error,
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:137:20: warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |             }
136 |
137 |             return callback(mongoError)
    |                    |- warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 |         }
139 |     }
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:151:24: warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |             }
150 |
151 |             return try callback(mongoError)
    |                        |- warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 |         }
153 |     }
[970/991] Compiling FluentMongo Error.swift
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:129:21: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 |     @discardableResult
128 |     public func flatMapErrorIfDuplicatedKey(_ callback: @escaping (Error) -> EventLoopFuture<Value>) -> EventLoopFuture<Value> {
129 |         return self.flatMapError { error in
    |                     `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 |             guard
131 |                 let mongoError = error as? Error,
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:137:20: warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |             }
136 |
137 |             return callback(mongoError)
    |                    |- warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 |         }
139 |     }
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:151:24: warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |             }
150 |
151 |             return try callback(mongoError)
    |                        |- warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 |         }
153 |     }
[971/991] Compiling FluentMongo Exports.swift
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:129:21: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 |     @discardableResult
128 |     public func flatMapErrorIfDuplicatedKey(_ callback: @escaping (Error) -> EventLoopFuture<Value>) -> EventLoopFuture<Value> {
129 |         return self.flatMapError { error in
    |                     `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 |             guard
131 |                 let mongoError = error as? Error,
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:137:20: warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |             }
136 |
137 |             return callback(mongoError)
    |                    |- warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                    `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 |         }
139 |     }
/host/spi-builder-workspace/Sources/FluentMongo/Error.swift:151:24: warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 |             }
150 |
151 |             return try callback(mongoError)
    |                        |- warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                        `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 |         }
153 |     }
[972/991] Emitting module FluentMongo
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 50 | }
 51 |
 52 | extension DatabaseQuery.Aggregate.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 53 |
 54 |     func mongoAccumulatorOperator() throws -> String {
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 62 | }
 63 |
 64 | extension DatabaseQuery.Join.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 65 |
 66 |     public enum Mongo: Equatable {
/host/spi-builder-workspace/Sources/FluentMongo/MongoConfiguration.swift:85:14: warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
78 | extension MongoConfiguration {
79 |
80 |     public enum EnvironmentKey: String {
   |                 `- note: consider making enum 'EnvironmentKey' conform to the 'Sendable' protocol
81 |         case connectionURL = "FLUENT_MONGO_CONNECTION_URL"
82 |     }
83 |
84 |     public enum Error: Swift.Error {
85 |         case missingEnvironmentKey(EnvironmentKey)
   |              `- warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
86 |     }
87 | }
[973/994] Compiling FluentMongo MongoDatabase.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 33 |         return self.execute(closure) { result in
 34 |             results.append(result)
 35 |         }.map { results }
    |                 `- warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 36 |     }
 37 | }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
  8 |
  9 | import Foundation
 10 | import FluentKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
 11 | import MongoSwift
 12 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
 33 |         return self.execute(closure) { result in
 34 |             results.append(result)
 35 |         }.map { results }
    |                 `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
 36 |     }
 37 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:80:44: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
 80 |                 session.startTransaction().flatMap {
    |                                            `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:90:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 88 |
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 91 |                             session.commitTransaction().map { value }
 92 |                         }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:93:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 91 |                             session.commitTransaction().map { value }
 92 |                         }
 93 |                         .flatMapError { error in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 94 |                             session.abortTransaction().flatMapThrowing { throw error }
 95 |                         }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:82:35: warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 session.startTransaction().flatMap {
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
    |                                   `- warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |                         context: self.context,
 84 |                         session: session,
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:13:13: note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:83:34: warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 37 | }
 38 |
 39 | struct FluentMongoDatabase: Database {
    |        `- note: consider making struct 'FluentMongoDatabase' conform to the 'Sendable' protocol
 40 |
 41 |     let database: MongoDatabase
    :
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
 83 |                         context: self.context,
    |                                  `- warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |                         session: session,
 85 |                         encoder: self.encoder,
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:84:34: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 82 |                         database: connection,
 83 |                         context: self.context,
 84 |                         session: session,
    |                                  `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |                         encoder: self.encoder,
 86 |                         decoder: self.decoder
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  9 | import Foundation
 10 | import FluentKit
 11 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
 12 |
 13 | protocol MongoDatabase {
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:89:28: warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |                     )
 88 |
 89 |                     return closure(transactionDatabase)
    |                            |- warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
    |                             `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:63: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
    |                                                               `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:94:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
 94 |                             session.abortTransaction().flatMapThrowing { throw error }
    |                             `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                         }
 96 |                 }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[974/994] Compiling FluentMongo MongoDatabaseDriver.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 33 |         return self.execute(closure) { result in
 34 |             results.append(result)
 35 |         }.map { results }
    |                 `- warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 36 |     }
 37 | }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
  8 |
  9 | import Foundation
 10 | import FluentKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
 11 | import MongoSwift
 12 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
 33 |         return self.execute(closure) { result in
 34 |             results.append(result)
 35 |         }.map { results }
    |                 `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
 36 |     }
 37 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:80:44: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
 80 |                 session.startTransaction().flatMap {
    |                                            `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:90:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 88 |
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 91 |                             session.commitTransaction().map { value }
 92 |                         }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:93:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 91 |                             session.commitTransaction().map { value }
 92 |                         }
 93 |                         .flatMapError { error in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 94 |                             session.abortTransaction().flatMapThrowing { throw error }
 95 |                         }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:82:35: warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 session.startTransaction().flatMap {
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
    |                                   `- warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |                         context: self.context,
 84 |                         session: session,
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:13:13: note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:83:34: warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 37 | }
 38 |
 39 | struct FluentMongoDatabase: Database {
    |        `- note: consider making struct 'FluentMongoDatabase' conform to the 'Sendable' protocol
 40 |
 41 |     let database: MongoDatabase
    :
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
 83 |                         context: self.context,
    |                                  `- warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |                         session: session,
 85 |                         encoder: self.encoder,
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:84:34: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 82 |                         database: connection,
 83 |                         context: self.context,
 84 |                         session: session,
    |                                  `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |                         encoder: self.encoder,
 86 |                         decoder: self.decoder
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  9 | import Foundation
 10 | import FluentKit
 11 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
 12 |
 13 | protocol MongoDatabase {
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:89:28: warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |                     )
 88 |
 89 |                     return closure(transactionDatabase)
    |                            |- warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
    |                             `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:63: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
    |                                                               `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:94:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
 94 |                             session.abortTransaction().flatMapThrowing { throw error }
    |                             `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                         }
 96 |                 }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[975/994] Compiling FluentMongo MongoDatabaseOutput.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 33 |         return self.execute(closure) { result in
 34 |             results.append(result)
 35 |         }.map { results }
    |                 `- warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 36 |     }
 37 | }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
  8 |
  9 | import Foundation
 10 | import FluentKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
 11 | import MongoSwift
 12 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
 33 |         return self.execute(closure) { result in
 34 |             results.append(result)
 35 |         }.map { results }
    |                 `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
 36 |     }
 37 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:80:44: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
 80 |                 session.startTransaction().flatMap {
    |                                            `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:90:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 88 |
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 91 |                             session.commitTransaction().map { value }
 92 |                         }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:93:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 91 |                             session.commitTransaction().map { value }
 92 |                         }
 93 |                         .flatMapError { error in
    |                          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 94 |                             session.abortTransaction().flatMapThrowing { throw error }
 95 |                         }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:82:35: warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                 session.startTransaction().flatMap {
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
    |                                   `- warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 83 |                         context: self.context,
 84 |                         session: session,
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:13:13: note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:83:34: warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 37 | }
 38 |
 39 | struct FluentMongoDatabase: Database {
    |        `- note: consider making struct 'FluentMongoDatabase' conform to the 'Sendable' protocol
 40 |
 41 |     let database: MongoDatabase
    :
 81 |                     let transactionDatabase = FluentMongoDatabase(
 82 |                         database: connection,
 83 |                         context: self.context,
    |                                  `- warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 84 |                         session: session,
 85 |                         encoder: self.encoder,
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:84:34: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 82 |                         database: connection,
 83 |                         context: self.context,
 84 |                         session: session,
    |                                  `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 85 |                         encoder: self.encoder,
 86 |                         decoder: self.decoder
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  9 | import Foundation
 10 | import FluentKit
 11 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
 12 |
 13 | protocol MongoDatabase {
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:89:28: warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 87 |                     )
 88 |
 89 |                     return closure(transactionDatabase)
    |                            |- warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                            `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
    |                             `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:63: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 75 |     }
 76 |
 77 |     func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
    |                      `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 78 |         self.database.withConnection { connection in
 79 |             connection.withSession { session in
    :
 89 |                     return closure(transactionDatabase)
 90 |                         .flatMap { value in
 91 |                             session.commitTransaction().map { value }
    |                                                               `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:94:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 92 |                         }
 93 |                         .flatMapError { error in
 94 |                             session.abortTransaction().flatMapThrowing { throw error }
    |                             `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                         }
 96 |                 }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[976/994] Compiling FluentMongo Fluent+Additions.swift
[977/994] Compiling FluentMongo FluentMongoConfiguration.swift
[978/994] Compiling FluentMongo IndexBuilder.swift
[979/994] Compiling FluentMongo MongoConfiguration.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoConfiguration.swift:85:14: warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
78 | extension MongoConfiguration {
79 |
80 |     public enum EnvironmentKey: String {
   |                 `- note: consider making enum 'EnvironmentKey' conform to the 'Sendable' protocol
81 |         case connectionURL = "FLUENT_MONGO_CONNECTION_URL"
82 |     }
83 |
84 |     public enum Error: Swift.Error {
85 |         case missingEnvironmentKey(EnvironmentKey)
   |              `- warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
86 |     }
87 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:34:21: warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
    :
 32 |
 33 |             logger.debug("Connected to mongo db: \(database)")
 34 |             promise.succeed(connection)
    |                     `- warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 35 |         } catch {
 36 |             logger.error("Failed to connect to mongo db: \(database). \(error.localizedDescription)")
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:77:17: warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
    :
 75 |             switch result {
 76 |             case .success:
 77 |                 self.isClosed = true
    |                 `- warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 78 |             default:
 79 |                 break
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:96:17: warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |
 95 |             for result in results {
 96 |                 onOutput(result)
    |                 |- warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 97 |             }
 98 |
[980/994] Compiling FluentMongo MongoConnection.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoConfiguration.swift:85:14: warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
78 | extension MongoConfiguration {
79 |
80 |     public enum EnvironmentKey: String {
   |                 `- note: consider making enum 'EnvironmentKey' conform to the 'Sendable' protocol
81 |         case connectionURL = "FLUENT_MONGO_CONNECTION_URL"
82 |     }
83 |
84 |     public enum Error: Swift.Error {
85 |         case missingEnvironmentKey(EnvironmentKey)
   |              `- warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
86 |     }
87 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:34:21: warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
    :
 32 |
 33 |             logger.debug("Connected to mongo db: \(database)")
 34 |             promise.succeed(connection)
    |                     `- warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 35 |         } catch {
 36 |             logger.error("Failed to connect to mongo db: \(database). \(error.localizedDescription)")
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:77:17: warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
    :
 75 |             switch result {
 76 |             case .success:
 77 |                 self.isClosed = true
    |                 `- warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 78 |             default:
 79 |                 break
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:96:17: warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |
 95 |             for result in results {
 96 |                 onOutput(result)
    |                 |- warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 97 |             }
 98 |
[981/994] Compiling FluentMongo MongoConnectionSource.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoConfiguration.swift:85:14: warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
78 | extension MongoConfiguration {
79 |
80 |     public enum EnvironmentKey: String {
   |                 `- note: consider making enum 'EnvironmentKey' conform to the 'Sendable' protocol
81 |         case connectionURL = "FLUENT_MONGO_CONNECTION_URL"
82 |     }
83 |
84 |     public enum Error: Swift.Error {
85 |         case missingEnvironmentKey(EnvironmentKey)
   |              `- warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
86 |     }
87 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:34:21: warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
    :
 32 |
 33 |             logger.debug("Connected to mongo db: \(database)")
 34 |             promise.succeed(connection)
    |                     `- warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 35 |         } catch {
 36 |             logger.error("Failed to connect to mongo db: \(database). \(error.localizedDescription)")
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:77:17: warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
    |             `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
 14 |
 15 |     public static func connect(
    :
 75 |             switch result {
 76 |             case .success:
 77 |                 self.isClosed = true
    |                 `- warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 78 |             default:
 79 |                 break
/host/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:96:17: warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 94 |
 95 |             for result in results {
 96 |                 onOutput(result)
    |                 |- warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
    |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
 97 |             }
 98 |
[982/994] Compiling FluentMongo DatabaseQuerySort+Mongo.swift
[983/994] Compiling FluentMongo DatabaseQueryValue+Mongo.swift
[984/994] Compiling FluentMongo DatabaseSchema+Mongo.swift
[985/994] Compiling FluentMongo DatabaseQueryJoin+Mongo.swift
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 62 | }
 63 |
 64 | extension DatabaseQuery.Join.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 65 |
 66 |     public enum Mongo: Equatable {
[986/994] Compiling FluentMongo DatabaseQueryLimit+Mongo.swift
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 62 | }
 63 |
 64 | extension DatabaseQuery.Join.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 65 |
 66 |     public enum Mongo: Equatable {
[987/994] Compiling FluentMongo DatabaseQueryOffset+Mongo.swift
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 62 | }
 63 |
 64 | extension DatabaseQuery.Join.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 65 |
 66 |     public enum Mongo: Equatable {
[988/994] Compiling FluentMongo BSONCoder+BSON.swift
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 50 | }
 51 |
 52 | extension DatabaseQuery.Aggregate.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 53 |
 54 |     func mongoAccumulatorOperator() throws -> String {
[989/994] Compiling FluentMongo DatabaseQueryAggregate+Mongo.swift
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 50 | }
 51 |
 52 | extension DatabaseQuery.Aggregate.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 53 |
 54 |     func mongoAccumulatorOperator() throws -> String {
[990/994] Compiling FluentMongo DatabaseQueryField+Mongo.swift
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 50 | }
 51 |
 52 | extension DatabaseQuery.Aggregate.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 53 |
 54 |     func mongoAccumulatorOperator() throws -> String {
[991/994] Compiling FluentMongo DatabaseQueryFilter+Mongo.swift
/host/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
 50 | }
 51 |
 52 | extension DatabaseQuery.Aggregate.Method: Equatable {
    | |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 53 |
 54 |     func mongoAccumulatorOperator() throws -> String {
[992/994] Compiling FluentMongo MongoQueryConverter.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:63:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 61 |             let pipeline = try self.aggregationPipeline()
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
    |                                                                                   `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 65 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
  8 |
  9 | import Foundation
 10 | import FluentKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
 11 | import MongoSwift
 12 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |             }
 66 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 65 |             }
 66 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:77:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |             let pipeline = try self.aggregationPipeline()
 76 |
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
    |                                                                                   `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
    |                                                          `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 81 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 1 | extension DatabaseQuery {
 2 |     public enum Aggregate {
   |                 `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 3 |         public enum Method {
 4 |             case count
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                          `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 81 |             }
 82 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
    |                                                          `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 81 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 1 | extension DatabaseQuery {
 2 |     public enum Aggregate {
   |                 `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 3 |         public enum Method {
 4 |             case count
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                          `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 81 |             }
 82 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:97:23: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                 }
 96 |
 97 |                 guard documents.count == result.insertedCount else {
    |                       `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |                     throw Error.insertManyMismatch(documents.count, result.insertedCount)
 99 |                 }
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
  9 | import Foundation
 10 | import FluentKit
 11 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
 12 |
 13 | struct MongoQueryConverter {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
100 |
101 |                 return result.insertedIDs.map {
102 |                     BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
    |                                                                                                              `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 |                 }
104 |             }.flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
100 |
101 |                 return result.insertedIDs.map {
102 |                     BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
    |                                                                                                              `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
103 |                 }
104 |             }.flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:123:66: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 |             let documents: [BSONDocument] = try self.query.input.compactMap { try $0.mongoValueUpdate(encoder: self.encoder)?.documentValue }
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
    |                                                                  `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:34: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
    |                                  `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:54: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
    |                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:125:31: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
    |                               `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |                     collection.updateMany(filter: filter, update: document, session: session)
127 |                 }.flatten(on: eventLoop)
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
    |                                                                                      `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 |                 }.flatten(on: eventLoop)
128 |
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
    |                                                                                      `- warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
127 |                 }.flatten(on: eventLoop)
128 |
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:137:62: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 |
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
    |                                                              `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
139 |         }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:13: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |             `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:33: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |                                 `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:80: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |                                                                                `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:143:96: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
141 |
142 |     private func custom(_ command: BSONDocument, _ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
143 |         return database.runCommand(command, session: session).map { [$0.databaseOutput(fields: self.query.fields, using: self.decoder)] }
    |                                                                                                `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 |     }
145 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:198:30: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
196 |
197 |         guard !self.query.filters.isEmpty else {
198 |             return eventLoop.makeSucceededFuture(.init())
    |                              `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
199 |         }
200 |
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:213:97: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
211 |             pipeline.append(["$project": ["_id": true]])
212 |
213 |             return database.collection(self.query.schema).aggregate(pipeline, session: session).flatMap { cursor in
    |                                                                                                 `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
214 |                 cursor.toArray().map {
215 |                     ["_id": ["$in": .array($0.compactMap { $0["_id"] })]]
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |                 switch error {
41 |                 case let error as MongoError.CommandError where error.code == 48:
42 |                     return database.collection(self.schema.schema) // Collection already exists
   |                            `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |                 default:
44 |                     throw error
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
 9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
12 |
13 | struct MongoSchemaConverter {
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:48: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
40 |                 switch error {
41 |                 case let error as MongoError.CommandError where error.code == 48:
42 |                     return database.collection(self.schema.schema) // Collection already exists
   |                                                `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |                 default:
44 |                     throw error
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:48:43: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
46 |             }.flatMap { collection in
47 |                 do {
48 |                     let indexModels = try self.schema.createConstraints.mongoIndexes()
   |                                           `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |                     guard !indexModels.isEmpty else {
50 |                         return eventLoop.makeSucceededFuture(Void())
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:52:75: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |                         return eventLoop.makeSucceededFuture(Void())
51 |                     }
52 |                     return collection.createIndexes(indexModels, session: session).transform(to: Void())
   |                                                                           `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 |                 } catch {
54 |                     return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:66:14: warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 |         return database
65 |             .listCollections(["name": .string(self.schema.schema)], session: session)
66 |             .flatMap { $0.toArray() }
   |              `- warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 |             .flatMap {
68 |                 do {
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/Operations/ListCollectionsOperation.swift:57:15: note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
 55 |  *   - https://docs.mongodb.com/manual/reference/command/listCollections/#listCollections.cursor
 56 |  */
 57 | public struct CollectionSpecification: Codable {
    |               `- note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
 58 |     /// The name of the collection.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:70:56: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
68 |                 do {
69 |                     guard let collectionSpecification = $0.first else {
70 |                         throw Error.collectionNotFound(self.schema.schema)
   |                                                        `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |                     }
72 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:75:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 |                     let validator = try self.schema.updateFields.mongoValidator(updating: collectionSpecification.options?.validator)
74 |
75 |                     return database.runCommand([
   |                            `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 |                         "collMod": .string(self.schema.schema),
77 |                         "validator": .document(validator),
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:79:33: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 |                         "validator": .document(validator),
78 |                         "validationLevel": "moderate"
79 |                     ], session: session).transform(to: Void())
   |                                 `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 |                 } catch {
81 |                     return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[993/994] Compiling FluentMongo MongoSchemaConverter.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:63:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 61 |             let pipeline = try self.aggregationPipeline()
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
    |                                                                                   `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 65 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
  8 |
  9 | import Foundation
 10 | import FluentKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
 11 | import MongoSwift
 12 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |             }
 66 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 65 |             }
 66 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:77:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |             let pipeline = try self.aggregationPipeline()
 76 |
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
    |                                                                                   `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
    |                                                          `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 81 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 1 | extension DatabaseQuery {
 2 |     public enum Aggregate {
   |                 `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 3 |         public enum Method {
 4 |             case count
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                          `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 81 |             }
 82 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
    |                                                          `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 81 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 1 | extension DatabaseQuery {
 2 |     public enum Aggregate {
   |                 `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 3 |         public enum Method {
 4 |             case count
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                          `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 81 |             }
 82 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:97:23: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                 }
 96 |
 97 |                 guard documents.count == result.insertedCount else {
    |                       `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |                     throw Error.insertManyMismatch(documents.count, result.insertedCount)
 99 |                 }
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
  9 | import Foundation
 10 | import FluentKit
 11 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
 12 |
 13 | struct MongoQueryConverter {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
100 |
101 |                 return result.insertedIDs.map {
102 |                     BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
    |                                                                                                              `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 |                 }
104 |             }.flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
100 |
101 |                 return result.insertedIDs.map {
102 |                     BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
    |                                                                                                              `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
103 |                 }
104 |             }.flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:123:66: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 |             let documents: [BSONDocument] = try self.query.input.compactMap { try $0.mongoValueUpdate(encoder: self.encoder)?.documentValue }
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
    |                                                                  `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:34: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
    |                                  `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:54: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
    |                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:125:31: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
    |                               `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |                     collection.updateMany(filter: filter, update: document, session: session)
127 |                 }.flatten(on: eventLoop)
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
    |                                                                                      `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 |                 }.flatten(on: eventLoop)
128 |
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
    |                                                                                      `- warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
127 |                 }.flatten(on: eventLoop)
128 |
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:137:62: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 |
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
    |                                                              `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
139 |         }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:13: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |             `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:33: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |                                 `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:80: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |                                                                                `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:143:96: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
141 |
142 |     private func custom(_ command: BSONDocument, _ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
143 |         return database.runCommand(command, session: session).map { [$0.databaseOutput(fields: self.query.fields, using: self.decoder)] }
    |                                                                                                `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 |     }
145 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:198:30: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
196 |
197 |         guard !self.query.filters.isEmpty else {
198 |             return eventLoop.makeSucceededFuture(.init())
    |                              `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
199 |         }
200 |
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:213:97: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
211 |             pipeline.append(["$project": ["_id": true]])
212 |
213 |             return database.collection(self.query.schema).aggregate(pipeline, session: session).flatMap { cursor in
    |                                                                                                 `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
214 |                 cursor.toArray().map {
215 |                     ["_id": ["$in": .array($0.compactMap { $0["_id"] })]]
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |                 switch error {
41 |                 case let error as MongoError.CommandError where error.code == 48:
42 |                     return database.collection(self.schema.schema) // Collection already exists
   |                            `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |                 default:
44 |                     throw error
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
 9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
12 |
13 | struct MongoSchemaConverter {
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:48: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
40 |                 switch error {
41 |                 case let error as MongoError.CommandError where error.code == 48:
42 |                     return database.collection(self.schema.schema) // Collection already exists
   |                                                `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |                 default:
44 |                     throw error
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:48:43: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
46 |             }.flatMap { collection in
47 |                 do {
48 |                     let indexModels = try self.schema.createConstraints.mongoIndexes()
   |                                           `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |                     guard !indexModels.isEmpty else {
50 |                         return eventLoop.makeSucceededFuture(Void())
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:52:75: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |                         return eventLoop.makeSucceededFuture(Void())
51 |                     }
52 |                     return collection.createIndexes(indexModels, session: session).transform(to: Void())
   |                                                                           `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 |                 } catch {
54 |                     return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:66:14: warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 |         return database
65 |             .listCollections(["name": .string(self.schema.schema)], session: session)
66 |             .flatMap { $0.toArray() }
   |              `- warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 |             .flatMap {
68 |                 do {
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/Operations/ListCollectionsOperation.swift:57:15: note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
 55 |  *   - https://docs.mongodb.com/manual/reference/command/listCollections/#listCollections.cursor
 56 |  */
 57 | public struct CollectionSpecification: Codable {
    |               `- note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
 58 |     /// The name of the collection.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:70:56: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
68 |                 do {
69 |                     guard let collectionSpecification = $0.first else {
70 |                         throw Error.collectionNotFound(self.schema.schema)
   |                                                        `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |                     }
72 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:75:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 |                     let validator = try self.schema.updateFields.mongoValidator(updating: collectionSpecification.options?.validator)
74 |
75 |                     return database.runCommand([
   |                            `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 |                         "collMod": .string(self.schema.schema),
77 |                         "validator": .document(validator),
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:79:33: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 |                         "validator": .document(validator),
78 |                         "validationLevel": "moderate"
79 |                     ], session: session).transform(to: Void())
   |                                 `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 |                 } catch {
81 |                     return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[994/994] Compiling FluentMongo QueryBuilder+Mongo.swift
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:63:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 61 |             let pipeline = try self.aggregationPipeline()
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
    |                                                                                   `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 65 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
  8 |
  9 | import Foundation
 10 | import FluentKit
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
 11 | import MongoSwift
 12 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 65 |             }
 66 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 62 |
 63 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 64 |                 cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 65 |             }
 66 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:77:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 75 |             let pipeline = try self.aggregationPipeline()
 76 |
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
    |                                                                                   `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
    |                                                          `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 81 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 1 | extension DatabaseQuery {
 2 |     public enum Aggregate {
   |                 `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 3 |         public enum Method {
 4 |             case count
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                          `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 81 |             }
 82 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 77 |             return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
    |                                                          `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
 81 |             }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 1 | extension DatabaseQuery {
 2 |     public enum Aggregate {
   |                 `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
 3 |         public enum Method {
 4 |             case count
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
 78 |                 cursor.toArray()
 79 |                     .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
 80 |                     .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
    |                                                          `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 81 |             }
 82 |         } catch {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:97:23: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 95 |                 }
 96 |
 97 |                 guard documents.count == result.insertedCount else {
    |                       `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 98 |                     throw Error.insertManyMismatch(documents.count, result.insertedCount)
 99 |                 }
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
  9 | import Foundation
 10 | import FluentKit
 11 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
 12 |
 13 | struct MongoQueryConverter {
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
100 |
101 |                 return result.insertedIDs.map {
102 |                     BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
    |                                                                                                              `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 |                 }
104 |             }.flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
100 |
101 |                 return result.insertedIDs.map {
102 |                     BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
    |                                                                                                              `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
103 |                 }
104 |             }.flatMapErrorThrowing { error in
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:123:66: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 |             let documents: [BSONDocument] = try self.query.input.compactMap { try $0.mongoValueUpdate(encoder: self.encoder)?.documentValue }
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
    |                                                                  `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:34: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
    |                                  `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:54: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
122 |
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
    |                                                      `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:125:31: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 |             return self.filter(database, session, on: eventLoop).flatMap { filter in
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
    |                               `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 |                     collection.updateMany(filter: filter, update: document, session: session)
127 |                 }.flatten(on: eventLoop)
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
    |                                                                                      `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 |                 }.flatten(on: eventLoop)
128 |
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
124 |                 let collection = database.collection(self.query.schema)
125 |                 let updates = documents.map { document in
126 |                     collection.updateMany(filter: filter, update: document, session: session)
    |                                                                                      `- warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
127 |                 }.flatten(on: eventLoop)
128 |
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:137:62: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 |
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
    |                                                              `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
139 |         }
/host/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 1 | public protocol DatabaseOutput: CustomStringConvertible {
   |                 `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
 2 |     func schema(_ schema: String) -> DatabaseOutput
 3 |     func contains(_ key: FieldKey) -> Bool
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:13: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |             `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:33: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |                                 `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:80: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 |     private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 |         return self.filter(database, session, on: eventLoop).flatMap { filter in
138 |             database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
    |                                                                                `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 |         }
140 |     }
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:143:96: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 11 | import MongoSwift
 12 |
 13 | struct MongoQueryConverter {
    |        `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
 14 |
 15 |     public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
    :
141 |
142 |     private func custom(_ command: BSONDocument, _ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
143 |         return database.runCommand(command, session: session).map { [$0.databaseOutput(fields: self.query.fields, using: self.decoder)] }
    |                                                                                                `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 |     }
145 | }
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:198:30: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
196 |
197 |         guard !self.query.filters.isEmpty else {
198 |             return eventLoop.makeSucceededFuture(.init())
    |                              `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
199 |         }
200 |
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:213:97: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
211 |             pipeline.append(["$project": ["_id": true]])
212 |
213 |             return database.collection(self.query.schema).aggregate(pipeline, session: session).flatMap { cursor in
    |                                                                                                 `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
214 |                 cursor.toArray().map {
215 |                     ["_id": ["$in": .array($0.compactMap { $0["_id"] })]]
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSONDocument.swift:14:15: note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 12 | /// A struct representing the BSON document type.
 13 | @dynamicMemberLookup
 14 | public struct BSONDocument {
    |               `- note: struct 'BSONDocument' does not conform to the 'Sendable' protocol
 15 |     /// The element type of a document: a tuple containing an individual key-value pair.
 16 |     public typealias KeyValuePair = (key: String, value: BSON)
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 |                 switch error {
41 |                 case let error as MongoError.CommandError where error.code == 48:
42 |                     return database.collection(self.schema.schema) // Collection already exists
   |                            `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |                 default:
44 |                     throw error
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
 9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
12 |
13 | struct MongoSchemaConverter {
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:48: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
40 |                 switch error {
41 |                 case let error as MongoError.CommandError where error.code == 48:
42 |                     return database.collection(self.schema.schema) // Collection already exists
   |                                                `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 |                 default:
44 |                     throw error
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:48:43: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
46 |             }.flatMap { collection in
47 |                 do {
48 |                     let indexModels = try self.schema.createConstraints.mongoIndexes()
   |                                           `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 |                     guard !indexModels.isEmpty else {
50 |                         return eventLoop.makeSucceededFuture(Void())
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:52:75: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 |                         return eventLoop.makeSucceededFuture(Void())
51 |                     }
52 |                     return collection.createIndexes(indexModels, session: session).transform(to: Void())
   |                                                                           `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 |                 } catch {
54 |                     return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:66:14: warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 |         return database
65 |             .listCollections(["name": .string(self.schema.schema)], session: session)
66 |             .flatMap { $0.toArray() }
   |              `- warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 |             .flatMap {
68 |                 do {
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/Operations/ListCollectionsOperation.swift:57:15: note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
 55 |  *   - https://docs.mongodb.com/manual/reference/command/listCollections/#listCollections.cursor
 56 |  */
 57 | public struct CollectionSpecification: Codable {
    |               `- note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
 58 |     /// The name of the collection.
 59 |     public let name: String
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:70:56: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
   |        `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 |     public init(_ schema: DatabaseSchema) {
   :
68 |                 do {
69 |                     guard let collectionSpecification = $0.first else {
70 |                         throw Error.collectionNotFound(self.schema.schema)
   |                                                        `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 |                     }
72 |
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:75:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 |                     let validator = try self.schema.updateFields.mongoValidator(updating: collectionSpecification.options?.validator)
74 |
75 |                     return database.runCommand([
   |                            `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 |                         "collMod": .string(self.schema.schema),
77 |                         "validator": .document(validator),
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:79:33: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 |                         "validator": .document(validator),
78 |                         "validationLevel": "moderate"
79 |                     ], session: session).transform(to: Void())
   |                                 `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 |                 } catch {
81 |                     return eventLoop.makeFailedFuture(error)
/host/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
 33 |  *   - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
 34 |  */
 35 | public final class ClientSession {
    |                    `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
 36 |     /// Error thrown when an inactive session is used.
 37 |     internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
Build complete! (122.76s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "fluent-kit",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.36.1",
            "upper_bound" : "1.37.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/vapor/fluent-kit.git"
    },
    {
      "identity" : "mongo-swift-driver",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.3.1",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/mongodb/mongo-swift-driver.git"
    }
  ],
  "manifest_display_name" : "FluentMongo",
  "name" : "FluentMongo",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "FluentMongo",
      "targets" : [
        "FluentMongo"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "FluentMongoTests",
      "module_type" : "SwiftTarget",
      "name" : "FluentMongoTests",
      "path" : "Tests/FluentMongoTests",
      "product_dependencies" : [
        "FluentBenchmark"
      ],
      "sources" : [
        "FluentBenchmarkTests.swift",
        "FluentMongoTests.swift",
        "Pet.swift",
        "PetToy.swift",
        "Toy.swift",
        "User.swift"
      ],
      "target_dependencies" : [
        "FluentMongo"
      ],
      "type" : "test"
    },
    {
      "c99name" : "FluentMongo",
      "module_type" : "SwiftTarget",
      "name" : "FluentMongo",
      "path" : "Sources/FluentMongo",
      "product_dependencies" : [
        "FluentKit",
        "MongoSwift"
      ],
      "product_memberships" : [
        "FluentMongo"
      ],
      "sources" : [
        "BSONCoder+BSON.swift",
        "DatabaseQueryAggregate+Mongo.swift",
        "DatabaseQueryField+Mongo.swift",
        "DatabaseQueryFilter+Mongo.swift",
        "DatabaseQueryJoin+Mongo.swift",
        "DatabaseQueryLimit+Mongo.swift",
        "DatabaseQueryOffset+Mongo.swift",
        "DatabaseQuerySort+Mongo.swift",
        "DatabaseQueryValue+Mongo.swift",
        "DatabaseSchema+Mongo.swift",
        "Document+Nested.swift",
        "Error.swift",
        "Exports.swift",
        "Fluent+Additions.swift",
        "FluentMongoConfiguration.swift",
        "IndexBuilder.swift",
        "MongoConfiguration.swift",
        "MongoConnection.swift",
        "MongoConnectionSource.swift",
        "MongoDatabase.swift",
        "MongoDatabaseDriver.swift",
        "MongoDatabaseOutput.swift",
        "MongoQueryConverter.swift",
        "MongoSchemaConverter.swift",
        "QueryBuilder+Mongo.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.