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 1.2.2 (76bc6e), with Swift 6.0 for Linux on 30 Nov 2024 07:38:35 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/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 -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

[518/603] Compiling BitCollections BitSet+SetAlgebra union.swift
[519/603] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[520/603] Compiling BitCollections BitSet.Counted.swift
[528/603] Emitting module BitCollections
[529/603] Emitting module HashTreeCollections
[533/604] Compiling BitCollections BitArray+ExpressibleByArrayLiteral.swift
[534/604] Compiling BitCollections BitArray+ExpressibleByStringLiteral.swift
[535/604] Compiling BitCollections BitArray+Extras.swift
[536/604] Compiling BitCollections BitArray+Fill.swift
[537/604] Compiling BitCollections BitArray+Hashable.swift
[538/604] Compiling BitCollections BitArray+Initializers.swift
[539/604] Compiling BitCollections BitArray+Invariants.swift
[540/604] Compiling BitCollections BitArray+LosslessStringConvertible.swift
[541/604] Compiling BitCollections BitArray+BitwiseOperations.swift
[560/607] Compiling ExtrasBase64 Chromium.swift
[568/608] Compiling BitCollections BitSet.Index.swift
[569/608] Compiling BitCollections BitSet._UnsafeHandle.swift
[570/608] Compiling BitCollections BitSet.swift
[571/608] Compiling BitCollections Range+Utilities.swift
[572/608] Compiling BitCollections Slice+Utilities.swift
[573/608] Compiling BitCollections UInt+Tricks.swift
[574/608] Compiling BitCollections _Word.swift
[576/608] Compiling Algorithms Trim.swift
[577/608] Compiling Algorithms Unique.swift
[578/608] Compiling Algorithms Windows.swift
[595/611] Compiling Collections Collections.swift
[596/611] Emitting module Collections
[611/612] Emitting module Atomics
[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/682] Compiling NIOCore IO.swift
[624/682] Compiling NIOCore IOData.swift
[625/682] Compiling NIOCore IPProtocol.swift
[626/682] Compiling NIOCore IntegerBitPacking.swift
[627/682] Compiling NIOCore IntegerTypes.swift
[628/682] Compiling NIOCore Interfaces.swift
[629/682] Compiling NIOCore Linux.swift
[630/682] Compiling NIOCore MarkedCircularBuffer.swift
[631/682] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[632/682] Compiling NIOCore EventLoopFuture+Deprecated.swift
[633/682] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[634/682] Compiling NIOCore EventLoopFuture.swift
[635/682] Compiling NIOCore FileDescriptor.swift
[636/682] Compiling NIOCore FileHandle.swift
[637/682] Compiling NIOCore FileRegion.swift
[638/682] Compiling NIOCore GlobalSingletons.swift
[639/682] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[640/682] Compiling NIOCore SocketAddresses.swift
[641/682] Compiling NIOCore SocketOptionProvider.swift
[642/682] Compiling NIOCore SystemCallHelpers.swift
[643/682] Compiling NIOCore TimeAmount+Duration.swift
[644/682] Compiling NIOCore TypeAssistedChannelHandler.swift
[645/682] Compiling NIOCore UniversalBootstrapSupport.swift
[646/682] Compiling NIOCore Utilities.swift
[647/682] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[648/682] Compiling NIOCore BSDSocketAPI.swift
[649/682] Compiling NIOCore ByteBuffer-aux.swift
[650/682] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[651/682] Compiling NIOCore ByteBuffer-conversions.swift
[652/682] Compiling NIOCore ByteBuffer-core.swift
[653/682] Compiling NIOCore ByteBuffer-hex.swift
[654/682] Compiling NIOCore ByteBuffer-int.swift
[655/682] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[656/682] Compiling NIOCore ByteBuffer-multi-int.swift
[657/682] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[658/682] Compiling NIOCore ByteBuffer-views.swift
[659/682] Compiling NIOCore Channel.swift
[660/682] Compiling NIOCore ChannelHandler.swift
[661/682] Compiling NIOCore ChannelHandlers.swift
[662/682] Compiling NIOCore ChannelInvoker.swift
[663/682] Compiling NIOCore ChannelOption.swift
[664/682] Compiling NIOCore ChannelPipeline.swift
[665/682] Compiling NIOCore CircularBuffer.swift
[666/682] Compiling NIOCore Codec.swift
[667/682] Compiling NIOCore ConvenienceOptionSupport.swift
[668/682] Compiling NIOCore DeadChannel.swift
[669/682] Compiling NIOCore DispatchQueue+WithFuture.swift
[670/682] Compiling NIOCore EventLoop+Deprecated.swift
[671/682] Compiling NIOCore EventLoop+SerialExecutor.swift
[672/682] Compiling NIOCore EventLoop.swift
[673/682] Compiling NIOCore AddressedEnvelope.swift
[674/682] Compiling NIOCore AsyncAwaitSupport.swift
[675/682] Compiling NIOCore AsyncChannel.swift
[676/682] Compiling NIOCore AsyncChannelHandler.swift
[677/682] Compiling NIOCore AsyncChannelInboundStream.swift
[678/682] Compiling NIOCore AsyncChannelOutboundWriter.swift
[679/682] Compiling NIOCore NIOAsyncSequenceProducer.swift
[680/682] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[681/682] Compiling NIOCore NIOAsyncWriter.swift
[682/682] Emitting module NIOCore
[684/735] Compiling NIOEmbedded Embedded.swift
[685/735] Emitting module NIOEmbedded
[686/735] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[687/735] Compiling NIOEmbedded AsyncTestingChannel.swift
[689/736] Compiling NIOPosix Pool.swift
[690/736] Compiling NIOPosix PooledRecvBufferAllocator.swift
[691/736] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[692/736] Compiling NIOPosix PosixSingletons.swift
[693/736] Compiling NIOPosix RawSocketBootstrap.swift
[694/736] Compiling NIOPosix Resolver.swift
[695/736] Compiling NIOPosix Selectable.swift
[696/742] Compiling NIOPosix ThreadPosix.swift
[697/742] Compiling NIOPosix ThreadWindows.swift
[698/742] Compiling NIOPosix UnsafeTransfer.swift
[699/742] Compiling NIOPosix Utilities.swift
[700/742] Compiling NIOPosix VsockAddress.swift
[701/742] Compiling NIOPosix VsockChannelEvents.swift
[702/742] Compiling NIOPosix ServerSocket.swift
[703/742] Compiling NIOPosix Socket.swift
[704/742] Compiling NIOPosix SocketChannel.swift
[705/742] Compiling NIOPosix SocketProtocols.swift
[706/742] Compiling NIOPosix System.swift
[707/742] Compiling NIOPosix Thread.swift
[708/742] Compiling NIOPosix SelectableChannel.swift
[709/742] Compiling NIOPosix SelectableEventLoop.swift
[710/742] Compiling NIOPosix SelectorEpoll.swift
[711/742] Compiling NIOPosix SelectorGeneric.swift
[712/742] Compiling NIOPosix SelectorKqueue.swift
[713/742] Compiling NIOPosix SelectorUring.swift
[714/742] Emitting module NIOPosix
[715/742] Compiling NIOPosix NIOThreadPool.swift
[716/742] Compiling NIOPosix NonBlockingFileIO.swift
[717/742] Compiling NIOPosix PendingDatagramWritesManager.swift
[718/742] Compiling NIOPosix PendingWritesManager.swift
[719/742] Compiling NIOPosix PipeChannel.swift
[720/742] Compiling NIOPosix PipePair.swift
[721/742] Compiling NIOPosix PointerHelpers.swift
[722/742] Compiling NIOPosix BSDSocketAPICommon.swift
[723/742] Compiling NIOPosix BSDSocketAPIPosix.swift
[724/742] Compiling NIOPosix BSDSocketAPIWindows.swift
[725/742] Compiling NIOPosix BaseSocket.swift
[726/742] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[727/742] Compiling NIOPosix BaseSocketChannel.swift
[728/742] Compiling NIOPosix BaseStreamSocketChannel.swift
[729/742] Compiling NIOPosix IO.swift
[730/742] Compiling NIOPosix IntegerBitPacking.swift
[731/742] Compiling NIOPosix IntegerTypes.swift
[732/742] Compiling NIOPosix Linux.swift
[733/742] Compiling NIOPosix LinuxCPUSet.swift
[734/742] Compiling NIOPosix LinuxUring.swift
[735/742] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[736/742] Compiling NIOPosix Bootstrap.swift
[737/742] Compiling NIOPosix ControlMessage.swift
[738/742] Compiling NIOPosix DatagramVectorReadManager.swift
[739/742] Compiling NIOPosix Errors+Any.swift
[740/742] Compiling NIOPosix FileDescriptor.swift
[741/742] Compiling NIOPosix GetaddrinfoResolver.swift
[742/742] Compiling NIOPosix HappyEyeballs.swift
[744/767] Emitting module NIO
[745/767] Compiling NIO Exports.swift
[747/796] Compiling SwiftBSON BSONError.swift
[748/796] Compiling SwiftBSON BSONNulls.swift
[749/796] Compiling SwiftBSON BSONObjectID.swift
[750/798] Compiling SwiftBSON BSONRegularExpression.swift
[751/798] Compiling SwiftBSON BSONSymbol.swift
[752/798] Compiling SwiftBSON BSONTimestamp.swift
[753/798] Compiling AsyncKit Optional+StrictMap.swift
[754/798] Compiling AsyncKit Exports.swift
[755/798] Compiling SwiftBSON Double+BSONValue.swift
[756/798] Compiling SwiftBSON ExtendedJSONDecoder.swift
[757/798] Compiling SwiftBSON ExtendedJSONEncoder.swift
[758/801] Compiling SwiftBSON BSONCode.swift
[759/801] Compiling SwiftBSON BSONDocument+Sequence.swift
[760/801] Compiling SwiftBSON BSONDocument.swift
[761/801] Compiling SwiftBSON Array+BSONValue.swift
[762/801] Compiling SwiftBSON BSON.swift
[763/801] Compiling SwiftBSON BSONBinary.swift
[764/801] Compiling SwiftBSON BSONDocumentIterator.swift
[765/801] Compiling SwiftBSON BSONEncoder.swift
[766/801] Compiling SwiftBSON BSONDBPointer.swift
[773/801] Compiling SwiftBSON BSONValue.swift
[774/801] Compiling SwiftBSON Bool+BSONValue.swift
[775/801] Compiling SwiftBSON ByteBuffer+BSON.swift
[778/801] Compiling SwiftBSON Date+BSONValue.swift
[783/801] Compiling SwiftBSON Integers+BSONValue.swift
[784/801] Compiling SwiftBSON JSON.swift
[785/801] Compiling SwiftBSON String+BSONValue.swift
[790/801] Emitting module SwiftBSON
[792/801] Compiling SwiftBSON BSONDecimal128.swift
[793/801] Compiling SwiftBSON BSONDecoder.swift
[794/801] Compiling SwiftBSON BSONDocument+Collection.swift
[796/864] Emitting module AsyncKit
[797/864] Compiling MongoSwift FindOperation.swift
[798/864] Compiling MongoSwift ListCollectionsOperation.swift
[799/864] Compiling MongoSwift ListDatabasesOperation.swift
[800/864] Compiling MongoSwift ListIndexesOperation.swift
[801/864] Compiling MongoSwift MongocCommandHelpers.swift
[802/864] Compiling MongoSwift Operation.swift
[803/864] Compiling MongoSwift RenameCollectionOperation.swift
[804/864] Compiling MongoSwift RunCommandOperation.swift
[805/864] Compiling MongoSwift CreateCollectionOperation.swift
[806/864] Compiling MongoSwift CreateIndexesOperation.swift
[807/864] Compiling MongoSwift DistinctOperation.swift
[808/864] Compiling MongoSwift DropCollectionOperation.swift
[809/864] Compiling MongoSwift DropDatabaseOperation.swift
[810/864] Compiling MongoSwift DropIndexesOperation.swift
[811/864] Compiling MongoSwift EstimatedDocumentCountOperation.swift
[812/864] Compiling MongoSwift FindAndModifyOperation.swift
[813/872] Compiling MongoSwift MongoError.swift
[814/872] Compiling MongoSwift MongoNamespace.swift
[815/872] Compiling MongoSwift MongoServerAPI.swift
[816/872] Compiling MongoSwift MongoSwift.swift
[817/872] Compiling MongoSwift MongoSwiftVersion.swift
[818/872] Compiling MongoSwift AbortTransactionOperation.swift
[819/872] Compiling MongoSwift AggregateOperation.swift
[820/872] Compiling MongoSwift CommitTransactionOperation.swift
[821/872] Compiling MongoSwift CountDocumentsOperation.swift
[822/872] Emitting module MongoSwift
[823/872] Compiling MongoSwift MongoCollection+Write+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 |
[824/872] Compiling MongoSwift MongoCursor+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 MongoDatabase+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 BSONPointerUtils.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 BSONUtil.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 ChangeStream.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 ChangeStreamEvent.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 ChangeStreamOptions.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 ClientSession.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 Compressor.swift
[833/872] Compiling MongoSwift ConnectionPool.swift
[834/872] Compiling MongoSwift CursorCommon.swift
[835/872] Compiling MongoSwift EventLoopBoundMongoClient.swift
[836/872] Compiling MongoSwift Exports.swift
[837/872] Compiling MongoSwift Hint.swift
[838/872] Compiling MongoSwift MongoClient.swift
[839/872] Compiling MongoSwift MongoCollection+BulkWrite.swift
[840/872] Compiling MongoSwift MongoCollection+ChangeStreams.swift
[841/872] Compiling MongoSwift APM.swift
[842/872] Compiling MongoSwift ChangeStream+AsyncSequence.swift
[843/872] Compiling MongoSwift ClientSession+AsyncAwait.swift
[844/872] Compiling MongoSwift MongoClient+AsyncAwait.swift
[845/872] Compiling MongoSwift MongoCollection+AsyncAwait.swift
[846/872] Compiling MongoSwift MongoCollection+ChangeStreams+AsyncAwait.swift
[847/872] Compiling MongoSwift MongoCollection+FindAndModify+AsyncAwait.swift
[848/872] Compiling MongoSwift MongoCollection+Indexes+AsyncAwait.swift
[849/872] Compiling MongoSwift MongoCollection+Read+AsyncAwait.swift
[850/872] Compiling MongoSwift StartSessionOperation.swift
[851/872] Compiling MongoSwift StartTransactionOperation.swift
[852/872] Compiling MongoSwift WatchOperation.swift
[853/872] Compiling MongoSwift ReadConcern.swift
[854/872] Compiling MongoSwift ReadPreference.swift
[855/872] Compiling MongoSwift SDAM.swift
[856/872] Compiling MongoSwift ServerSelection.swift
[857/872] Compiling MongoSwift WriteConcern.swift
[858/872] Compiling MongoSwift MongoCollection+FindAndModify.swift
[859/872] Compiling MongoSwift MongoCollection+Indexes.swift
[860/872] Compiling MongoSwift MongoCollection+Read.swift
[861/872] Compiling MongoSwift MongoCollection+Write.swift
[862/872] Compiling MongoSwift MongoCollection.swift
[863/872] Compiling MongoSwift MongoConnectionString.swift
[864/872] Compiling MongoSwift MongoCredential.swift
[865/872] Compiling MongoSwift MongoCursor.swift
[866/872] Compiling MongoSwift MongoDatabase.swift
[875/956] Compiling FluentKit SchemaBuilder+Concurrency.swift
[876/956] Compiling FluentKit Siblings+Concurrency.swift
[877/956] Compiling FluentKit Database+Logging.swift
[878/956] Compiling FluentKit Database.swift
[879/956] Compiling FluentKit DatabaseID.swift
[880/956] Compiling FluentKit DatabaseInput.swift
[881/956] Compiling FluentKit DatabaseOutput+Cascade.swift
[882/956] Compiling FluentKit DatabaseOutput+Prefix.swift
[883/956] Compiling FluentKit DatabaseOutput.swift
[884/956] Compiling FluentKit Databases.swift
[885/956] Compiling FluentKit TransactionControlDatabase.swift
[886/956] Compiling FluentKit DatabaseEnum.swift
[887/956] Compiling FluentKit AsyncMigration.swift
[888/956] Compiling FluentKit AsyncModelMiddleware.swift
[889/956] Compiling FluentKit Children+Concurrency.swift
[890/956] Compiling FluentKit Database+Concurrency.swift
[891/956] Compiling FluentKit EnumBuilder+Concurrency.swift
[892/956] Compiling FluentKit Model+Concurrency.swift
[893/956] Compiling FluentKit ModelResponder+Concurrency.swift
[894/956] Compiling FluentKit OptionalChild+Concurrency.swift
[895/956] Compiling FluentKit OptionalParent+Concurrency.swift
[896/956] Compiling FluentKit Parent+Concurrency.swift
[897/956] Compiling FluentKit QueryBuilder+Concurrency.swift
[898/956] Compiling FluentKit Relation+Concurrency.swift
[899/967] Emitting module FluentKit
[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 EnumBuilder.swift
[924/967] Compiling FluentKit EnumMetadata.swift
[925/967] Compiling FluentKit EnumProperty.swift
[926/967] Compiling FluentKit OptionalEnumProperty.swift
[927/967] Compiling FluentKit Exports.swift
[928/967] Compiling FluentKit FluentError.swift
[929/967] Compiling FluentKit ModelMiddleware.swift
[930/967] Compiling FluentKit ModelResponder.swift
[931/967] Compiling FluentKit Migration.swift
[932/967] Compiling FluentKit MigrationLog.swift
[933/967] Compiling FluentKit Migrations.swift
[934/967] Compiling FluentKit Migrator.swift
[935/967] Compiling FluentKit DatabaseQuery+Filter.swift
[936/967] Compiling FluentKit DatabaseQuery+Join.swift
[937/967] Compiling FluentKit DatabaseQuery+Range.swift
[938/967] Compiling FluentKit DatabaseQuery+Sort.swift
[939/967] Compiling FluentKit DatabaseQuery+Value.swift
[940/967] Compiling FluentKit DatabaseQuery.swift
[941/967] Compiling FluentKit QueryHistory.swift
[942/967] Compiling FluentKit DatabaseSchema.swift
[943/967] Compiling FluentKit SchemaBuilder.swift
[944/967] Compiling FluentKit OptionalType.swift
[945/967] Compiling FluentKit RandomGeneratable.swift
[946/967] Compiling FluentKit ValueOperators+String.swift
[947/967] Compiling FluentKit ValueOperators.swift
[948/967] Compiling FluentKit Boolean.swift
[949/967] Compiling FluentKit BooleanPropertyFormat.swift
[950/967] Compiling FluentKit Children.swift
[951/967] Compiling FluentKit CompositeID.swift
[952/967] Compiling FluentKit Field.swift
[953/967] Compiling FluentKit FieldKey.swift
[954/967] Compiling FluentKit Group.swift
[955/967] Compiling FluentKit ID.swift
[956/967] Compiling FluentKit OptionalBoolean.swift
[957/967] Compiling FluentKit OptionalChild.swift
[958/967] Compiling FluentKit OptionalField.swift
[959/967] Compiling FluentKit OptionalParent.swift
[960/967] Compiling FluentKit Parent.swift
[961/967] Compiling FluentKit Property.swift
[962/967] Compiling FluentKit Relation.swift
[963/967] Compiling FluentKit Siblings.swift
[964/967] Compiling FluentKit Timestamp.swift
[965/967] Compiling FluentKit TimestampFormat.swift
[966/967] Compiling FluentKit QueryBuilder+Aggregate.swift
[967/967] Compiling FluentKit QueryBuilder+EagerLoad.swift
[969/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 | }
[970/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")
[971/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")
[972/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")
[973/994] Compiling FluentMongo Fluent+Additions.swift
[974/994] Compiling FluentMongo FluentMongoConfiguration.swift
[975/994] Compiling FluentMongo IndexBuilder.swift
[976/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 {
[977/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 {
[978/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 {
[979/994] Compiling FluentMongo DatabaseQuerySort+Mongo.swift
[980/994] Compiling FluentMongo DatabaseQueryValue+Mongo.swift
[981/994] Compiling FluentMongo DatabaseSchema+Mongo.swift
[982/994] 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 |     }
[983/994] 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 |     }
[984/994] 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 |     }
[985/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 |
[986/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 |
[987/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 |
[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! (172.55s)
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.