The Swift Package Index logo.Swift Package Index

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

Build Information

Failed to build mongo-swift-driver, reference main (1f6224), with Swift 6.0 for Linux on 28 Nov 2024 16:42:09 UTC.

Build Command

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

Build Log

     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
     |                           |- warning: static property 'mongodb' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'mongodb' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
/host/spi-builder-workspace/Sources/MongoSwift/MongoConnectionString.swift:68:27: warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
  61 |
  62 |     /// Represents a connection string scheme.
  63 |     public struct Scheme: LosslessStringConvertible, Equatable {
     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
  68 |         public static let srv = Scheme(.srv)
     |                           |- warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'srv' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  69 |
  70 |         /// Internal representation of a scheme.
/host/spi-builder-workspace/Sources/MongoSwift/Compressor.swift:16:23: warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | /// Specifies a library to use for network compression.
 2 | public struct Compressor: CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Compressor' conform to the 'Sendable' protocol
 3 |     internal enum _Compressor: Equatable {
 4 |         case zlib(level: Int32?)
   :
14 |     /// Use zlib for data compression.
15 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/glossary/#term-zlib
16 |     public static let zlib = Compressor(.zlib(level: nil))
   |                       |- warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zlib' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// Use zlib for data compression, with the specified compression level.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:64:27: warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
 64 |         public static let gssAPI = Mechanism(.gssAPI)
    |                           |- warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'gssAPI' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |
 66 |         /// X509 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:68:27: warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 66 |         /// X509 authentication.
 67 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-x.509/#security-auth-x509
 68 |         public static let mongodbX509 = Mechanism(.mongodbX509)
    |                           |- warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'mongodbX509' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |         /// PLAIN authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:72:27: warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 70 |         /// PLAIN authentication.
 71 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-ldap/
 72 |         public static let plain = Mechanism(.plain)
    |                           |- warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'plain' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |         /// SCRAM-SHA-1 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:76:27: warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 74 |         /// SCRAM-SHA-1 authentication.
 75 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 76 |         public static let scramSHA1 = Mechanism(.scramSHA1)
    |                           |- warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA1' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |
 78 |         /// SCRAM-SHA-256 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:80:27: warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 78 |         /// SCRAM-SHA-256 authentication.
 79 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 80 |         public static let scramSHA256 = Mechanism(.scramSHA256)
    |                           |- warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA256' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |
 82 |         private enum _Mechanism: String {
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:290:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 288 |
 289 |     /// Counter for generating client _ids.
 290 |     internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
     |                                             `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 291 |
 292 |     /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:281:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
279 |         let el = self.eventLoop
280 |         let wrappedCursor = self.wrappedCursor
281 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
282 |             try await client.operationExecutor.execute(on: el) {
    |                       `- note: closure captures non-Sendable 'client'
283 |                 wrappedCursor.kill()
    |                 `- note: closure captures non-Sendable 'wrappedCursor'
284 |             }
285 |         }
[557/564] Compiling MongoSwift MongoCredential.swift
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:70: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 63 |     ) -> EventLoopFuture<T?> {
 64 |         let options = options.map { FindOptions(from: $0) }
 65 |         return self.find(filter, options: options, session: session).flatMap { cursor in
    |                                                                      `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 66 |             cursor.next().always { _ in _ = cursor.kill() }
 67 |         }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of 'cursor' with non-sendable type 'MongoCursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         let options = options.map { FindOptions(from: $0) }
 65 |         return self.find(filter, options: options, session: session).flatMap { cursor in
 66 |             cursor.next().always { _ in _ = cursor.kill() }
    |                                             `- warning: capture of 'cursor' with non-sendable type 'MongoCursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |                               `- note: 'T' previously declared here
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
    :
173 |     /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 |     /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 |     internal func withMongocCollection<T>(
    |                                        `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 |         from connection: Connection,
177 |         body: (OpaquePointer) throws -> T
/host/spi-builder-workspace/Sources/MongoSwift/ReadConcern.swift:26:23: warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'ReadConcern' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct to represent a MongoDB read concern.
 4 | public struct ReadConcern: Codable {
   |               `- note: consider making struct 'ReadConcern' conform to the 'Sendable' protocol
 5 |     /// Local ReadConcern.
 6 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-concern-local/
   :
24 |
25 |     /// Server default ReadConcern.
26 |     public static let serverDefault = ReadConcern(nil)
   |                       |- warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'ReadConcern' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'serverDefault' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 |     /// For an unknown ReadConcern.
/host/spi-builder-workspace/Sources/MongoSwift/WriteConcern.swift:27:23: warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'WriteConcern' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// A class to represent a MongoDB write concern.
  5 | public struct WriteConcern: Codable {
    |               `- note: consider making struct 'WriteConcern' conform to the 'Sendable' protocol
  6 |     /// Majority WriteConcern with journal and wtimeoutMS unset.
  7 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/write-concern/#writeconcern._dq_majority_dq_
    :
 25 |
 26 |     /// Server default WriteConcern.
 27 |     public static let serverDefault = WriteConcern()
    |                       |- warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'WriteConcern' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'serverDefault' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |     /// An option to request acknowledgement that the write operation has propagated to specified mongod instances.
/host/spi-builder-workspace/Sources/MongoSwift/MongoConnectionString.swift:65:27: warning: static property 'mongodb' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
  61 |
  62 |     /// Represents a connection string scheme.
  63 |     public struct Scheme: LosslessStringConvertible, Equatable {
     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
     |                           |- warning: static property 'mongodb' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'mongodb' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
/host/spi-builder-workspace/Sources/MongoSwift/MongoConnectionString.swift:68:27: warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
  61 |
  62 |     /// Represents a connection string scheme.
  63 |     public struct Scheme: LosslessStringConvertible, Equatable {
     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
  68 |         public static let srv = Scheme(.srv)
     |                           |- warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'srv' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  69 |
  70 |         /// Internal representation of a scheme.
/host/spi-builder-workspace/Sources/MongoSwift/Compressor.swift:16:23: warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | /// Specifies a library to use for network compression.
 2 | public struct Compressor: CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Compressor' conform to the 'Sendable' protocol
 3 |     internal enum _Compressor: Equatable {
 4 |         case zlib(level: Int32?)
   :
14 |     /// Use zlib for data compression.
15 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/glossary/#term-zlib
16 |     public static let zlib = Compressor(.zlib(level: nil))
   |                       |- warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zlib' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// Use zlib for data compression, with the specified compression level.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:64:27: warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
 64 |         public static let gssAPI = Mechanism(.gssAPI)
    |                           |- warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'gssAPI' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |
 66 |         /// X509 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:68:27: warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 66 |         /// X509 authentication.
 67 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-x.509/#security-auth-x509
 68 |         public static let mongodbX509 = Mechanism(.mongodbX509)
    |                           |- warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'mongodbX509' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |         /// PLAIN authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:72:27: warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 70 |         /// PLAIN authentication.
 71 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-ldap/
 72 |         public static let plain = Mechanism(.plain)
    |                           |- warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'plain' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |         /// SCRAM-SHA-1 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:76:27: warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 74 |         /// SCRAM-SHA-1 authentication.
 75 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 76 |         public static let scramSHA1 = Mechanism(.scramSHA1)
    |                           |- warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA1' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |
 78 |         /// SCRAM-SHA-256 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:80:27: warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 78 |         /// SCRAM-SHA-256 authentication.
 79 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 80 |         public static let scramSHA256 = Mechanism(.scramSHA256)
    |                           |- warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA256' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |
 82 |         private enum _Mechanism: String {
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:290:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 288 |
 289 |     /// Counter for generating client _ids.
 290 |     internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
     |                                             `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 291 |
 292 |     /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:281:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
279 |         let el = self.eventLoop
280 |         let wrappedCursor = self.wrappedCursor
281 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
282 |             try await client.operationExecutor.execute(on: el) {
    |                       `- note: closure captures non-Sendable 'client'
283 |                 wrappedCursor.kill()
    |                 `- note: closure captures non-Sendable 'wrappedCursor'
284 |             }
285 |         }
[558/564] Compiling MongoSwift MongoCursor.swift
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:70: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 63 |     ) -> EventLoopFuture<T?> {
 64 |         let options = options.map { FindOptions(from: $0) }
 65 |         return self.find(filter, options: options, session: session).flatMap { cursor in
    |                                                                      `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 66 |             cursor.next().always { _ in _ = cursor.kill() }
 67 |         }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of 'cursor' with non-sendable type 'MongoCursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         let options = options.map { FindOptions(from: $0) }
 65 |         return self.find(filter, options: options, session: session).flatMap { cursor in
 66 |             cursor.next().always { _ in _ = cursor.kill() }
    |                                             `- warning: capture of 'cursor' with non-sendable type 'MongoCursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |                               `- note: 'T' previously declared here
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
    :
173 |     /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 |     /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 |     internal func withMongocCollection<T>(
    |                                        `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 |         from connection: Connection,
177 |         body: (OpaquePointer) throws -> T
/host/spi-builder-workspace/Sources/MongoSwift/ReadConcern.swift:26:23: warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'ReadConcern' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct to represent a MongoDB read concern.
 4 | public struct ReadConcern: Codable {
   |               `- note: consider making struct 'ReadConcern' conform to the 'Sendable' protocol
 5 |     /// Local ReadConcern.
 6 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-concern-local/
   :
24 |
25 |     /// Server default ReadConcern.
26 |     public static let serverDefault = ReadConcern(nil)
   |                       |- warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'ReadConcern' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'serverDefault' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 |     /// For an unknown ReadConcern.
/host/spi-builder-workspace/Sources/MongoSwift/WriteConcern.swift:27:23: warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'WriteConcern' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// A class to represent a MongoDB write concern.
  5 | public struct WriteConcern: Codable {
    |               `- note: consider making struct 'WriteConcern' conform to the 'Sendable' protocol
  6 |     /// Majority WriteConcern with journal and wtimeoutMS unset.
  7 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/write-concern/#writeconcern._dq_majority_dq_
    :
 25 |
 26 |     /// Server default WriteConcern.
 27 |     public static let serverDefault = WriteConcern()
    |                       |- warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'WriteConcern' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'serverDefault' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |     /// An option to request acknowledgement that the write operation has propagated to specified mongod instances.
/host/spi-builder-workspace/Sources/MongoSwift/MongoConnectionString.swift:65:27: warning: static property 'mongodb' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
  61 |
  62 |     /// Represents a connection string scheme.
  63 |     public struct Scheme: LosslessStringConvertible, Equatable {
     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
     |                           |- warning: static property 'mongodb' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'mongodb' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
/host/spi-builder-workspace/Sources/MongoSwift/MongoConnectionString.swift:68:27: warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
  61 |
  62 |     /// Represents a connection string scheme.
  63 |     public struct Scheme: LosslessStringConvertible, Equatable {
     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
  68 |         public static let srv = Scheme(.srv)
     |                           |- warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'srv' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  69 |
  70 |         /// Internal representation of a scheme.
/host/spi-builder-workspace/Sources/MongoSwift/Compressor.swift:16:23: warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | /// Specifies a library to use for network compression.
 2 | public struct Compressor: CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Compressor' conform to the 'Sendable' protocol
 3 |     internal enum _Compressor: Equatable {
 4 |         case zlib(level: Int32?)
   :
14 |     /// Use zlib for data compression.
15 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/glossary/#term-zlib
16 |     public static let zlib = Compressor(.zlib(level: nil))
   |                       |- warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zlib' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// Use zlib for data compression, with the specified compression level.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:64:27: warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
 64 |         public static let gssAPI = Mechanism(.gssAPI)
    |                           |- warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'gssAPI' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |
 66 |         /// X509 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:68:27: warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 66 |         /// X509 authentication.
 67 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-x.509/#security-auth-x509
 68 |         public static let mongodbX509 = Mechanism(.mongodbX509)
    |                           |- warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'mongodbX509' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |         /// PLAIN authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:72:27: warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 70 |         /// PLAIN authentication.
 71 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-ldap/
 72 |         public static let plain = Mechanism(.plain)
    |                           |- warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'plain' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |         /// SCRAM-SHA-1 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:76:27: warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 74 |         /// SCRAM-SHA-1 authentication.
 75 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 76 |         public static let scramSHA1 = Mechanism(.scramSHA1)
    |                           |- warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA1' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |
 78 |         /// SCRAM-SHA-256 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:80:27: warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 78 |         /// SCRAM-SHA-256 authentication.
 79 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 80 |         public static let scramSHA256 = Mechanism(.scramSHA256)
    |                           |- warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA256' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |
 82 |         private enum _Mechanism: String {
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:290:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 288 |
 289 |     /// Counter for generating client _ids.
 290 |     internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
     |                                             `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 291 |
 292 |     /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:281:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
279 |         let el = self.eventLoop
280 |         let wrappedCursor = self.wrappedCursor
281 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
282 |             try await client.operationExecutor.execute(on: el) {
    |                       `- note: closure captures non-Sendable 'client'
283 |                 wrappedCursor.kill()
    |                 `- note: closure captures non-Sendable 'wrappedCursor'
284 |             }
285 |         }
[559/564] Compiling MongoSwift MongoDatabase.swift
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:65:70: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 63 |     ) -> EventLoopFuture<T?> {
 64 |         let options = options.map { FindOptions(from: $0) }
 65 |         return self.find(filter, options: options, session: session).flatMap { cursor in
    |                                                                      `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 66 |             cursor.next().always { _ in _ = cursor.kill() }
 67 |         }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Read.swift:66:45: warning: capture of 'cursor' with non-sendable type 'MongoCursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 64 |         let options = options.map { FindOptions(from: $0) }
 65 |         return self.find(filter, options: options, session: session).flatMap { cursor in
 66 |             cursor.next().always { _ in _ = cursor.kill() }
    |                                             `- warning: capture of 'cursor' with non-sendable type 'MongoCursor<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 67 |         }
 68 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:175:40: warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |                               `- note: 'T' previously declared here
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
    :
173 |     /// `MongoCollection`, and uses it to execute the given closure. The `mongoc_collection_t` is only valid for the
174 |     /// body of the closure. The caller is *not responsible* for cleaning up the `mongoc_collection_t`.
175 |     internal func withMongocCollection<T>(
    |                                        `- warning: generic parameter 'T' shadows generic parameter from outer scope with the same name; this is an error in the Swift 6 language mode
176 |         from connection: Connection,
177 |         body: (OpaquePointer) throws -> T
/host/spi-builder-workspace/Sources/MongoSwift/ReadConcern.swift:26:23: warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'ReadConcern' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct to represent a MongoDB read concern.
 4 | public struct ReadConcern: Codable {
   |               `- note: consider making struct 'ReadConcern' conform to the 'Sendable' protocol
 5 |     /// Local ReadConcern.
 6 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/read-concern-local/
   :
24 |
25 |     /// Server default ReadConcern.
26 |     public static let serverDefault = ReadConcern(nil)
   |                       |- warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'ReadConcern' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'serverDefault' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
27 |
28 |     /// For an unknown ReadConcern.
/host/spi-builder-workspace/Sources/MongoSwift/WriteConcern.swift:27:23: warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'WriteConcern' may have shared mutable state; this is an error in the Swift 6 language mode
  3 |
  4 | /// A class to represent a MongoDB write concern.
  5 | public struct WriteConcern: Codable {
    |               `- note: consider making struct 'WriteConcern' conform to the 'Sendable' protocol
  6 |     /// Majority WriteConcern with journal and wtimeoutMS unset.
  7 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/write-concern/#writeconcern._dq_majority_dq_
    :
 25 |
 26 |     /// Server default WriteConcern.
 27 |     public static let serverDefault = WriteConcern()
    |                       |- warning: static property 'serverDefault' is not concurrency-safe because non-'Sendable' type 'WriteConcern' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'serverDefault' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 28 |
 29 |     /// An option to request acknowledgement that the write operation has propagated to specified mongod instances.
/host/spi-builder-workspace/Sources/MongoSwift/MongoConnectionString.swift:65:27: warning: static property 'mongodb' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
  61 |
  62 |     /// Represents a connection string scheme.
  63 |     public struct Scheme: LosslessStringConvertible, Equatable {
     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
     |                           |- warning: static property 'mongodb' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'mongodb' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
/host/spi-builder-workspace/Sources/MongoSwift/MongoConnectionString.swift:68:27: warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
  61 |
  62 |     /// Represents a connection string scheme.
  63 |     public struct Scheme: LosslessStringConvertible, Equatable {
     |                   `- note: consider making struct 'Scheme' conform to the 'Sendable' protocol
  64 |         /// Indicates that this connection string uses the scheme `mongodb`.
  65 |         public static let mongodb = Scheme(.mongodb)
  66 |
  67 |         /// Indicates that this connection string uses the scheme `mongodb+srv`.
  68 |         public static let srv = Scheme(.srv)
     |                           |- warning: static property 'srv' is not concurrency-safe because non-'Sendable' type 'MongoConnectionString.Scheme' may have shared mutable state; this is an error in the Swift 6 language mode
     |                           |- note: annotate 'srv' with '@MainActor' if property should only be accessed from the main actor
     |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
  69 |
  70 |         /// Internal representation of a scheme.
/host/spi-builder-workspace/Sources/MongoSwift/Compressor.swift:16:23: warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
 1 | /// Specifies a library to use for network compression.
 2 | public struct Compressor: CustomStringConvertible, Equatable {
   |               `- note: consider making struct 'Compressor' conform to the 'Sendable' protocol
 3 |     internal enum _Compressor: Equatable {
 4 |         case zlib(level: Int32?)
   :
14 |     /// Use zlib for data compression.
15 |     /// - SeeAlso: https://docs.mongodb.com/manual/reference/glossary/#term-zlib
16 |     public static let zlib = Compressor(.zlib(level: nil))
   |                       |- warning: static property 'zlib' is not concurrency-safe because non-'Sendable' type 'Compressor' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'zlib' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
17 |
18 |     /// Use zlib for data compression, with the specified compression level.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:64:27: warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
 64 |         public static let gssAPI = Mechanism(.gssAPI)
    |                           |- warning: static property 'gssAPI' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'gssAPI' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 65 |
 66 |         /// X509 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:68:27: warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 66 |         /// X509 authentication.
 67 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-x.509/#security-auth-x509
 68 |         public static let mongodbX509 = Mechanism(.mongodbX509)
    |                           |- warning: static property 'mongodbX509' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'mongodbX509' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 69 |
 70 |         /// PLAIN authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:72:27: warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 70 |         /// PLAIN authentication.
 71 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-ldap/
 72 |         public static let plain = Mechanism(.plain)
    |                           |- warning: static property 'plain' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'plain' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 73 |
 74 |         /// SCRAM-SHA-1 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:76:27: warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 74 |         /// SCRAM-SHA-1 authentication.
 75 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 76 |         public static let scramSHA1 = Mechanism(.scramSHA1)
    |                           |- warning: static property 'scramSHA1' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA1' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 77 |
 78 |         /// SCRAM-SHA-256 authentication.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCredential.swift:80:27: warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
 59 |
 60 |     /// Possible authentication mechanisms.
 61 |     public struct Mechanism: Decodable, Equatable, CustomStringConvertible {
    |                   `- note: consider making struct 'Mechanism' conform to the 'Sendable' protocol
 62 |         /// GSSAPI authentication.
 63 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/kerberos/
    :
 78 |         /// SCRAM-SHA-256 authentication.
 79 |         /// - SeeAlso: https://docs.mongodb.com/manual/core/security-scram/#authentication-scram
 80 |         public static let scramSHA256 = Mechanism(.scramSHA256)
    |                           |- warning: static property 'scramSHA256' is not concurrency-safe because non-'Sendable' type 'MongoCredential.Mechanism' may have shared mutable state; this is an error in the Swift 6 language mode
    |                           |- note: annotate 'scramSHA256' with '@MainActor' if property should only be accessed from the main actor
    |                           `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 81 |
 82 |         private enum _Mechanism: String {
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoDatabase.swift:302:29: warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
 59 | // sourcery: skipSyncExport
 60 | /// A MongoDB Database.
 61 | public struct MongoDatabase {
    |               `- note: consider making struct 'MongoDatabase' conform to the 'Sendable' protocol
 62 |     /// The client which this database was derived from.
 63 |     internal let _client: MongoClient
    :
300 |     ) -> EventLoopFuture<[MongoCollection<BSONDocument>]> {
301 |         self.listCollectionNames(filter, options: options, session: session).map { collNames in
302 |             collNames.map { self.collection($0) }
    |                             `- warning: capture of 'self' with non-sendable type 'MongoDatabase' in an isolated closure; this is an error in the Swift 6 language mode
303 |         }
304 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoClient.swift:290:45: warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 288 |
 289 |     /// Counter for generating client _ids.
 290 |     internal static var clientIDGenerator = NIOAtomic<Int>.makeAtomic(value: 0)
     |                                             `- warning: 'NIOAtomic' is deprecated: please use ManagedAtomic from https://github.com/apple/swift-atomics instead
 291 |
 292 |     /// A unique identifier for this client. Sets _id to the generator's current value and increments the generator.
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:281:14: warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
279 |         let el = self.eventLoop
280 |         let wrappedCursor = self.wrappedCursor
281 |         Task {
    |              `- warning: passing closure as a 'sending' parameter risks causing data races between code in the current task and concurrent execution of the closure; this is an error in the Swift 6 language mode
282 |             try await client.operationExecutor.execute(on: el) {
    |                       `- note: closure captures non-Sendable 'client'
283 |                 wrappedCursor.kill()
    |                 `- note: closure captures non-Sendable 'wrappedCursor'
284 |             }
285 |         }
[560/586] Wrapping AST for MongoSwift for debugging
[562/586] Compiling TestsCommon Failpoint.swift
[563/586] Compiling MongoSwiftSync MongoCursor.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCursor.swift:68:48: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 10 |  * It is safe to `kill(...)` a `MongoCursor` from another thread while it is blocked waiting on results, however.
 11 |  */
 12 | public class MongoCursor<T: Codable>: CursorProtocol {
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 13 |     private let asyncCursor: MongoSwift.MongoCursor<T>
 14 |     private let client: MongoClient
    :
 66 |     public func next() -> Result<T, Error>? {
 67 |         do {
 68 |             return try self.asyncCursor.next().wait().map { .success($0) }
    |                                                `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 69 |         } catch {
 70 |             return .failure(error)
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCursor.swift:95:51: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 10 |  * It is safe to `kill(...)` a `MongoCursor` from another thread while it is blocked waiting on results, however.
 11 |  */
 12 | public class MongoCursor<T: Codable>: CursorProtocol {
    |                          `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
 13 |     private let asyncCursor: MongoSwift.MongoCursor<T>
 14 |     private let client: MongoClient
    :
 93 |     public func tryNext() -> Result<T, Error>? {
 94 |         do {
 95 |             return try self.asyncCursor.tryNext().wait().map { .success($0) }
    |                                                   `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 96 |         } catch {
 97 |             return .failure(error)
[564/586] Compiling MongoSwiftSync MongoCollection.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:100:10: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 98 |             session: session?.asyncSession
 99 |         )
100 |         .wait()
    |          `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
101 |         return MongoCollection(client: self.client, asyncCollection: newAsyncColl)
102 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |               `- note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | /// A MongoDB collection.
[565/587] Compiling TestsCommon SpecTestUtils.swift
[566/587] Compiling TestsCommon MongoError+Equatable.swift
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:4:1: warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 2 | import MongoSwift
 3 |
 4 | extension MongoError.ConnectionError: Equatable {
   | |- warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |     public static func == (lhs: MongoError.ConnectionError, rhs: MongoError.ConnectionError) -> Bool {
 6 |         lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:10:1: warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 8 | }
 9 |
10 | extension MongoError.CommandError: Equatable {
   | |- warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public static func == (lhs: MongoError.CommandError, rhs: MongoError.CommandError) -> Bool {
12 |         lhs.code == rhs.code && lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:16:1: warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
14 | }
15 |
16 | extension MongoError.WriteError: Equatable {
   | |- warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
17 |     public static func == (lhs: MongoError.WriteError, rhs: MongoError.WriteError) -> Bool {
18 |         lhs.writeFailure == rhs.writeFailure &&
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:24:1: warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
22 | }
23 |
24 | extension MongoError.BulkWriteError: Equatable {
   | |- warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
25 |     public static func == (lhs: MongoError.BulkWriteError, rhs: MongoError.BulkWriteError) -> Bool {
26 |         let cmp = { (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) in
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:37:1: warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
35 | }
36 |
37 | extension BulkWriteResult: Equatable {
   | |- warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
38 |     public static func == (lhs: BulkWriteResult, rhs: BulkWriteResult) -> Bool {
39 |         lhs.insertedIDs == rhs.insertedIDs
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:48:1: warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
46 | }
47 |
48 | extension MongoError.WriteFailure: Equatable {
   | |- warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
49 |     public static func == (lhs: MongoError.WriteFailure, rhs: MongoError.WriteFailure) -> Bool {
50 |         lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:54:1: warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
52 | }
53 |
54 | extension MongoError.BulkWriteFailure: Equatable {
   | |- warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
55 |     public static func == (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) -> Bool {
56 |         lhs.code == rhs.code && lhs.index == rhs.index
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:60:1: warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
58 | }
59 |
60 | extension MongoError.WriteConcernFailure: Equatable {
   | |- warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
61 |     public static func == (lhs: MongoError.WriteConcernFailure, rhs: MongoError.WriteConcernFailure) -> Bool {
62 |         lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:66:1: warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
64 | }
65 |
66 | extension DecodingError: Equatable {
   | |- warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
67 |     public static func == (lhs: DecodingError, rhs: DecodingError) -> Bool {
68 |         switch (lhs, rhs) {
[567/587] Compiling TestsCommon ServerVersion.swift
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:5:23: warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
   |                       |- warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongodFailCommandSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:6:23: warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
   |                       |- warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongosFailCommandSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
 8 |
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:7:23: warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
   |                       |- warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongodBlockTimeSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     let major: Int
[568/587] Compiling MongoSwiftSync CursorCommon.swift
[569/587] Compiling MongoSwiftSync Exports.swift
[570/587] Compiling MongoSwiftSync ChangeStream.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:69:66: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  3 | /// A MongoDB change stream.
  4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
  5 | public class ChangeStream<T: Codable>: CursorProtocol {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  6 |     private let asyncChangeStream: MongoSwift.ChangeStream<T>
  7 |
    :
 67 |     public func next() -> Result<T, Error>? {
 68 |         do {
 69 |             guard let result = try self.asyncChangeStream.next().wait() else {
    |                                                                  `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 70 |                 return nil
 71 |             }
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:99:69: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  3 | /// A MongoDB change stream.
  4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
  5 | public class ChangeStream<T: Codable>: CursorProtocol {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  6 |     private let asyncChangeStream: MongoSwift.ChangeStream<T>
  7 |
    :
 97 |     public func tryNext() -> Result<T, Error>? {
 98 |         do {
 99 |             guard let result = try self.asyncChangeStream.tryNext().wait() else {
    |                                                                     `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 |                 return nil
101 |             }
[571/587] Compiling MongoSwiftSync ClientSession.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:69:66: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  3 | /// A MongoDB change stream.
  4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
  5 | public class ChangeStream<T: Codable>: CursorProtocol {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  6 |     private let asyncChangeStream: MongoSwift.ChangeStream<T>
  7 |
    :
 67 |     public func next() -> Result<T, Error>? {
 68 |         do {
 69 |             guard let result = try self.asyncChangeStream.next().wait() else {
    |                                                                  `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 70 |                 return nil
 71 |             }
/host/spi-builder-workspace/Sources/MongoSwiftSync/ChangeStream.swift:99:69: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
  3 | /// A MongoDB change stream.
  4 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
  5 | public class ChangeStream<T: Codable>: CursorProtocol {
    |                           `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  6 |     private let asyncChangeStream: MongoSwift.ChangeStream<T>
  7 |
    :
 97 |     public func tryNext() -> Result<T, Error>? {
 98 |         do {
 99 |             guard let result = try self.asyncChangeStream.tryNext().wait() else {
    |                                                                     `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 |                 return nil
101 |             }
[572/587] Compiling MongoSwiftSync MongoCollection+FindAndModify.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:28:103: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 26 |         session: ClientSession? = nil
 27 |     ) throws -> CollectionType? {
 28 |         try self.asyncColl.findOneAndDelete(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:64:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 62 |             session: session?.asyncSession
 63 |         )
 64 |         .wait()
    |          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:99:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 97 |             session: session?.asyncSession
 98 |         )
 99 |         .wait()
    |          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 |     }
101 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:134:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
132 |             session: session?.asyncSession
133 |         )
134 |         .wait()
    |          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 |     }
136 | }
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:195:108: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |         session: ClientSession? = nil
194 |     ) throws -> MongoCursor<IndexModel> {
195 |         let asyncCursor = try self.asyncColl.listIndexes(options: options, session: session?.asyncSession).wait()
    |                                                                                                            `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
196 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
197 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | /// An extension of `MongoCollection` encapsulating index management capabilities.
[573/587] Compiling MongoSwiftSync MongoCollection+Indexes.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:28:103: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 26 |         session: ClientSession? = nil
 27 |     ) throws -> CollectionType? {
 28 |         try self.asyncColl.findOneAndDelete(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                       `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 29 |     }
 30 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:64:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 62 |             session: session?.asyncSession
 63 |         )
 64 |         .wait()
    |          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 65 |     }
 66 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:99:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 97 |             session: session?.asyncSession
 98 |         )
 99 |         .wait()
    |          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 |     }
101 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+FindAndModify.swift:134:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
132 |             session: session?.asyncSession
133 |         )
134 |         .wait()
    |          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 |     }
136 | }
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:195:108: warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
193 |         session: ClientSession? = nil
194 |     ) throws -> MongoCursor<IndexModel> {
195 |         let asyncCursor = try self.asyncColl.listIndexes(options: options, session: session?.asyncSession).wait()
    |                                                                                                            `- warning: type 'MongoCursor<IndexModel>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
196 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
197 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Indexes.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | /// An extension of `MongoCollection` encapsulating index management capabilities.
[574/587] Compiling MongoSwiftSync MongoCollection+Read.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:24:109: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 22 |         session: ClientSession? = nil
 23 |     ) throws -> MongoCursor<CollectionType> {
 24 |         let asyncCursor = try self.asyncColl.find(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                             `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 25 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
 26 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | extension MongoCollection {
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:48:94: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 46 |         session: ClientSession? = nil
 47 |     ) throws -> T? {
 48 |         try self.asyncColl.findOne(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                              `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 49 |     }
 50 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:102:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 |             session: session?.asyncSession,
101 |             withOutputType: OutputType.self
102 |         ).wait()
    |           `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
104 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:168:10: warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
166 |             session: session?.asyncSession
167 |         )
168 |         .wait()
    |          `- warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
169 |     }
170 | }
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSON.swift:6:13: note: enum 'BSON' does not conform to the 'Sendable' protocol
  4 | /// Enum representing a BSON value.
  5 | /// - SeeAlso: bsonspec.org
  6 | public enum BSON {
    |             `- note: enum 'BSON' does not conform to the 'Sendable' protocol
  7 |     /// A BSON document.
  8 |     case document(BSONDocument)
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:30:95: warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 28 |         session: ClientSession? = nil
 29 |     ) throws -> InsertOneResult? {
 30 |         try self.asyncColl.insertOne(value, options: options, session: session?.asyncSession).wait()
    |                                                                                               `- warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 31 |     }
 32 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:495:15: note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
493 |
494 | /// The result of an `insertOne` command on a `MongoCollection`.
495 | public struct InsertOneResult: Codable {
    |               `- note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
496 |     /// The identifier that was inserted. If the document doesn't have an identifier, this value
497 |     /// will be generated and added to the document before insertion.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | /// An extension of `MongoCollection` encapsulating write operations.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:57:97: warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 55 |         session: ClientSession? = nil
 56 |     ) throws -> InsertManyResult? {
 57 |         try self.asyncColl.insertMany(values, options: options, session: session?.asyncSession).wait()
    |                                                                                                 `- warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 58 |     }
 59 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:516:15: note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
514 |
515 | /// The result of a multi-document insert operation on a `MongoCollection`.
516 | public struct InsertManyResult: Codable {
    |               `- note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
517 |     /// Number of documents inserted.
518 |     public let insertedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:92:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 90 |             session: session?.asyncSession
 91 |         )
 92 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 93 |     }
 94 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:127:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
125 |             session: session?.asyncSession
126 |         )
127 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 |     }
129 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:162:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 |             session: session?.asyncSession
161 |         )
162 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
163 |     }
164 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:197:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
195 |             session: session?.asyncSession
196 |         )
197 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
198 |     }
199 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:232:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
230 |             session: session?.asyncSession
231 |         )
232 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
233 |     }
234 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:259:96: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 |         session: ClientSession? = nil
258 |     ) throws -> DeleteResult? {
259 |         try self.asyncColl.deleteOne(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |     }
261 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:538:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
536 |
537 | /// The result of a `delete` command on a `MongoCollection`.
538 | public struct DeleteResult: Codable {
    |               `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
539 |     /// The number of documents that were deleted.
540 |     public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:286:97: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
284 |         session: ClientSession? = nil
285 |     ) throws -> DeleteResult? {
286 |         try self.asyncColl.deleteMany(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                 `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
287 |     }
288 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:538:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
536 |
537 | /// The result of a `delete` command on a `MongoCollection`.
538 | public struct DeleteResult: Codable {
    |               `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
539 |     /// The number of documents that were deleted.
540 |     public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:312:98: warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 |         session: ClientSession? = nil
311 |     ) throws -> BulkWriteResult? {
312 |         try self.asyncColl.bulkWrite(requests, options: options, session: session?.asyncSession).wait()
    |                                                                                                  `- warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
313 |     }
314 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+BulkWrite.swift:378:15: note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
376 |
377 | /// The result of a bulk write operation on a `MongoCollection`.
378 | public struct BulkWriteResult: Codable {
    |               `- note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
379 |     /// Number of documents deleted.
380 |     public let deletedCount: Int
[575/587] Compiling MongoSwiftSync MongoCollection+Write.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:24:109: warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 22 |         session: ClientSession? = nil
 23 |     ) throws -> MongoCursor<CollectionType> {
 24 |         let asyncCursor = try self.asyncColl.find(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                             `- warning: type 'MongoCursor<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 25 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
 26 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | extension MongoCollection {
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:48:94: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 46 |         session: ClientSession? = nil
 47 |     ) throws -> T? {
 48 |         try self.asyncColl.findOne(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                              `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 49 |     }
 50 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection.swift:4:31: note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  2 |
  3 | /// A MongoDB collection.
  4 | public struct MongoCollection<T: Codable> {
    |                               `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
  5 |     /// Encoder used by this collection for BSON conversions. (e.g. converting `CollectionType`s, indexes, and options
  6 |     /// to documents).
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:102:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
100 |             session: session?.asyncSession,
101 |             withOutputType: OutputType.self
102 |         ).wait()
    |           `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
103 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
104 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Read.swift:168:10: warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
166 |             session: session?.asyncSession
167 |         )
168 |         .wait()
    |          `- warning: type 'BSON' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
169 |     }
170 | }
/host/spi-builder-workspace/.build/checkouts/swift-bson/Sources/SwiftBSON/BSON.swift:6:13: note: enum 'BSON' does not conform to the 'Sendable' protocol
  4 | /// Enum representing a BSON value.
  5 | /// - SeeAlso: bsonspec.org
  6 | public enum BSON {
    |             `- note: enum 'BSON' does not conform to the 'Sendable' protocol
  7 |     /// A BSON document.
  8 |     case document(BSONDocument)
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:30:95: warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 28 |         session: ClientSession? = nil
 29 |     ) throws -> InsertOneResult? {
 30 |         try self.asyncColl.insertOne(value, options: options, session: session?.asyncSession).wait()
    |                                                                                               `- warning: type 'InsertOneResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 31 |     }
 32 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:495:15: note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
493 |
494 | /// The result of an `insertOne` command on a `MongoCollection`.
495 | public struct InsertOneResult: Codable {
    |               `- note: struct 'InsertOneResult' does not conform to the 'Sendable' protocol
496 |     /// The identifier that was inserted. If the document doesn't have an identifier, this value
497 |     /// will be generated and added to the document before insertion.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | /// An extension of `MongoCollection` encapsulating write operations.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:57:97: warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 55 |         session: ClientSession? = nil
 56 |     ) throws -> InsertManyResult? {
 57 |         try self.asyncColl.insertMany(values, options: options, session: session?.asyncSession).wait()
    |                                                                                                 `- warning: type 'InsertManyResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 58 |     }
 59 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:516:15: note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
514 |
515 | /// The result of a multi-document insert operation on a `MongoCollection`.
516 | public struct InsertManyResult: Codable {
    |               `- note: struct 'InsertManyResult' does not conform to the 'Sendable' protocol
517 |     /// Number of documents inserted.
518 |     public let insertedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:92:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 90 |             session: session?.asyncSession
 91 |         )
 92 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 93 |     }
 94 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:127:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
125 |             session: session?.asyncSession
126 |         )
127 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
128 |     }
129 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:162:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 |             session: session?.asyncSession
161 |         )
162 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
163 |     }
164 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:197:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
195 |             session: session?.asyncSession
196 |         )
197 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
198 |     }
199 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:232:10: warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
230 |             session: session?.asyncSession
231 |         )
232 |         .wait()
    |          `- warning: type 'UpdateResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
233 |     }
234 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:551:15: note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
549 |
550 | /// The result of an `update` operation on a `MongoCollection`.
551 | public struct UpdateResult: Codable {
    |               `- note: struct 'UpdateResult' does not conform to the 'Sendable' protocol
552 |     /// The number of documents that matched the filter.
553 |     public let matchedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:259:96: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
257 |         session: ClientSession? = nil
258 |     ) throws -> DeleteResult? {
259 |         try self.asyncColl.deleteOne(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
260 |     }
261 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:538:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
536 |
537 | /// The result of a `delete` command on a `MongoCollection`.
538 | public struct DeleteResult: Codable {
    |               `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
539 |     /// The number of documents that were deleted.
540 |     public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:286:97: warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
284 |         session: ClientSession? = nil
285 |     ) throws -> DeleteResult? {
286 |         try self.asyncColl.deleteMany(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                 `- warning: type 'DeleteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
287 |     }
288 |
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+Write.swift:538:15: note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
536 |
537 | /// The result of a `delete` command on a `MongoCollection`.
538 | public struct DeleteResult: Codable {
    |               `- note: struct 'DeleteResult' does not conform to the 'Sendable' protocol
539 |     /// The number of documents that were deleted.
540 |     public let deletedCount: Int
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+Write.swift:312:98: warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
310 |         session: ClientSession? = nil
311 |     ) throws -> BulkWriteResult? {
312 |         try self.asyncColl.bulkWrite(requests, options: options, session: session?.asyncSession).wait()
    |                                                                                                  `- warning: type 'BulkWriteResult' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
313 |     }
314 | }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection+BulkWrite.swift:378:15: note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
376 |
377 | /// The result of a bulk write operation on a `MongoCollection`.
378 | public struct BulkWriteResult: Codable {
    |               `- note: struct 'BulkWriteResult' does not conform to the 'Sendable' protocol
379 |     /// Number of documents deleted.
380 |     public let deletedCount: Int
[576/587] Emitting module MongoSwiftSync
[577/587] Compiling MongoSwiftSync MongoClient.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:154:102: warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
152 |         session: ClientSession? = nil
153 |     ) throws -> [DatabaseSpecification] {
154 |         try self.asyncClient.listDatabases(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                      `- warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
155 |     }
156 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/ListDatabasesOperation.swift:4:15: note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
  2 |
  3 | /// A struct modeling the information returned from the `listDatabases` command about a single database.
  4 | public struct DatabaseSpecification: Codable {
    |               `- note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
  5 |     /// The name of the database.
  6 |     public let name: String
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 | import NIOPosix
  3 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:336:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
334 |             session: session?.asyncSession,
335 |             withEventType: EventType.self
336 |         ).wait()
    |           `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |         return ChangeStream(wrapping: asyncStream, client: self)
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 61 | /// A MongoDB change stream.
 62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
 63 | public class ChangeStream<T: Codable>: CursorProtocol {
    |              `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 64 |     public typealias Element = T
 65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:114:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
112 |             session: session?.asyncSession,
113 |             withEventType: EventType.self
114 |         ).wait()
    |           `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
115 |         return ChangeStream(wrapping: asyncStream, client: self.client)
116 |     }
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 61 | /// A MongoDB change stream.
 62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
 63 | public class ChangeStream<T: Codable>: CursorProtocol {
    |              `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 64 |     public typealias Element = T
 65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | extension MongoCollection {
[578/587] Compiling MongoSwiftSync MongoCollection+ChangeStreams.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:154:102: warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
152 |         session: ClientSession? = nil
153 |     ) throws -> [DatabaseSpecification] {
154 |         try self.asyncClient.listDatabases(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                      `- warning: type 'DatabaseSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
155 |     }
156 |
/host/spi-builder-workspace/Sources/MongoSwift/Operations/ListDatabasesOperation.swift:4:15: note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
  2 |
  3 | /// A struct modeling the information returned from the `listDatabases` command about a single database.
  4 | public struct DatabaseSpecification: Codable {
    |               `- note: struct 'DatabaseSpecification' does not conform to the 'Sendable' protocol
  5 |     /// The name of the database.
  6 |     public let name: String
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 | import NIOPosix
  3 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoClient.swift:336:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
334 |             session: session?.asyncSession,
335 |             withEventType: EventType.self
336 |         ).wait()
    |           `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
337 |
338 |         return ChangeStream(wrapping: asyncStream, client: self)
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 61 | /// A MongoDB change stream.
 62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
 63 | public class ChangeStream<T: Codable>: CursorProtocol {
    |              `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 64 |     public typealias Element = T
 65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:114:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
112 |             session: session?.asyncSession,
113 |             withEventType: EventType.self
114 |         ).wait()
    |           `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
115 |         return ChangeStream(wrapping: asyncStream, client: self.client)
116 |     }
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 61 | /// A MongoDB change stream.
 62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
 63 | public class ChangeStream<T: Codable>: CursorProtocol {
    |              `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 64 |     public typealias Element = T
 65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoCollection+ChangeStreams.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | extension MongoCollection {
[579/587] Compiling TestsCommon CommonTestUtils.swift
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:269:23: warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
267 |     private let auth: Bool?
268 |
269 |     public static let failCommandSupport: [TestRequirement] = [
    |                       |- warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'failCommandSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 |         TestRequirement(
271 |             minServerVersion: ServerVersion.mongodFailCommandSupport,
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:5:23: warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
   |                       |- warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongodFailCommandSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:6:23: warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
   |                       |- warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongosFailCommandSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
 8 |
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:280:23: warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
278 |     ]
279 |
280 |     public static let blockTimeSupport: [TestRequirement] = [
    |                       |- warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'blockTimeSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
281 |         TestRequirement(
282 |             minServerVersion: ServerVersion.mongodBlockTimeSupport
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:7:23: warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
   |                       |- warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongodBlockTimeSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     let major: Int
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:286:23: warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
284 |     ]
285 |
286 |     public static let changeStreamOnCollectionSupport = TestRequirement(
    |                       |- warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'changeStreamOnCollectionSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 |         acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
288 |     )
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:290:23: warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
288 |     )
289 |
290 |     public static let changeStreamOnDBOrClientSupport = TestRequirement(
    |                       |- warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'changeStreamOnDBOrClientSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
291 |         minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
292 |         acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:295:23: warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
293 |     )
294 |
295 |     public static let transactionsSupport = [
    |                       |- warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'transactionsSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |         TestRequirement(
297 |             minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:447:53: error: 'Predicate' is ambiguous for type lookup in this context
445 | // Adds a custom "cleanEqual" predicate that compares two JSON strings for equality after normalizing
446 | // them with the "clean" function
447 | public func cleanEqual(_ expectedValue: String?) -> Predicate<String> {
    |                                                     `- error: 'Predicate' is ambiguous for type lookup in this context
448 |     Predicate.define("cleanEqual <\(stringify(expectedValue))>") { actualExpression, msg in
449 |         let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
 18 | /// predicates are simple wrappers around closures to provide static type information and
 19 | /// allow composition and wrapping of existing behaviors.
 20 | public struct Predicate<T> {
    |               `- note: found this candidate
 21 |     fileprivate var matcher: (Expression<T>) throws -> PredicateResult
 22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
  |               `- note: found this candidate
3 |     public let expression: any StandardPredicateExpression<Bool>
4 |     public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:466:69: error: 'Predicate' is ambiguous for type lookup in this context
464 | // Adds a custom "sortedEqual" predicate that compares two `Document`s and returns true if they
465 | // have the same key/value pairs in them
466 | public func sortedEqual<T: SortedEquatable>(_ expectedValue: T?) -> Predicate<T> {
    |                                                                     `- error: 'Predicate' is ambiguous for type lookup in this context
467 |     Predicate.define("sortedEqual <\(stringify(expectedValue))>") { actualExpression, msg in
468 |         let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
 18 | /// predicates are simple wrappers around closures to provide static type information and
 19 | /// allow composition and wrapping of existing behaviors.
 20 | public struct Predicate<T> {
    |               `- note: found this candidate
 21 |     fileprivate var matcher: (Expression<T>) throws -> PredicateResult
 22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
  |               `- note: found this candidate
3 |     public let expression: any StandardPredicateExpression<Bool>
4 |     public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:558:1: warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
556 |
557 | /// Makes `ServerAddress` `Decodable` for the sake of constructing it from spec test files.
558 | extension ServerAddress: Decodable {
    | |- warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
559 |     public init(from decoder: Decoder) throws {
560 |         let container = try decoder.singleValueContainer()
[580/587] Compiling MongoSwiftSync MongoDatabase.swift
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:144:10: warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
142 |             session: session?.asyncSession
143 |         )
144 |         .wait()
    |          `- warning: type 'MongoCollection<T>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 |         return MongoCollection(client: self.client, asyncCollection: asyncColl)
146 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCollection.swift:17:15: note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
 15 | // sourcery: skipSyncExport
 16 | /// A MongoDB collection.
 17 | public struct MongoCollection<T: Codable> {
    |               `- note: generic struct 'MongoCollection' does not conform to the 'Sendable' protocol
 18 |     /// The client which this collection was derived from.
 19 |     internal let _client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:1:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  1 | import MongoSwift
    | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
  2 |
  3 | /// A MongoDB Database.
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:168:104: warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
166 |     ) throws -> MongoCursor<CollectionSpecification> {
167 |         let asyncCursor =
168 |             try self.asyncDB.listCollections(filter, options: options, session: session?.asyncSession).wait()
    |                                                                                                        `- warning: type 'MongoCursor<CollectionSpecification>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
169 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
170 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:244:96: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
242 |         session: ClientSession? = nil
243 |     ) throws -> BSONDocument {
244 |         try self.asyncDB.runCommand(command, options: options, session: session?.asyncSession).wait()
    |                                                                                                `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
245 |     }
246 |
/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/MongoSwiftSync/MongoDatabase.swift:361:11: warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
359 |             session: session?.asyncSession,
360 |             withEventType: EventType.self
361 |         ).wait()
    |           `- warning: type 'ChangeStream<EventType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
362 |         return ChangeStream(wrapping: asyncStream, client: self.client)
363 |     }
/host/spi-builder-workspace/Sources/MongoSwift/ChangeStream.swift:63:14: note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 61 | /// A MongoDB change stream.
 62 | /// - SeeAlso: https://docs.mongodb.com/manual/changeStreams/
 63 | public class ChangeStream<T: Codable>: CursorProtocol {
    |              `- note: generic class 'ChangeStream' does not conform to the 'Sendable' protocol
 64 |     public typealias Element = T
 65 |
/host/spi-builder-workspace/Sources/MongoSwiftSync/MongoDatabase.swift:429:11: warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
427 |             session: session?.asyncSession,
428 |             withOutputType: withOutputType
429 |         ).wait()
    |           `- warning: type 'MongoCursor<OutputType>' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
430 |         return MongoCursor(wrapping: asyncCursor, client: self.client)
431 |     }
/host/spi-builder-workspace/Sources/MongoSwift/MongoCursor.swift:35:14: note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 33 | // sourcery: skipSyncExport
 34 | /// A MongoDB cursor.
 35 | public class MongoCursor<T: Codable>: CursorProtocol {
    |              `- note: generic class 'MongoCursor' does not conform to the 'Sendable' protocol
 36 |     /// The client this cursor descended from.
 37 |     private let client: MongoClient
[582/588] Compiling TestsCommon APMUtils.swift
/host/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:11:23: warning: 'Lock' is deprecated: renamed to 'NIOLock'
  9 |     private var events: [CommandEvent]
 10 |     // Lock over monitoring and events.
 11 |     private var lock: Lock
    |                       |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                       `- note: use 'NIOLock' instead
 12 |
 13 |     public init() {
/host/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:16:21: warning: 'Lock' is deprecated: renamed to 'NIOLock'
 14 |         self.events = []
 15 |         self.monitoring = false
 16 |         self.lock = Lock()
    |                     |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                     `- note: use 'NIOLock' instead
 17 |     }
 18 |
error: emit-module command failed with exit code 1 (use -v to see invocation)
[583/588] Compiling TestsCommon CodableExtensions.swift
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:27:1: warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 25 | }
 26 |
 27 | extension MongoDatabaseOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 28 |     internal typealias CodingKeysType = CodingKeys
 29 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:45:1: warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 43 | }
 44 |
 45 | extension MongoCollectionOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 46 |     internal typealias CodingKeysType = CodingKeys
 47 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:63:1: warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 61 | }
 62 |
 63 | extension ClientSessionOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 64 |     internal typealias CodingKeysType = CodingKeys
 65 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:88:1: warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 86 | }
 87 |
 88 | extension TransactionOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 89 |     internal typealias CodingKeysType = CodingKeys
 90 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:112:1: warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
110 | }
111 |
112 | extension MongoClientOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
113 |     internal typealias CodingKeysType = CodingKeys
114 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:144:1: warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
142 | }
143 |
144 | extension ReadPreference: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
145 |     internal typealias CodingKeysType = CodingKeys
146 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:171:1: warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
169 | }
170 |
171 | extension ReadPreference.Mode: Decodable {
    | |- warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
172 |     public init(from decoder: Decoder) throws {
173 |         let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:187:1: warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
185 | }
186 |
187 | extension TopologyDescription: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
188 |     internal typealias CodingKeysType = CodingKeys
189 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:205:1: warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
203 | }
204 |
205 | extension ServerDescription: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
206 |     internal typealias CodingKeysType = CodingKeys
207 |
[584/588] Emitting module TestsCommon
/host/spi-builder-workspace/Sources/TestsCommon/APMUtils.swift:11:23: warning: 'Lock' is deprecated: renamed to 'NIOLock'
  9 |     private var events: [CommandEvent]
 10 |     // Lock over monitoring and events.
 11 |     private var lock: Lock
    |                       |- warning: 'Lock' is deprecated: renamed to 'NIOLock'
    |                       `- note: use 'NIOLock' instead
 12 |
 13 |     public init() {
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:27:1: warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 25 | }
 26 |
 27 | extension MongoDatabaseOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'MongoDatabaseOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 28 |     internal typealias CodingKeysType = CodingKeys
 29 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:45:1: warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 43 | }
 44 |
 45 | extension MongoCollectionOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'MongoCollectionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 46 |     internal typealias CodingKeysType = CodingKeys
 47 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:63:1: warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 61 | }
 62 |
 63 | extension ClientSessionOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'ClientSessionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 64 |     internal typealias CodingKeysType = CodingKeys
 65 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:88:1: warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 86 | }
 87 |
 88 | extension TransactionOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'TransactionOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
 89 |     internal typealias CodingKeysType = CodingKeys
 90 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:112:1: warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
110 | }
111 |
112 | extension MongoClientOptions: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'MongoClientOptions' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
113 |     internal typealias CodingKeysType = CodingKeys
114 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:144:1: warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
142 | }
143 |
144 | extension ReadPreference: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'ReadPreference' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
145 |     internal typealias CodingKeysType = CodingKeys
146 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:171:1: warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
169 | }
170 |
171 | extension ReadPreference.Mode: Decodable {
    | |- warning: extension declares a conformance of imported type 'Mode' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
172 |     public init(from decoder: Decoder) throws {
173 |         let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:187:1: warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
185 | }
186 |
187 | extension TopologyDescription: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'TopologyDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
188 |     internal typealias CodingKeysType = CodingKeys
189 |
/host/spi-builder-workspace/Sources/TestsCommon/CodableExtensions.swift:205:1: warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
203 | }
204 |
205 | extension ServerDescription: StrictDecodable {
    | |- warning: extension declares a conformance of imported type 'ServerDescription' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
206 |     internal typealias CodingKeysType = CodingKeys
207 |
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:269:23: warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
267 |     private let auth: Bool?
268 |
269 |     public static let failCommandSupport: [TestRequirement] = [
    |                       |- warning: static property 'failCommandSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'failCommandSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
270 |         TestRequirement(
271 |             minServerVersion: ServerVersion.mongodFailCommandSupport,
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:5:23: warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
   |                       |- warning: static property 'mongodFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongodFailCommandSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:6:23: warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
   |                       |- warning: static property 'mongosFailCommandSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongosFailCommandSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
 8 |
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:280:23: warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
278 |     ]
279 |
280 |     public static let blockTimeSupport: [TestRequirement] = [
    |                       |- warning: static property 'blockTimeSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'blockTimeSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
281 |         TestRequirement(
282 |             minServerVersion: ServerVersion.mongodBlockTimeSupport
/host/spi-builder-workspace/Sources/TestsCommon/ServerVersion.swift:7:23: warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
 2 |
 3 | /// A struct representing a server version.
 4 | public struct ServerVersion: Comparable, Decodable, CustomStringConvertible {
   |               `- note: consider making struct 'ServerVersion' conform to the 'Sendable' protocol
 5 |     public static let mongodFailCommandSupport = ServerVersion(major: 4, minor: 0)
 6 |     public static let mongosFailCommandSupport = ServerVersion(major: 4, minor: 1, patch: 5)
 7 |     public static let mongodBlockTimeSupport = ServerVersion(major: 4, minor: 2, patch: 9)
   |                       |- warning: static property 'mongodBlockTimeSupport' is not concurrency-safe because non-'Sendable' type 'ServerVersion' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'mongodBlockTimeSupport' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     let major: Int
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:286:23: warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
284 |     ]
285 |
286 |     public static let changeStreamOnCollectionSupport = TestRequirement(
    |                       |- warning: static property 'changeStreamOnCollectionSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'changeStreamOnCollectionSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
287 |         acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
288 |     )
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:290:23: warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
288 |     )
289 |
290 |     public static let changeStreamOnDBOrClientSupport = TestRequirement(
    |                       |- warning: static property 'changeStreamOnDBOrClientSupport' is not concurrency-safe because non-'Sendable' type 'TestRequirement' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'changeStreamOnDBOrClientSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
291 |         minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
292 |         acceptableTopologies: [.replicaSet, .sharded, .shardedReplicaSet, .loadBalanced]
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:295:23: warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
237 |
238 | /// Struct representing conditions that a deployment must meet in order for a test file to be run.
239 | public struct TestRequirement: Decodable {
    |               `- note: consider making struct 'TestRequirement' conform to the 'Sendable' protocol
240 |     public enum ServerlessRequirement: String, Decodable {
241 |         case require
    :
293 |     )
294 |
295 |     public static let transactionsSupport = [
    |                       |- warning: static property 'transactionsSupport' is not concurrency-safe because non-'Sendable' type '[TestRequirement]' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'transactionsSupport' with '@MainActor' if property should only be accessed from the main actor
    |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
296 |         TestRequirement(
297 |             minServerVersion: ServerVersion(major: 4, minor: 0, patch: 0),
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:447:53: error: 'Predicate' is ambiguous for type lookup in this context
445 | // Adds a custom "cleanEqual" predicate that compares two JSON strings for equality after normalizing
446 | // them with the "clean" function
447 | public func cleanEqual(_ expectedValue: String?) -> Predicate<String> {
    |                                                     `- error: 'Predicate' is ambiguous for type lookup in this context
448 |     Predicate.define("cleanEqual <\(stringify(expectedValue))>") { actualExpression, msg in
449 |         let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
 18 | /// predicates are simple wrappers around closures to provide static type information and
 19 | /// allow composition and wrapping of existing behaviors.
 20 | public struct Predicate<T> {
    |               `- note: found this candidate
 21 |     fileprivate var matcher: (Expression<T>) throws -> PredicateResult
 22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
  |               `- note: found this candidate
3 |     public let expression: any StandardPredicateExpression<Bool>
4 |     public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:466:69: error: 'Predicate' is ambiguous for type lookup in this context
464 | // Adds a custom "sortedEqual" predicate that compares two `Document`s and returns true if they
465 | // have the same key/value pairs in them
466 | public func sortedEqual<T: SortedEquatable>(_ expectedValue: T?) -> Predicate<T> {
    |                                                                     `- error: 'Predicate' is ambiguous for type lookup in this context
467 |     Predicate.define("sortedEqual <\(stringify(expectedValue))>") { actualExpression, msg in
468 |         let actualValue = try actualExpression.evaluate()
/host/spi-builder-workspace/.build/checkouts/Nimble/Sources/Nimble/Matchers/Predicate.swift:20:15: note: found this candidate
 18 | /// predicates are simple wrappers around closures to provide static type information and
 19 | /// allow composition and wrapping of existing behaviors.
 20 | public struct Predicate<T> {
    |               `- note: found this candidate
 21 |     fileprivate var matcher: (Expression<T>) throws -> PredicateResult
 22 |
FoundationEssentials.Predicate:2:15: note: found this candidate
1 | @available(macOS 14, iOS 17, tvOS 17, watchOS 10, *)
2 | public struct Predicate<each Input> : Sendable {
  |               `- note: found this candidate
3 |     public let expression: any StandardPredicateExpression<Bool>
4 |     public let variable: (repeat PredicateExpressions.Variable<each Input>)
/host/spi-builder-workspace/Sources/TestsCommon/CommonTestUtils.swift:558:1: warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
556 |
557 | /// Makes `ServerAddress` `Decodable` for the sake of constructing it from spec test files.
558 | extension ServerAddress: Decodable {
    | |- warning: extension declares a conformance of imported type 'ServerAddress' to imported protocol 'Decodable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
    | `- note: add '@retroactive' to silence this warning
559 |     public init(from decoder: Decoder) throws {
560 |         let container = try decoder.singleValueContainer()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:4:1: warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 2 | import MongoSwift
 3 |
 4 | extension MongoError.ConnectionError: Equatable {
   | |- warning: extension declares a conformance of imported type 'ConnectionError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
 5 |     public static func == (lhs: MongoError.ConnectionError, rhs: MongoError.ConnectionError) -> Bool {
 6 |         lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:10:1: warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
 8 | }
 9 |
10 | extension MongoError.CommandError: Equatable {
   | |- warning: extension declares a conformance of imported type 'CommandError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
11 |     public static func == (lhs: MongoError.CommandError, rhs: MongoError.CommandError) -> Bool {
12 |         lhs.code == rhs.code && lhs.errorLabels?.sorted() == rhs.errorLabels?.sorted()
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:16:1: warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
14 | }
15 |
16 | extension MongoError.WriteError: Equatable {
   | |- warning: extension declares a conformance of imported type 'WriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
17 |     public static func == (lhs: MongoError.WriteError, rhs: MongoError.WriteError) -> Bool {
18 |         lhs.writeFailure == rhs.writeFailure &&
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:24:1: warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
22 | }
23 |
24 | extension MongoError.BulkWriteError: Equatable {
   | |- warning: extension declares a conformance of imported type 'BulkWriteError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
25 |     public static func == (lhs: MongoError.BulkWriteError, rhs: MongoError.BulkWriteError) -> Bool {
26 |         let cmp = { (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) in
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:37:1: warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
35 | }
36 |
37 | extension BulkWriteResult: Equatable {
   | |- warning: extension declares a conformance of imported type 'BulkWriteResult' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
38 |     public static func == (lhs: BulkWriteResult, rhs: BulkWriteResult) -> Bool {
39 |         lhs.insertedIDs == rhs.insertedIDs
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:48:1: warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
46 | }
47 |
48 | extension MongoError.WriteFailure: Equatable {
   | |- warning: extension declares a conformance of imported type 'WriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
49 |     public static func == (lhs: MongoError.WriteFailure, rhs: MongoError.WriteFailure) -> Bool {
50 |         lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:54:1: warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
52 | }
53 |
54 | extension MongoError.BulkWriteFailure: Equatable {
   | |- warning: extension declares a conformance of imported type 'BulkWriteFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
55 |     public static func == (lhs: MongoError.BulkWriteFailure, rhs: MongoError.BulkWriteFailure) -> Bool {
56 |         lhs.code == rhs.code && lhs.index == rhs.index
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:60:1: warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
58 | }
59 |
60 | extension MongoError.WriteConcernFailure: Equatable {
   | |- warning: extension declares a conformance of imported type 'WriteConcernFailure' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'MongoSwift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
61 |     public static func == (lhs: MongoError.WriteConcernFailure, rhs: MongoError.WriteConcernFailure) -> Bool {
62 |         lhs.code == rhs.code
/host/spi-builder-workspace/Sources/TestsCommon/MongoError+Equatable.swift:66:1: warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
64 | }
65 |
66 | extension DecodingError: Equatable {
   | |- warning: extension declares a conformance of imported type 'DecodingError' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'Swift' introduce this conformance in the future
   | `- note: add '@retroactive' to silence this warning
67 |     public static func == (lhs: DecodingError, rhs: DecodingError) -> Bool {
68 |         switch (lhs, rhs) {
[584/588] Wrapping AST for MongoSwiftSync for debugging
BUILD FAILURE 6.0 linux