Build Information
Successful build of FluentMongo, reference 1.2.2 (76bc6e
), with Swift 6.0 for Linux on 3 Nov 2024 23:17:31 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 2>&1
Build Log
[503/597] Compiling Atomics DoubleWord.swift
[504/597] Emitting module HashTreeCollections
[506/598] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[507/598] Compiling BitCollections BitSet+CustomReflectable.swift
[508/598] Compiling BitCollections BitSet+CustomStringConvertible.swift
[509/598] Compiling BitCollections BitSet+Equatable.swift
[510/598] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[511/598] Compiling BitCollections BitSet+Extras.swift
[512/598] Compiling BitCollections BitSet+Hashable.swift
[513/605] Compiling Atomics IntegerOperations.swift
[514/605] Compiling Atomics Unmanaged extensions.swift
[515/605] Compiling Atomics AtomicReference.swift
[516/605] Compiling Atomics AtomicStorage.swift
[517/605] Compiling Atomics AtomicValue.swift
[518/605] Compiling Atomics Primitives.shims.swift
[519/605] Compiling Atomics AtomicInteger.swift
[520/605] Compiling Atomics AtomicOptionalWrappable.swift
[521/605] Emitting module BitCollections
[522/605] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[523/605] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[524/605] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[525/605] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[526/605] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[527/605] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[528/605] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[529/605] Compiling BitCollections BitSet+Initializers.swift
[530/605] Compiling BitCollections BitSet+Invariants.swift
[531/605] Compiling BitCollections BitSet+Random.swift
[532/605] Compiling BitCollections BitSet+SetAlgebra basics.swift
[533/605] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[534/605] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[535/605] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[536/605] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[537/605] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[538/605] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[539/605] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[540/605] Compiling BitCollections BitSet+SetAlgebra union.swift
[541/605] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[542/605] Compiling BitCollections BitSet.Counted.swift
[543/605] Compiling BitCollections BitArray.swift
[544/605] Compiling BitCollections BitSet+BidirectionalCollection.swift
[545/605] Compiling BitCollections BitSet+Codable.swift
[549/608] Compiling Atomics OptionalRawRepresentable.swift
[550/608] Compiling Atomics RawRepresentable.swift
[551/608] Compiling Atomics AtomicBool.swift
[552/608] Compiling Atomics IntegerConformances.swift
[553/608] Compiling Atomics PointerConformances.swift
[554/608] Compiling Atomics Primitives.native.swift
[563/608] Compiling BitCollections BitArray._UnsafeHandle.swift
[571/608] Compiling BitCollections BitSet.Index.swift
[572/608] Compiling BitCollections BitSet._UnsafeHandle.swift
[573/608] Compiling BitCollections BitSet.swift
[574/608] Compiling BitCollections Range+Utilities.swift
[575/608] Compiling BitCollections Slice+Utilities.swift
[576/608] Compiling BitCollections UInt+Tricks.swift
[577/608] Compiling BitCollections _Word.swift
[595/609] Compiling Algorithms Trim.swift
[596/609] Compiling Algorithms Unique.swift
[597/609] Compiling Algorithms Windows.swift
[598/611] Emitting module Collections
[599/611] Compiling Collections Collections.swift
[611/612] Emitting module Atomics
[613/673] Emitting module Algorithms
[615/674] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[616/674] Compiling NIOCore EventLoopFuture+Deprecated.swift
[617/674] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[618/674] Compiling NIOCore EventLoopFuture.swift
[619/674] Compiling NIOCore FileDescriptor.swift
[620/674] Compiling NIOCore FileHandle.swift
[621/674] Compiling NIOCore FileRegion.swift
[622/674] Compiling NIOCore GlobalSingletons.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 NIOThrowingAsyncSequenceProducer.swift
[632/682] Compiling NIOCore BSDSocketAPI.swift
[633/682] Compiling NIOCore ByteBuffer-aux.swift
[634/682] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[635/682] Compiling NIOCore ByteBuffer-conversions.swift
[636/682] Compiling NIOCore ByteBuffer-core.swift
[637/682] Compiling NIOCore ByteBuffer-hex.swift
[638/682] Compiling NIOCore ByteBuffer-int.swift
[639/682] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[640/682] Compiling NIOCore CircularBuffer.swift
[641/682] Compiling NIOCore Codec.swift
[642/682] Compiling NIOCore ConvenienceOptionSupport.swift
[643/682] Compiling NIOCore DeadChannel.swift
[644/682] Compiling NIOCore DispatchQueue+WithFuture.swift
[645/682] Compiling NIOCore EventLoop+Deprecated.swift
[646/682] Compiling NIOCore EventLoop+SerialExecutor.swift
[647/682] Compiling NIOCore EventLoop.swift
[648/682] Compiling NIOCore MulticastChannel.swift
[649/682] Compiling NIOCore NIOAny.swift
[650/682] Compiling NIOCore NIOCloseOnErrorHandler.swift
[651/682] Compiling NIOCore NIOLoopBound.swift
[652/682] Compiling NIOCore NIOScheduledCallback.swift
[653/682] Compiling NIOCore NIOSendable.swift
[654/682] Compiling NIOCore PointerHelpers.swift
[655/682] Compiling NIOCore RecvByteBufferAllocator.swift
[656/682] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[657/682] Compiling NIOCore SocketAddresses.swift
[658/682] Compiling NIOCore SocketOptionProvider.swift
[659/682] Compiling NIOCore SystemCallHelpers.swift
[660/682] Compiling NIOCore TimeAmount+Duration.swift
[661/682] Compiling NIOCore TypeAssistedChannelHandler.swift
[662/682] Compiling NIOCore UniversalBootstrapSupport.swift
[663/682] Compiling NIOCore Utilities.swift
[664/682] Compiling NIOCore ByteBuffer-multi-int.swift
[665/682] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[666/682] Compiling NIOCore ByteBuffer-views.swift
[667/682] Compiling NIOCore Channel.swift
[668/682] Compiling NIOCore ChannelHandler.swift
[669/682] Compiling NIOCore ChannelHandlers.swift
[670/682] Compiling NIOCore ChannelInvoker.swift
[671/682] Compiling NIOCore ChannelOption.swift
[672/682] Compiling NIOCore ChannelPipeline.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] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[686/735] Compiling NIOEmbedded AsyncTestingChannel.swift
[687/735] Emitting module NIOEmbedded
[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/736] Compiling NIOPosix IO.swift
[697/736] Compiling NIOPosix IntegerBitPacking.swift
[698/736] Compiling NIOPosix IntegerTypes.swift
[699/736] Compiling NIOPosix Linux.swift
[700/736] Compiling NIOPosix LinuxCPUSet.swift
[701/736] Compiling NIOPosix LinuxUring.swift
[702/736] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[703/742] Emitting module NIOPosix
[704/742] Compiling NIOPosix ThreadPosix.swift
[705/742] Compiling NIOPosix ThreadWindows.swift
[706/742] Compiling NIOPosix UnsafeTransfer.swift
[707/742] Compiling NIOPosix Utilities.swift
[708/742] Compiling NIOPosix VsockAddress.swift
[709/742] Compiling NIOPosix VsockChannelEvents.swift
[710/742] Compiling NIOPosix BSDSocketAPICommon.swift
[711/742] Compiling NIOPosix BSDSocketAPIPosix.swift
[712/742] Compiling NIOPosix BSDSocketAPIWindows.swift
[713/742] Compiling NIOPosix BaseSocket.swift
[714/742] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[715/742] Compiling NIOPosix BaseSocketChannel.swift
[716/742] Compiling NIOPosix BaseStreamSocketChannel.swift
[717/742] Compiling NIOPosix SelectableChannel.swift
[718/742] Compiling NIOPosix SelectableEventLoop.swift
[719/742] Compiling NIOPosix SelectorEpoll.swift
[720/742] Compiling NIOPosix SelectorGeneric.swift
[721/742] Compiling NIOPosix SelectorKqueue.swift
[722/742] Compiling NIOPosix SelectorUring.swift
[723/742] Compiling NIOPosix ServerSocket.swift
[724/742] Compiling NIOPosix Socket.swift
[725/742] Compiling NIOPosix SocketChannel.swift
[726/742] Compiling NIOPosix SocketProtocols.swift
[727/742] Compiling NIOPosix System.swift
[728/742] Compiling NIOPosix Thread.swift
[729/742] Compiling NIOPosix NIOThreadPool.swift
[730/742] Compiling NIOPosix NonBlockingFileIO.swift
[731/742] Compiling NIOPosix PendingDatagramWritesManager.swift
[732/742] Compiling NIOPosix PendingWritesManager.swift
[733/742] Compiling NIOPosix PipeChannel.swift
[734/742] Compiling NIOPosix PipePair.swift
[735/742] Compiling NIOPosix PointerHelpers.swift
[736/742] Compiling NIOPosix 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/796] Compiling SwiftBSON BSONDocumentIterator.swift
[751/796] Compiling SwiftBSON BSONEncoder.swift
[752/796] Compiling SwiftBSON BSONDBPointer.swift
[753/798] Emitting module SwiftBSON
[754/801] Compiling AsyncKit Optional+StrictMap.swift
[755/801] Compiling AsyncKit Exports.swift
[756/801] Compiling SwiftBSON Array+BSONValue.swift
[757/801] Compiling SwiftBSON BSON.swift
[758/801] Compiling SwiftBSON BSONBinary.swift
[759/801] Compiling SwiftBSON BSONCode.swift
[760/801] Compiling SwiftBSON BSONDocument+Sequence.swift
[761/801] Compiling SwiftBSON BSONDocument.swift
[762/801] Compiling SwiftBSON ByteBuffer+BSON.swift
[763/801] Compiling SwiftBSON CodableNumber.swift
[764/801] Compiling SwiftBSON CodingStrategies.swift
[765/801] Compiling SwiftBSON Date+BSONValue.swift
[766/801] Compiling SwiftBSON BSONSymbol.swift
[769/801] Compiling SwiftBSON Bool+BSONValue.swift
[773/801] Compiling SwiftBSON BSONRegularExpression.swift
[774/801] Compiling SwiftBSON Double+BSONValue.swift
[775/801] Compiling SwiftBSON ExtendedJSONDecoder.swift
[776/801] Compiling SwiftBSON ExtendedJSONEncoder.swift
[781/801] Compiling SwiftBSON Integers+BSONValue.swift
[782/801] Compiling SwiftBSON JSON.swift
[783/801] Compiling SwiftBSON String+BSONValue.swift
[785/801] Compiling SwiftBSON BSONDecimal128.swift
[786/801] Compiling SwiftBSON BSONDecoder.swift
[787/801] Compiling SwiftBSON BSONDocument+Collection.swift
[793/864] Emitting module AsyncKit
[794/864] Compiling MongoSwift APM.swift
[795/864] Compiling MongoSwift ChangeStream+AsyncSequence.swift
[796/864] Compiling MongoSwift ClientSession+AsyncAwait.swift
[797/864] Compiling MongoSwift MongoClient+AsyncAwait.swift
[798/864] Compiling MongoSwift MongoCollection+AsyncAwait.swift
[799/864] Compiling MongoSwift MongoCollection+ChangeStreams+AsyncAwait.swift
[800/864] Compiling MongoSwift MongoCollection+FindAndModify+AsyncAwait.swift
[801/864] Compiling MongoSwift MongoCollection+Indexes+AsyncAwait.swift
[802/864] Compiling MongoSwift MongoCollection+Read+AsyncAwait.swift
[803/872] Compiling MongoSwift CreateCollectionOperation.swift
[804/872] Compiling MongoSwift CreateIndexesOperation.swift
[805/872] Compiling MongoSwift DistinctOperation.swift
[806/872] Compiling MongoSwift DropCollectionOperation.swift
[807/872] Compiling MongoSwift DropDatabaseOperation.swift
[808/872] Compiling MongoSwift DropIndexesOperation.swift
[809/872] Compiling MongoSwift EstimatedDocumentCountOperation.swift
[810/872] Compiling MongoSwift FindAndModifyOperation.swift
[811/872] Compiling MongoSwift MongoCollection+Write+AsyncAwait.swift
[812/872] Compiling MongoSwift MongoCursor+AsyncSequence.swift
[813/872] Compiling MongoSwift MongoDatabase+AsyncAwait.swift
[814/872] Compiling MongoSwift BSONPointerUtils.swift
[815/872] Compiling MongoSwift BSONUtil.swift
[816/872] Compiling MongoSwift ChangeStream.swift
[817/872] Compiling MongoSwift ChangeStreamEvent.swift
[818/872] Compiling MongoSwift ChangeStreamOptions.swift
[819/872] Compiling MongoSwift ClientSession.swift
[820/872] Compiling MongoSwift MongoError.swift
[821/872] Compiling MongoSwift MongoNamespace.swift
[822/872] Compiling MongoSwift MongoServerAPI.swift
[823/872] Compiling MongoSwift MongoSwift.swift
[824/872] Compiling MongoSwift MongoSwiftVersion.swift
[825/872] Compiling MongoSwift AbortTransactionOperation.swift
[826/872] Compiling MongoSwift AggregateOperation.swift
[827/872] Compiling MongoSwift CommitTransactionOperation.swift
[828/872] Compiling MongoSwift CountDocumentsOperation.swift
[829/872] Compiling MongoSwift FindOperation.swift
[830/872] Compiling MongoSwift ListCollectionsOperation.swift
[831/872] Compiling MongoSwift ListDatabasesOperation.swift
[832/872] Compiling MongoSwift ListIndexesOperation.swift
[833/872] Compiling MongoSwift MongocCommandHelpers.swift
[834/872] Compiling MongoSwift Operation.swift
[835/872] Compiling MongoSwift RenameCollectionOperation.swift
[836/872] Compiling MongoSwift RunCommandOperation.swift
[837/872] Emitting module MongoSwift
<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 |
[838/872] Compiling MongoSwift StartSessionOperation.swift
[839/872] Compiling MongoSwift StartTransactionOperation.swift
[840/872] Compiling MongoSwift WatchOperation.swift
[841/872] Compiling MongoSwift ReadConcern.swift
[842/872] Compiling MongoSwift ReadPreference.swift
[843/872] Compiling MongoSwift SDAM.swift
[844/872] Compiling MongoSwift ServerSelection.swift
[845/872] Compiling MongoSwift WriteConcern.swift
[846/872] Compiling MongoSwift Compressor.swift
[847/872] Compiling MongoSwift ConnectionPool.swift
[848/872] Compiling MongoSwift CursorCommon.swift
[849/872] Compiling MongoSwift EventLoopBoundMongoClient.swift
[850/872] Compiling MongoSwift Exports.swift
[851/872] Compiling MongoSwift Hint.swift
[852/872] Compiling MongoSwift MongoClient.swift
[853/872] Compiling MongoSwift MongoCollection+BulkWrite.swift
[854/872] Compiling MongoSwift MongoCollection+ChangeStreams.swift
[855/872] Compiling MongoSwift MongoCollection+FindAndModify.swift
[856/872] Compiling MongoSwift MongoCollection+Indexes.swift
[857/872] Compiling MongoSwift MongoCollection+Read.swift
[858/872] Compiling MongoSwift MongoCollection+Write.swift
[859/872] Compiling MongoSwift MongoCollection.swift
[860/872] Compiling MongoSwift MongoConnectionString.swift
[861/872] Compiling MongoSwift MongoCredential.swift
[862/872] Compiling MongoSwift MongoCursor.swift
[863/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/967] Compiling FluentKit AnyModel.swift
[888/967] Compiling FluentKit EagerLoad.swift
[889/967] Compiling FluentKit Fields+Codable.swift
[890/967] Compiling FluentKit Fields.swift
[891/967] Compiling FluentKit MirrorBypass.swift
[892/967] Compiling FluentKit Model+CRUD.swift
[893/967] Compiling FluentKit Model.swift
[894/967] Compiling FluentKit ModelAlias.swift
[895/967] Compiling FluentKit Schema.swift
[896/967] Compiling FluentKit FieldOperators.swift
[897/967] Compiling FluentKit Operators.swift
[898/967] Compiling FluentKit ValueOperators+Array.swift
[899/967] Emitting module FluentKit
[900/967] Compiling FluentKit AsyncMigration.swift
[901/967] Compiling FluentKit AsyncModelMiddleware.swift
[902/967] Compiling FluentKit Children+Concurrency.swift
[903/967] Compiling FluentKit Database+Concurrency.swift
[904/967] Compiling FluentKit EnumBuilder+Concurrency.swift
[905/967] Compiling FluentKit Model+Concurrency.swift
[906/967] Compiling FluentKit ModelResponder+Concurrency.swift
[907/967] Compiling FluentKit OptionalChild+Concurrency.swift
[908/967] Compiling FluentKit OptionalParent+Concurrency.swift
[909/967] Compiling FluentKit Parent+Concurrency.swift
[910/967] Compiling FluentKit QueryBuilder+Concurrency.swift
[911/967] Compiling FluentKit Relation+Concurrency.swift
[912/967] Compiling FluentKit EnumBuilder.swift
[913/967] Compiling FluentKit EnumMetadata.swift
[914/967] Compiling FluentKit EnumProperty.swift
[915/967] Compiling FluentKit OptionalEnumProperty.swift
[916/967] Compiling FluentKit Exports.swift
[917/967] Compiling FluentKit FluentError.swift
[918/967] Compiling FluentKit ModelMiddleware.swift
[919/967] Compiling FluentKit ModelResponder.swift
[920/967] Compiling FluentKit Migration.swift
[921/967] Compiling FluentKit MigrationLog.swift
[922/967] Compiling FluentKit Migrations.swift
[923/967] Compiling FluentKit Migrator.swift
[924/967] Compiling FluentKit DatabaseQuery+Filter.swift
[925/967] Compiling FluentKit DatabaseQuery+Join.swift
[926/967] Compiling FluentKit DatabaseQuery+Range.swift
[927/967] Compiling FluentKit DatabaseQuery+Sort.swift
[928/967] Compiling FluentKit DatabaseQuery+Value.swift
[929/967] Compiling FluentKit DatabaseQuery.swift
[930/967] Compiling FluentKit QueryHistory.swift
[931/967] Compiling FluentKit DatabaseSchema.swift
[932/967] Compiling FluentKit SchemaBuilder.swift
[933/967] Compiling FluentKit OptionalType.swift
[934/967] Compiling FluentKit RandomGeneratable.swift
[935/967] Compiling FluentKit ValueOperators+String.swift
[936/967] Compiling FluentKit ValueOperators.swift
[937/967] Compiling FluentKit Boolean.swift
[938/967] Compiling FluentKit BooleanPropertyFormat.swift
[939/967] Compiling FluentKit Children.swift
[940/967] Compiling FluentKit CompositeID.swift
[941/967] Compiling FluentKit Field.swift
[942/967] Compiling FluentKit FieldKey.swift
[943/967] Compiling FluentKit Group.swift
[944/967] Compiling FluentKit ID.swift
[945/967] Compiling FluentKit OptionalBoolean.swift
[946/967] Compiling FluentKit OptionalChild.swift
[947/967] Compiling FluentKit OptionalField.swift
[948/967] Compiling FluentKit OptionalParent.swift
[949/967] Compiling FluentKit Parent.swift
[950/967] Compiling FluentKit Property.swift
[951/967] Compiling FluentKit Relation.swift
[952/967] Compiling FluentKit Siblings.swift
[953/967] Compiling FluentKit Timestamp.swift
[954/967] Compiling FluentKit TimestampFormat.swift
[955/967] Compiling FluentKit QueryBuilder+Aggregate.swift
[956/967] Compiling FluentKit QueryBuilder+EagerLoad.swift
[957/967] Compiling FluentKit QueryBuilder+Filter.swift
[958/967] Compiling FluentKit QueryBuilder+Group.swift
[959/967] Compiling FluentKit QueryBuilder+Join.swift
[960/967] Compiling FluentKit QueryBuilder+Paginate.swift
[961/967] Compiling FluentKit QueryBuilder+Range.swift
[962/967] Compiling FluentKit QueryBuilder+Set.swift
[963/967] Compiling FluentKit QueryBuilder+Sort.swift
[964/967] Compiling FluentKit QueryBuilder.swift
[965/967] Compiling FluentKit DatabaseQuery+Action.swift
[966/967] Compiling FluentKit DatabaseQuery+Aggregate.swift
[967/967] Compiling FluentKit DatabaseQuery+Field.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 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 | }
[974/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 | }
[975/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 | }
[976/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 |
[977/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 |
[978/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 |
[979/994] Compiling FluentMongo Fluent+Additions.swift
[980/994] Compiling FluentMongo FluentMongoConfiguration.swift
[981/994] Compiling FluentMongo IndexBuilder.swift
[982/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 {
[983/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 {
[984/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 {
[985/994] Compiling FluentMongo DatabaseQuerySort+Mongo.swift
[986/994] Compiling FluentMongo DatabaseQueryValue+Mongo.swift
[987/994] Compiling FluentMongo DatabaseSchema+Mongo.swift
[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! (115.71s)
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.