Build Information
Successful build of FluentMongo, reference 1.2.2 (76bc6e
), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 23:27:29 UTC.
Swift 6 data race errors: 1
Build Command
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Build Log
========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/asensei/vapor-fluent-mongo.git
Reference: 1.2.2
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/asensei/vapor-fluent-mongo
* tag 1.2.2 -> FETCH_HEAD
HEAD is now at 76bc6e5 test against mongo v7 (#28)
Cloned https://github.com/asensei/vapor-fluent-mongo.git
Revision (git rev-parse @):
76bc6e52ceb62cadb13aa39ac0ecd7920f31fbe2
SUCCESS checkout https://github.com/asensei/vapor-fluent-mongo.git at 1.2.2
Fetching https://github.com/mongodb/mongo-swift-driver.git
Fetching https://github.com/vapor/fluent-kit.git
[1/12479] Fetching fluent-kit
[376/52376] Fetching fluent-kit, mongo-swift-driver
Fetched https://github.com/mongodb/mongo-swift-driver.git from cache (11.36s)
Fetched https://github.com/vapor/fluent-kit.git from cache (11.36s)
Computing version for https://github.com/mongodb/mongo-swift-driver.git
Computed https://github.com/mongodb/mongo-swift-driver.git at 1.3.1 (0.68s)
Fetching https://github.com/apple/swift-atomics
Fetching https://github.com/mongodb/swift-bson
Fetching https://github.com/Quick/Nimble.git
Fetching https://github.com/apple/swift-nio
[1/1569] Fetching swift-atomics
[49/4953] Fetching swift-atomics, swift-bson
Fetched https://github.com/apple/swift-atomics from cache (1.08s)
[2911/3384] Fetching swift-bson
[3385/22602] Fetching swift-bson, nimble
[4539/93749] Fetching swift-bson, nimble, swift-nio
Fetched https://github.com/mongodb/swift-bson from cache (4.63s)
Fetched https://github.com/apple/swift-nio from cache (4.63s)
Fetched https://github.com/Quick/Nimble.git from cache (4.63s)
Computing version for https://github.com/vapor/fluent-kit.git
Computed https://github.com/vapor/fluent-kit.git at 1.36.1 (0.63s)
Fetching https://github.com/vapor/async-kit.git
Fetching https://github.com/apple/swift-log.git
Fetching https://github.com/vapor/sql-kit.git
[1/2370] Fetching async-kit
[49/8210] Fetching async-kit, sql-kit
[839/11870] Fetching async-kit, sql-kit, swift-log
Fetched https://github.com/vapor/sql-kit.git from cache (1.22s)
Fetched https://github.com/vapor/async-kit.git from cache (1.22s)
Fetched https://github.com/apple/swift-log.git from cache (1.22s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (0.65s)
Fetching https://github.com/swift-extras/swift-extras-base64
Fetching https://github.com/swift-extras/swift-extras-json
[1/833] Fetching swift-extras-base64
[110/1882] Fetching swift-extras-base64, swift-extras-json
Fetched https://github.com/swift-extras/swift-extras-base64 from cache (0.92s)
Fetched https://github.com/swift-extras/swift-extras-json from cache (0.92s)
Computing version for https://github.com/swift-extras/swift-extras-base64
Computed https://github.com/swift-extras/swift-extras-base64 at 0.5.0 (0.65s)
Computing version for https://github.com/swift-extras/swift-extras-json
Computed https://github.com/swift-extras/swift-extras-json at 0.6.0 (0.64s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.50s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.66s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.46s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.20.0 (0.65s)
Fetching https://github.com/apple/swift-collections.git
Fetching https://github.com/apple/swift-algorithms.git
[1/5563] Fetching swift-algorithms
[5564/21038] Fetching swift-algorithms, swift-collections
Fetched https://github.com/apple/swift-algorithms.git from cache (2.18s)
Fetched https://github.com/apple/swift-collections.git from cache (2.18s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.0 (0.61s)
Fetching https://github.com/apple/swift-numerics.git
[1/5576] Fetching swift-numerics
Fetched https://github.com/apple/swift-numerics.git from cache (1.07s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.62s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.74s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.76.1 (0.71s)
Fetching https://github.com/apple/swift-system.git
[1/3901] Fetching swift-system
Fetched https://github.com/apple/swift-system.git from cache (1.08s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.45s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.32.0 (0.47s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/mongodb/mongo-swift-driver.git
Working copy of https://github.com/mongodb/mongo-swift-driver.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.20.0
Creating working copy for https://github.com/swift-extras/swift-extras-json
Working copy of https://github.com/swift-extras/swift-extras-json resolved at 0.6.0
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/mongodb/swift-bson
Working copy of https://github.com/mongodb/swift-bson resolved at 3.1.0
Creating working copy for https://github.com/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.32.0
Creating working copy for https://github.com/swift-extras/swift-extras-base64
Working copy of https://github.com/swift-extras/swift-extras-base64 resolved at 0.5.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.76.1
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
Creating working copy for https://github.com/vapor/fluent-kit.git
Working copy of https://github.com/vapor/fluent-kit.git resolved at 1.36.1
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
"identity": ".resolve-product-dependencies",
"name": "resolve-dependencies",
"url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
"dependencies": [
{
"identity": "vapor-fluent-mongo",
"name": "FluentMongo",
"url": "https://github.com/asensei/vapor-fluent-mongo.git",
"version": "unspecified",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/vapor-fluent-mongo",
"dependencies": [
{
"identity": "fluent-kit",
"name": "fluent-kit",
"url": "https://github.com/vapor/fluent-kit.git",
"version": "1.36.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/fluent-kit",
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio",
"version": "2.76.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "sql-kit",
"name": "sql-kit",
"url": "https://github.com/vapor/sql-kit.git",
"version": "3.32.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/sql-kit",
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio",
"version": "2.76.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
}
]
},
{
"identity": "async-kit",
"name": "async-kit",
"url": "https://github.com/vapor/async-kit.git",
"version": "1.20.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/async-kit",
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio",
"version": "2.76.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-log",
"name": "swift-log",
"url": "https://github.com/apple/swift-log.git",
"version": "1.6.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-algorithms",
"name": "swift-algorithms",
"url": "https://github.com/apple/swift-algorithms.git",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-algorithms",
"dependencies": [
{
"identity": "swift-numerics",
"name": "swift-numerics",
"url": "https://github.com/apple/swift-numerics.git",
"version": "1.0.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-numerics",
"dependencies": [
]
}
]
}
]
}
]
},
{
"identity": "mongo-swift-driver",
"name": "mongo-swift-driver",
"url": "https://github.com/mongodb/mongo-swift-driver.git",
"version": "1.3.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/mongo-swift-driver",
"dependencies": [
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
},
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio",
"version": "2.76.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-bson",
"name": "swift-bson",
"url": "https://github.com/mongodb/swift-bson",
"version": "3.1.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-bson",
"dependencies": [
{
"identity": "swift-nio",
"name": "swift-nio",
"url": "https://github.com/apple/swift-nio",
"version": "2.76.1",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-nio",
"dependencies": [
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
},
{
"identity": "swift-collections",
"name": "swift-collections",
"url": "https://github.com/apple/swift-collections.git",
"version": "1.1.4",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-collections",
"dependencies": [
]
},
{
"identity": "swift-system",
"name": "swift-system",
"url": "https://github.com/apple/swift-system.git",
"version": "1.4.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-system",
"dependencies": [
]
}
]
},
{
"identity": "swift-extras-json",
"name": "swift-extras-json",
"url": "https://github.com/swift-extras/swift-extras-json",
"version": "0.6.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-extras-json",
"dependencies": [
]
},
{
"identity": "swift-extras-base64",
"name": "swift-extras-base64",
"url": "https://github.com/swift-extras/swift-extras-base64",
"version": "0.5.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-extras-base64",
"dependencies": [
]
},
{
"identity": "nimble",
"name": "Nimble",
"url": "https://github.com/Quick/Nimble.git",
"version": "8.1.2",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Nimble",
"dependencies": [
]
}
]
},
{
"identity": "swift-atomics",
"name": "swift-atomics",
"url": "https://github.com/apple/swift-atomics",
"version": "1.2.0",
"path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-atomics",
"dependencies": [
]
}
]
}
]
}
]
}
Fetching https://github.com/asensei/vapor-fluent-mongo.git
[1/1470] Fetching vapor-fluent-mongo
Fetched https://github.com/asensei/vapor-fluent-mongo.git from cache (0.98s)
Fetching https://github.com/vapor/fluent-kit.git from cache
Fetching https://github.com/mongodb/mongo-swift-driver.git from cache
Fetched https://github.com/vapor/fluent-kit.git from cache (0.61s)
Fetched https://github.com/mongodb/mongo-swift-driver.git from cache (0.61s)
Computing version for https://github.com/mongodb/mongo-swift-driver.git
Computed https://github.com/mongodb/mongo-swift-driver.git at 1.3.1 (0.03s)
Fetching https://github.com/Quick/Nimble.git from cache
Fetching https://github.com/mongodb/swift-bson from cache
Fetching https://github.com/apple/swift-nio from cache
Fetching https://github.com/apple/swift-atomics from cache
Fetched https://github.com/apple/swift-atomics from cache (0.52s)
Fetched https://github.com/Quick/Nimble.git from cache (0.81s)
Fetched https://github.com/apple/swift-nio from cache (0.81s)
Fetched https://github.com/mongodb/swift-bson from cache (0.81s)
Computing version for https://github.com/vapor/fluent-kit.git
Computed https://github.com/vapor/fluent-kit.git at 1.36.1 (0.02s)
Fetching https://github.com/apple/swift-log.git from cache
Fetching https://github.com/vapor/async-kit.git from cache
Fetching https://github.com/vapor/sql-kit.git from cache
Fetched https://github.com/vapor/sql-kit.git from cache (0.58s)
Fetched https://github.com/vapor/async-kit.git from cache (0.58s)
Fetched https://github.com/apple/swift-log.git from cache (0.58s)
Computing version for https://github.com/mongodb/swift-bson
Computed https://github.com/mongodb/swift-bson at 3.1.0 (0.02s)
Fetching https://github.com/swift-extras/swift-extras-base64 from cache
Fetching https://github.com/swift-extras/swift-extras-json from cache
Fetched https://github.com/swift-extras/swift-extras-base64 from cache (0.48s)
Fetched https://github.com/swift-extras/swift-extras-json from cache (0.48s)
Computing version for https://github.com/swift-extras/swift-extras-base64
Computed https://github.com/swift-extras/swift-extras-base64 at 0.5.0 (0.02s)
Computing version for https://github.com/swift-extras/swift-extras-json
Computed https://github.com/swift-extras/swift-extras-json at 0.6.0 (0.02s)
Computing version for https://github.com/apple/swift-atomics
Computed https://github.com/apple/swift-atomics at 1.2.0 (0.03s)
Computing version for https://github.com/Quick/Nimble.git
Computed https://github.com/Quick/Nimble.git at 8.1.2 (0.03s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.02s)
Computing version for https://github.com/vapor/async-kit.git
Computed https://github.com/vapor/async-kit.git at 1.20.0 (0.02s)
Fetching https://github.com/apple/swift-algorithms.git from cache
Fetching https://github.com/apple/swift-collections.git from cache
Fetched https://github.com/apple/swift-collections.git from cache (0.59s)
Fetched https://github.com/apple/swift-algorithms.git from cache (0.59s)
Computing version for https://github.com/apple/swift-algorithms.git
Computed https://github.com/apple/swift-algorithms.git at 1.2.0 (0.02s)
Fetching https://github.com/apple/swift-numerics.git from cache
Fetched https://github.com/apple/swift-numerics.git from cache (0.49s)
Computing version for https://github.com/apple/swift-numerics.git
Computed https://github.com/apple/swift-numerics.git at 1.0.2 (0.02s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.1.4 (0.02s)
Computing version for https://github.com/apple/swift-nio
Computed https://github.com/apple/swift-nio at 2.76.1 (0.03s)
Fetching https://github.com/apple/swift-system.git from cache
Fetched https://github.com/apple/swift-system.git from cache (0.52s)
Computing version for https://github.com/apple/swift-system.git
Computed https://github.com/apple/swift-system.git at 1.4.0 (0.02s)
Computing version for https://github.com/vapor/sql-kit.git
Computed https://github.com/vapor/sql-kit.git at 3.32.0 (0.03s)
Creating working copy for https://github.com/vapor/fluent-kit.git
Working copy of https://github.com/vapor/fluent-kit.git resolved at 1.36.1
Creating working copy for https://github.com/vapor/async-kit.git
Working copy of https://github.com/vapor/async-kit.git resolved at 1.20.0
Creating working copy for https://github.com/swift-extras/swift-extras-base64
Working copy of https://github.com/swift-extras/swift-extras-base64 resolved at 0.5.0
Creating working copy for https://github.com/asensei/vapor-fluent-mongo.git
Working copy of https://github.com/asensei/vapor-fluent-mongo.git resolved at 1.2.2 (76bc6e5)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/apple/swift-atomics
Working copy of https://github.com/apple/swift-atomics resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-nio
Working copy of https://github.com/apple/swift-nio resolved at 2.76.1
Creating working copy for https://github.com/Quick/Nimble.git
Working copy of https://github.com/Quick/Nimble.git resolved at 8.1.2
Creating working copy for https://github.com/mongodb/mongo-swift-driver.git
Working copy of https://github.com/mongodb/mongo-swift-driver.git resolved at 1.3.1
Creating working copy for https://github.com/apple/swift-numerics.git
Working copy of https://github.com/apple/swift-numerics.git resolved at 1.0.2
Creating working copy for https://github.com/swift-extras/swift-extras-json
Working copy of https://github.com/swift-extras/swift-extras-json resolved at 0.6.0
Creating working copy for https://github.com/mongodb/swift-bson
Working copy of https://github.com/mongodb/swift-bson resolved at 3.1.0
Creating working copy for https://github.com/vapor/sql-kit.git
Working copy of https://github.com/vapor/sql-kit.git resolved at 3.32.0
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.1.4
Creating working copy for https://github.com/apple/swift-algorithms.git
Working copy of https://github.com/apple/swift-algorithms.git resolved at 1.2.0
Creating working copy for https://github.com/apple/swift-system.git
Working copy of https://github.com/apple/swift-system.git resolved at 1.4.0
warning: '.resolve-product-dependencies': dependency 'vapor-fluent-mongo' is not used by any target
Found 2 product dependencies
- fluent-kit
- mongo-swift-driver
========================================
Build
========================================
Selected platform: macosSpm
Swift version: 6.0
Building package at path: $PWD
https://github.com/asensei/vapor-fluent-mongo.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.1.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete
Building for debugging...
[0/173] Write sources
[7/173] Copying PrivacyInfo.xcprivacy
[8/173] Write sources
[23/173] Write swift-version--7754E27361AE5C74.txt
[24/173] Compiling CNIOWindows WSAStartup.c
[24/173] Compiling CNIOWindows shim.c
[24/173] Compiling CNIOWASI CNIOWASI.c
[27/173] Compiling _NumericsShims _NumericsShims.c
[28/173] Compiling CNIOLinux shim.c
[29/173] Compiling CNIOLinux liburing_shims.c
[30/184] Compiling _AtomicsShims.c
[31/229] Compiling common-thread.c
[32/229] Compiling mongoc-aggregate.c
[33/229] Compiling mongoc-apm.c
[34/229] Compiling CNIODarwin shim.c
[35/229] Compiling mongoc-write-concern.c
[36/229] Compiling mongoc-write-command.c
[37/229] Compiling mongoc-write-command-legacy.c
[38/229] Compiling mongoc-version-functions.c
[39/229] Compiling mongoc-util.c
[40/229] Compiling mongoc-uri.c
[41/229] Compiling mongoc-ts-pool.c
[42/229] Compiling mongoc-topology.c
[43/229] Compiling mongoc-topology-scanner.c
[44/229] Compiling mongoc-topology-description.c
[45/229] Compiling mongoc-topology-description-apm.c
[46/229] Compiling mongoc-topology-background-monitoring.c
[47/229] Compiling mongoc-timeout.c
[48/229] Compiling mongoc-stream.c
[49/229] Compiling mongoc-stream-tls.c
[50/229] Compiling mongoc-stream-tls-secure-transport.c
[51/229] Compiling mongoc-stream-tls-secure-channel.c
[52/229] Compiling mongoc-stream-tls-openssl.c
[53/229] Compiling mongoc-stream-tls-openssl-bio.c
[54/229] Compiling c-nioatomics.c
[55/229] Compiling mongoc-stream-tls-libressl.c
[56/229] Compiling mongoc-stream-socket.c
[57/229] Compiling mongoc-stream-gridfs.c
[58/229] Compiling mongoc-stream-gridfs-upload.c
[59/229] Compiling mongoc-stream-gridfs-download.c
[60/229] Compiling mongoc-stream-file.c
[61/229] Compiling mongoc-sspi.c
[62/229] Compiling mongoc-stream-buffered.c
[63/229] Compiling mongoc-ssl.c
[64/229] Compiling mongoc-socket.c
[65/229] Compiling mongoc-shared.c
[66/229] Compiling mongoc-set.c
[67/229] Compiling mongoc-server-stream.c
[68/229] Compiling mongoc-server-monitor.c
[69/229] Compiling mongoc-server-api.c
[70/229] Compiling mongoc-server-description.c
[71/229] Compiling mongoc-secure-channel.c
[72/229] Compiling mongoc-secure-transport.c
[73/229] Compiling mongoc-scram.c
[74/229] Compiling mongoc-sasl.c
[75/229] Compiling mongoc-read-prefs.c
[76/229] Compiling mongoc-read-concern.c
[77/229] Compiling mongoc-rand-openssl.c
[78/229] Compiling c-atomics.c
[79/229] Compiling mongoc-rand-cng.c
[80/229] Compiling mongoc-rand-common-crypto.c
[81/229] Compiling mongoc-rpc.c
[82/229] Compiling mongoc-queue.c
[83/235] Compiling mongoc-opts-helpers.c
[84/235] Compiling mongoc-opts.c
[85/235] Compiling mongoc-optional.c
[86/235] Compiling mongoc-openssl.c
[87/235] Compiling mongoc-ocsp-cache.c
[88/235] Compiling mongoc-memcmp.c
[89/235] Compiling mongoc-matcher.c
[90/235] Compiling mongoc-log.c
[91/235] Compiling mongoc-matcher-op.c
[92/235] Compiling mongoc-list.c
[93/235] Compiling mongoc-linux-distro-scanner.c
[94/235] Compiling mongoc-libressl.c
[95/235] Compiling mongoc-interrupt.c
[96/235] Compiling mongoc-index.c
[97/235] Compiling mongoc-init.c
[98/235] Compiling mongoc-host-list.c
[99/235] Compiling mongoc-http.c
[100/235] Compiling mongoc-handshake.c
[101/235] Compiling mongoc-gridfs.c
[102/235] Compiling mongoc-gridfs-file-page.c
[103/235] Compiling mongoc-gridfs-file.c
[104/235] Compiling mongoc-gridfs-file-list.c
[105/235] Compiling mongoc-gridfs-bucket.c
[106/235] Compiling mongoc-generation-map.c
[107/235] Compiling mongoc-gridfs-bucket-file.c
[108/235] Compiling mongoc-find-and-modify.c
[109/235] Compiling mongoc-error.c
[110/235] Compiling mongoc-cyrus.c
[111/235] Compiling mongoc-database.c
[112/235] Compiling mongoc-cursor.c
[113/235] Compiling mongoc-cursor-legacy.c
[114/235] Compiling mongoc-cursor-find.c
[115/235] Compiling mongoc-cursor-find-opquery.c
[116/235] Compiling mongoc-cursor-find-cmd.c
[117/235] Compiling mongoc-cursor-cmd.c
[118/235] Compiling mongoc-cursor-cmd-deprecated.c
[119/235] Compiling mongoc-cursor-change-stream.c
[120/235] Compiling mongoc-cursor-array.c
[121/235] Compiling mongoc-crypto.c
[122/235] Compiling mongoc-crypto-openssl.c
[123/235] Compiling mongoc-crypto-cng.c
[124/235] Compiling mongoc-crypto-common-crypto.c
[125/235] Compiling mongoc-crypt.c
[126/235] Compiling mongoc-counters.c
[127/235] Compiling mongoc-compression.c
[128/235] Compiling mongoc-cmd.c
[129/235] Compiling mongoc-collection.c
[130/235] Compiling mongoc-cluster-sspi.c
[131/235] Compiling mongoc-cluster-sasl.c
[132/235] Compiling mongoc-cluster-cyrus.c
[133/235] Compiling mongoc-cluster.c
[134/235] Compiling mongoc-cluster-aws.c
[135/235] Compiling mongoc-client-side-encryption.c
[136/235] Compiling mongoc-client.c
[137/235] Compiling mongoc-client-session.c
[138/235] Compiling mongoc-client-pool.c
[139/235] Compiling mongoc-change-stream.c
[140/235] Compiling mongoc-bulk-operation.c
[141/235] Compiling mongoc-buffer.c
[142/235] Compiling mongoc-async.c
[143/235] Compiling mongoc-array.c
[144/235] Compiling mongoc-async-cmd.c
[145/235] Compiling common-md5.c
[146/235] Compiling common-b64.c
[147/235] Compiling jsonsl.c
[148/235] Compiling bson-writer.c
[149/235] Compiling bson-version-functions.c
[150/235] Compiling bson-value.c
[151/235] Compiling bson-utf8.c
[152/235] Compiling bson-timegm.c
[153/235] Compiling bson.c
[154/235] Compiling bson-string.c
[155/235] Compiling bson-oid.c
[156/235] Compiling bson-memory.c
[157/235] Compiling bson-reader.c
[158/235] Compiling bson-keys.c
[159/235] Compiling bson-md5.c
[160/235] Compiling bson-iter.c
[161/235] Compiling bson-iso8601.c
[162/235] Compiling bson-json.c
[163/235] Compiling bson-error.c
[164/235] Compiling bson-decimal128.c
[165/235] Compiling bson-clock.c
[166/235] Compiling bson-context.c
[167/235] Compiling bson-atomic.c
[168/235] Write sources
[171/235] Compiling bcon.c
[172/235] Write sources
[174/254] Compiling Atomics PointerConformances.swift
[175/254] Compiling Atomics Primitives.native.swift
[176/255] Compiling RealModule ElementaryFunctions.swift
[177/256] Compiling RealModule AlgebraicField.swift
[178/256] Compiling RealModule RealFunctions.swift
[179/256] Compiling Atomics AtomicBool.swift
[180/256] Compiling Atomics IntegerConformances.swift
[181/256] Compiling ExtrasJSON JSONUnkeyedEncodingContainer.swift
[182/257] Compiling RealModule Double+Real.swift
[183/257] Emitting module RealModule
[184/257] Compiling RealModule AugmentedArithmetic.swift
[185/257] Compiling RealModule ApproximateEquality.swift
[186/257] Emitting module _NIOBase64
[187/257] Compiling _NIOBase64 Base64.swift
[188/257] Compiling Atomics UnsafeAtomic.swift
[189/257] Compiling Atomics UnsafeAtomicLazyReference.swift
[190/257] Compiling InternalCollectionsUtilities UnsafeBufferPointer+Extras.swift
[191/257] Compiling RealModule Real.swift
[192/257] Compiling Atomics OptionalRawRepresentable.swift
[193/257] Compiling Atomics RawRepresentable.swift
[194/257] Emitting module InternalCollectionsUtilities
[195/257] Compiling RealModule Float80+Real.swift
[196/257] Compiling Atomics AtomicMemoryOrderings.swift
[197/257] Compiling Atomics DoubleWord.swift
[198/257] Compiling ExtrasJSON JSONValue.swift
[199/257] Compiling ExtrasJSON JSONError+DecodingError.swift
[200/257] Compiling ExtrasJSON DocumentReader.swift
[201/257] Compiling RealModule Float+Real.swift
[202/257] Compiling RealModule Float16+Real.swift
[203/257] Compiling ExtrasJSON JSONSingleValueEncodingContainer.swift
[204/257] Compiling ExtrasJSON JSONKeyedEncodingContainer.swift
[205/257] Emitting module ExtrasJSON
[206/257] Compiling Atomics AtomicOptionalWrappable.swift
[207/257] Compiling Atomics AtomicReference.swift
[212/257] Compiling InternalCollectionsUtilities UnsafeMutableBufferPointer+Extras.swift
[215/257] Compiling Atomics AtomicStorage.swift
[216/257] Compiling Atomics AtomicValue.swift
[217/283] Emitting module ExtrasBase64
[218/283] Compiling ExtrasBase64 DecodingError.swift
[219/283] Compiling ExtrasBase64 Chromium.swift
[220/283] Compiling ExtrasBase64 Base64.swift
[221/283] Compiling Algorithms Grouped.swift
[222/283] Compiling Algorithms Indexed.swift
[223/283] Compiling Logging Locks.swift
[224/283] Emitting module Logging
[225/283] Compiling Logging MetadataProvider.swift
[226/494] Compiling _NIODataStructures PriorityQueue.swift
[227/494] Compiling _NIODataStructures _TinyArray.swift
[228/494] Emitting module _NIODataStructures
[229/494] Compiling _NIODataStructures Heap.swift
[230/510] Compiling ExtrasJSON JSONParser.swift
[231/565] Compiling HeapModule Heap.swift
[232/565] Compiling HeapModule _HeapNode.swift
[233/565] Compiling HeapModule Heap+Invariants.swift
[234/565] Compiling DequeModule _DequeSlot.swift
[235/566] Compiling HeapModule Heap+UnsafeHandle.swift
[236/566] Compiling HeapModule Heap+ExpressibleByArrayLiteral.swift
[237/566] Compiling BitCollections BitArray+ChunkedBitsIterators.swift
[238/566] Compiling BitCollections BitArray+Codable.swift
[239/566] Compiling BitCollections BitArray+Collection.swift
[240/566] Compiling BitCollections BitArray+Copy.swift
[241/566] Compiling BitCollections BitArray+CustomReflectable.swift
[242/566] Compiling BitCollections BitSet+Hashable.swift
[243/572] Compiling DequeModule _DequeBufferHeader.swift
[244/572] Emitting module HeapModule
[245/572] Compiling HeapModule Heap+Descriptions.swift
[246/572] Compiling BitCollections BitSet+SetAlgebra formSymmetricDifference.swift
[247/572] Compiling BitCollections BitSet+SetAlgebra formUnion.swift
[248/572] Compiling BitCollections BitSet+SetAlgebra intersection.swift
[249/572] Compiling BitCollections BitSet+SetAlgebra isDisjoint.swift
[250/572] Compiling BitCollections BitSet+SetAlgebra isEqualSet.swift
[251/572] Compiling HashTreeCollections _HashNode.swift
[252/572] Compiling DequeModule _UnsafeWrappedBuffer.swift
[253/572] Compiling HashTreeCollections TreeSet+SetAlgebra basics.swift
[254/572] Compiling HashTreeCollections TreeSet+SetAlgebra formIntersection.swift
[255/572] Compiling HashTreeCollections TreeSet+SetAlgebra formSymmetricDifference.swift
[256/572] Compiling HashTreeCollections TreeSet+SetAlgebra formUnion.swift
[257/572] Compiling HashTreeCollections TreeSet+SetAlgebra intersection.swift
[258/572] Compiling HashTreeCollections TreeSet+SetAlgebra isDisjoint.swift
[259/572] Compiling HashTreeCollections TreeSet+SetAlgebra isEqualSet.swift
[260/572] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSubset.swift
[261/580] Compiling BitCollections BitSet+SetAlgebra isStrictSuperset.swift
[262/580] Compiling BitCollections BitSet+SetAlgebra isSubset.swift
[263/580] Compiling BitCollections BitSet+SetAlgebra isSuperset.swift
[265/582] Compiling BitCollections BitSet+Initializers.swift
[266/582] Compiling BitCollections BitSet+Invariants.swift
[267/582] Compiling BitCollections BitSet+Random.swift
[268/582] Compiling BitCollections BitSet+SetAlgebra basics.swift
[269/582] Compiling BitCollections BitSet+SetAlgebra conformance.swift
[270/587] Compiling Logging Logging.swift
[271/587] Compiling Logging LogHandler.swift
[272/587] Compiling BitCollections BitSet+SetAlgebra formIntersection.swift
[283/587] Compiling BitCollections BitSet+SetAlgebra isStrictSubset.swift
[287/587] Compiling BitCollections BitSet+SetAlgebra subtract.swift
[288/587] Compiling BitCollections BitSet+SetAlgebra subtracting.swift
[289/587] Compiling BitCollections BitArray+Shifts.swift
[290/587] Compiling HashTreeCollections TreeDictionary+ExpressibleByDictionaryLiteral.swift
[291/587] Compiling HashTreeCollections TreeDictionary+Filter.swift
[292/587] Compiling HashTreeCollections TreeDictionary+Hashable.swift
[293/587] Compiling HashTreeCollections TreeDictionary+Initializers.swift
[294/587] Compiling HashTreeCollections TreeDictionary+Keys.swift
[295/587] Compiling HashTreeCollections TreeDictionary+MapValues.swift
[296/587] Compiling HashTreeCollections TreeDictionary+Merge.swift
[297/587] Compiling HashTreeCollections TreeDictionary+Sendable.swift
[298/587] Compiling DequeModule _DequeBuffer.swift
[303/587] Compiling BitCollections BitArray+Extras.swift
[304/587] Compiling BitCollections BitArray+Fill.swift
[305/587] Compiling BitCollections BitArray+BitwiseOperations.swift
[324/587] Compiling BitCollections BitSet+CustomReflectable.swift
[325/587] Compiling BitCollections BitSet+CustomStringConvertible.swift
[326/587] Compiling BitCollections BitSet+Equatable.swift
[327/587] Compiling BitCollections BitSet+ExpressibleByArrayLiteral.swift
[328/587] Compiling BitCollections BitSet+Extras.swift
[329/587] Compiling BitCollections BitSet+SetAlgebra symmetricDifference.swift
[330/587] Compiling Algorithms Unique.swift
[331/587] Compiling Algorithms Windows.swift
[332/587] Compiling BitCollections BitArray.swift
[333/587] Compiling BitCollections BitSet+BidirectionalCollection.swift
[334/587] Compiling BitCollections BitSet+Codable.swift
[335/587] Compiling BitCollections BitArray+Hashable.swift
[336/587] Compiling BitCollections BitArray+Initializers.swift
[337/587] Compiling BitCollections BitArray+Invariants.swift
[338/587] Compiling BitCollections BitArray+LosslessStringConvertible.swift
[339/587] Compiling BitCollections BitArray+RandomBits.swift
[340/587] Compiling BitCollections BitArray+RangeReplaceableCollection.swift
[341/587] Compiling BitCollections BitSet+CustomDebugStringConvertible.swift
[342/587] Compiling BitCollections BitSet+SetAlgebra union.swift
[343/587] Compiling BitCollections BitSet+Sorted Collection APIs.swift
[344/587] Compiling BitCollections BitSet.Counted.swift
[345/587] Compiling BitCollections BitSet.Index.swift
[346/587] Compiling BitCollections BitSet._UnsafeHandle.swift
[348/587] Compiling BitCollections BitSet.swift
[349/587] Compiling BitCollections Range+Utilities.swift
[350/587] Compiling BitCollections Slice+Utilities.swift
[351/587] Compiling BitCollections UInt+Tricks.swift
[352/587] Compiling BitCollections _Word.swift
[353/587] Compiling HashTreeCollections TreeSet+SetAlgebra isStrictSuperset.swift
[354/587] Compiling HashTreeCollections TreeSet+SetAlgebra isSubset.swift
[355/587] Compiling HashTreeCollections TreeSet+SetAlgebra isSuperset.swift
[356/587] Compiling HashTreeCollections TreeSet+SetAlgebra subtract.swift
[357/587] Compiling HashTreeCollections TreeSet+SetAlgebra subtracting.swift
[358/587] Compiling HashTreeCollections TreeSet+SetAlgebra symmetricDifference.swift
[359/587] Compiling HashTreeCollections TreeSet+SetAlgebra union.swift
[360/587] Compiling HashTreeCollections TreeSet.swift
[361/587] Compiling NIOConcurrencyHelpers lock.swift
[362/587] Compiling BitCollections BitArray+Descriptions.swift
[363/587] Compiling BitCollections BitArray+Equatable.swift
[364/587] Compiling BitCollections BitArray+ExpressibleByArrayLiteral.swift
[365/587] Compiling BitCollections BitArray+ExpressibleByStringLiteral.swift
[403/587] Compiling OrderedCollections OrderedSet.swift
[404/587] Compiling OrderedCollections _UnsafeBitset.swift
[405/594] Compiling NIOConcurrencyHelpers atomics.swift
[406/594] Emitting module NIOConcurrencyHelpers
[407/594] Compiling NIOConcurrencyHelpers NIOAtomic.swift
[408/594] Compiling NIOConcurrencyHelpers NIOLockedValueBox.swift
[409/594] Compiling NIOConcurrencyHelpers NIOLock.swift
[440/594] Emitting module BitCollections
[481/594] Emitting module DequeModule
[513/596] Compiling Atomics IntegerOperations.swift
[514/596] Compiling Atomics Unmanaged extensions.swift
[515/596] Compiling _RopeModule Rope+Remove.swift
[516/596] Compiling _RopeModule Rope+RemoveSubrange.swift
[517/596] Compiling _RopeModule Rope+Split.swift
[518/596] Compiling _RopeModule Optional Utilities.swift
[519/596] Compiling _RopeModule String Utilities.swift
[520/596] Compiling _RopeModule String.Index+ABI.swift
[521/596] Compiling _RopeModule _CharacterRecognizer.swift
[555/596] Emitting module Atomics
[558/658] Emitting module OrderedCollections
[559/658] Compiling NIOCore AddressedEnvelope.swift
[560/658] Compiling NIOCore AsyncAwaitSupport.swift
[561/658] Compiling NIOCore AsyncChannel.swift
[562/658] Compiling NIOCore AsyncChannelHandler.swift
[563/658] Compiling NIOCore AsyncChannelInboundStream.swift
[564/658] Compiling NIOCore AsyncChannelOutboundWriter.swift
[565/658] Compiling NIOCore NIOAsyncSequenceProducer.swift
[566/658] Compiling NIOCore Codec.swift
[567/658] Emitting module _RopeModule
[568/658] Emitting module Algorithms
[569/658] Compiling NIOCore DeadChannel.swift
[570/658] Compiling NIOCore DispatchQueue+WithFuture.swift
[571/658] Compiling NIOCore EventLoop+Deprecated.swift
[572/658] Compiling NIOCore EventLoop+SerialExecutor.swift
[573/658] Compiling NIOCore EventLoop.swift
[574/658] Compiling NIOCore NIOAsyncSequenceProducerStrategies.swift
[575/658] Compiling NIOCore NIOAsyncWriter.swift
[576/658] Compiling NIOCore NIOThrowingAsyncSequenceProducer.swift
[577/658] Compiling NIOCore BSDSocketAPI.swift
[578/658] Compiling NIOCore CircularBuffer.swift
[579/658] Compiling NIOCore Linux.swift
[580/658] Compiling NIOCore MarkedCircularBuffer.swift
[581/658] Compiling NIOCore MulticastChannel.swift
[582/658] Compiling NIOCore NIOAny.swift
[583/658] Compiling NIOCore NIOCloseOnErrorHandler.swift
[584/658] Compiling NIOCore NIOLoopBound.swift
[585/658] Compiling NIOCore EventLoopFuture+AssumeIsolated.swift
[586/658] Compiling NIOCore EventLoopFuture+Deprecated.swift
[587/658] Compiling NIOCore ByteBuffer-aux.swift
[588/658] Compiling NIOCore ByteBuffer-binaryEncodedLengthPrefix.swift
[589/658] Compiling NIOCore ByteBuffer-conversions.swift
[590/658] Compiling NIOCore Channel.swift
[591/658] Compiling NIOCore ChannelHandler.swift
[592/658] Compiling NIOCore ChannelHandlers.swift
[593/658] Compiling NIOCore ChannelInvoker.swift
[594/658] Compiling NIOCore ChannelOption.swift
[595/658] Compiling NIOCore ChannelPipeline.swift
[596/658] Emitting module HashTreeCollections
[597/660] Compiling Collections Collections.swift
[598/660] Emitting module Collections
[607/660] Compiling NIOCore ConvenienceOptionSupport.swift
[613/666] Compiling NIOCore SocketOptionProvider.swift
[614/666] Compiling NIOCore SystemCallHelpers.swift
[615/666] Compiling NIOCore TimeAmount+Duration.swift
[616/666] Compiling NIOCore TypeAssistedChannelHandler.swift
[617/666] Compiling NIOCore UniversalBootstrapSupport.swift
[618/666] Compiling NIOCore Utilities.swift
[639/666] Compiling NIOCore NIOScheduledCallback.swift
[640/666] Compiling NIOCore NIOSendable.swift
[641/666] Compiling NIOCore PointerHelpers.swift
[642/666] Compiling NIOCore RecvByteBufferAllocator.swift
[643/666] Compiling NIOCore SingleStepByteToMessageDecoder.swift
[644/666] Compiling NIOCore SocketAddresses.swift
[647/666] Compiling NIOCore EventLoopFuture+WithEventLoop.swift
[648/666] Compiling NIOCore EventLoopFuture.swift
[649/666] Compiling NIOCore FileDescriptor.swift
[650/666] Compiling NIOCore FileHandle.swift
[651/666] Compiling NIOCore FileRegion.swift
[652/666] Compiling NIOCore GlobalSingletons.swift
[653/666] Compiling NIOCore IO.swift
[654/666] Compiling NIOCore IOData.swift
[655/666] Compiling NIOCore IPProtocol.swift
[656/666] Compiling NIOCore IntegerBitPacking.swift
[657/666] Compiling NIOCore IntegerTypes.swift
[658/666] Compiling NIOCore Interfaces.swift
[659/666] Compiling NIOCore ByteBuffer-core.swift
[660/666] Compiling NIOCore ByteBuffer-hex.swift
[661/666] Compiling NIOCore ByteBuffer-int.swift
[662/666] Compiling NIOCore ByteBuffer-lengthPrefix.swift
[663/666] Compiling NIOCore ByteBuffer-multi-int.swift
[664/666] Compiling NIOCore ByteBuffer-quicBinaryEncodingStrategy.swift
[665/666] Compiling NIOCore ByteBuffer-views.swift
[666/666] Emitting module NIOCore
[667/720] Compiling NIOEmbedded AsyncTestingChannel.swift
[668/720] Emitting module NIOEmbedded
[669/720] Compiling NIOEmbedded AsyncTestingEventLoop.swift
[670/720] Compiling NIOEmbedded Embedded.swift
[671/720] Compiling NIOPosix SocketProtocols.swift
[672/720] Compiling NIOPosix System.swift
[673/720] Compiling NIOPosix Thread.swift
[674/720] Compiling NIOPosix ThreadPosix.swift
[675/720] Compiling NIOPosix ThreadWindows.swift
[676/725] Compiling NIOPosix GetaddrinfoResolver.swift
[677/725] Compiling NIOPosix HappyEyeballs.swift
[678/725] Compiling NIOPosix IO.swift
[679/725] Compiling NIOPosix IntegerBitPacking.swift
[680/725] Compiling NIOPosix IntegerTypes.swift
[681/725] Compiling NIOPosix Linux.swift
[682/725] Compiling NIOPosix BSDSocketAPICommon.swift
[683/725] Compiling NIOPosix BSDSocketAPIPosix.swift
[684/725] Compiling NIOPosix BSDSocketAPIWindows.swift
[685/725] Compiling NIOPosix BaseSocket.swift
[686/725] Compiling NIOPosix BaseSocketChannel+SocketOptionProvider.swift
[687/725] Compiling NIOPosix BaseSocketChannel.swift
[688/725] Compiling NIOPosix PooledRecvBufferAllocator.swift
[689/725] Compiling NIOPosix PosixSingletons+ConcurrencyTakeOver.swift
[690/725] Compiling NIOPosix PosixSingletons.swift
[691/725] Compiling NIOPosix RawSocketBootstrap.swift
[692/725] Compiling NIOPosix Resolver.swift
[693/725] Compiling NIOPosix SelectorKqueue.swift
[694/725] Compiling NIOPosix SelectorUring.swift
[695/725] Compiling NIOPosix ServerSocket.swift
[696/725] Compiling NIOPosix Socket.swift
[697/725] Compiling NIOPosix SocketChannel.swift
[698/725] Emitting module NIOPosix
[699/725] Compiling NIOPosix BaseStreamSocketChannel.swift
[700/725] Compiling NIOPosix Bootstrap.swift
[701/725] Compiling NIOPosix ControlMessage.swift
[702/725] Compiling NIOPosix DatagramVectorReadManager.swift
[703/725] Compiling NIOPosix Errors+Any.swift
[704/725] Compiling NIOPosix FileDescriptor.swift
[705/725] Compiling NIOPosix Selectable.swift
[706/725] Compiling NIOPosix SelectableChannel.swift
[707/725] Compiling NIOPosix SelectableEventLoop.swift
[708/725] Compiling NIOPosix SelectorEpoll.swift
[709/725] Compiling NIOPosix SelectorGeneric.swift
[710/725] Compiling NIOPosix LinuxCPUSet.swift
[711/725] Compiling NIOPosix LinuxUring.swift
[712/725] Compiling NIOPosix MultiThreadedEventLoopGroup.swift
[713/725] Compiling NIOPosix NIOThreadPool.swift
[714/725] Compiling NIOPosix NonBlockingFileIO.swift
[715/725] Compiling NIOPosix PendingDatagramWritesManager.swift
[716/725] Compiling NIOPosix PendingWritesManager.swift
[717/725] Compiling NIOPosix PipeChannel.swift
[718/725] Compiling NIOPosix PipePair.swift
[719/725] Compiling NIOPosix PointerHelpers.swift
[720/725] Compiling NIOPosix Pool.swift
[721/725] Compiling NIOPosix UnsafeTransfer.swift
[722/725] Compiling NIOPosix Utilities.swift
[723/725] Compiling NIOPosix VsockAddress.swift
[724/725] Compiling NIOPosix VsockChannelEvents.swift
[725/725] Compiling NIOPosix resource_bundle_accessor.swift
[726/749] Compiling NIO Exports.swift
[727/749] Emitting module NIO
[728/777] Compiling SwiftBSON Double+BSONValue.swift
[729/777] Compiling SwiftBSON ExtendedJSONDecoder.swift
[730/777] Compiling SwiftBSON ExtendedJSONEncoder.swift
[731/777] Compiling SwiftBSON BSONCode.swift
[732/779] Compiling SwiftBSON CodingStrategies.swift
[733/779] Compiling SwiftBSON Date+BSONValue.swift
[734/779] Compiling SwiftBSON BSONObjectID.swift
[735/779] Compiling SwiftBSON CodableNumber.swift
[736/779] Compiling SwiftBSON BSONDecoder.swift
[737/779] Compiling SwiftBSON BSONDocument+Collection.swift
[738/779] Compiling SwiftBSON BSONDocument+Sequence.swift
[739/779] Compiling SwiftBSON BSONValue.swift
[740/779] Compiling SwiftBSON Bool+BSONValue.swift
[741/779] Compiling SwiftBSON ByteBuffer+BSON.swift
[742/782] Compiling AsyncKit Optional+StrictMap.swift
[743/782] Compiling AsyncKit Exports.swift
[746/782] Compiling SwiftBSON BSONTimestamp.swift
[747/782] Compiling SwiftBSON BSONError.swift
[748/782] Compiling SwiftBSON BSONNulls.swift
[756/782] Compiling SwiftBSON Integers+BSONValue.swift
[757/782] Compiling SwiftBSON JSON.swift
[758/782] Compiling SwiftBSON String+BSONValue.swift
[759/782] Emitting module SwiftBSON
[764/782] Compiling SwiftBSON BSONDBPointer.swift
[765/782] Compiling SwiftBSON BSONDecimal128.swift
[766/782] Compiling SwiftBSON BSONDocument.swift
[767/782] Compiling SwiftBSON BSONDocumentIterator.swift
[768/782] Compiling SwiftBSON BSONEncoder.swift
[769/782] Compiling SwiftBSON Array+BSONValue.swift
[770/782] Compiling SwiftBSON BSON.swift
[771/782] Compiling SwiftBSON BSONBinary.swift
[772/846] Compiling MongoSwift MongoCollection+Indexes+AsyncAwait.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
[773/846] Compiling MongoSwift MongoCollection+Read+AsyncAwait.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
[774/846] Compiling MongoSwift MongoCollection+Write+AsyncAwait.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
[775/846] Compiling MongoSwift MongoCursor+AsyncSequence.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
[776/846] Compiling MongoSwift MongoDatabase+AsyncAwait.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
[777/846] Compiling MongoSwift BSONPointerUtils.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
[778/846] Compiling MongoSwift BSONUtil.swift
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
[779/852] Compiling MongoSwift APM.swift
[780/852] Compiling MongoSwift ChangeStream+AsyncSequence.swift
[781/852] Compiling MongoSwift ClientSession+AsyncAwait.swift
[782/852] Compiling MongoSwift MongoClient+AsyncAwait.swift
[783/852] Compiling MongoSwift MongoCollection+AsyncAwait.swift
[784/852] Compiling MongoSwift MongoCollection+ChangeStreams+AsyncAwait.swift
[785/852] Compiling MongoSwift MongoCollection+FindAndModify+AsyncAwait.swift
[786/852] Compiling MongoSwift DropDatabaseOperation.swift
[787/852] Compiling MongoSwift DropIndexesOperation.swift
[788/852] Compiling MongoSwift EstimatedDocumentCountOperation.swift
[789/852] Compiling MongoSwift FindAndModifyOperation.swift
[790/852] Compiling MongoSwift FindOperation.swift
[791/852] Compiling MongoSwift ListCollectionsOperation.swift
[792/852] Compiling MongoSwift ListDatabasesOperation.swift
[793/852] Compiling MongoSwift EventLoopBoundMongoClient.swift
[794/852] Compiling MongoSwift Exports.swift
[795/852] Compiling MongoSwift Hint.swift
[796/852] Compiling MongoSwift MongoClient.swift
[797/852] Compiling MongoSwift MongoCollection+BulkWrite.swift
[798/852] Compiling MongoSwift MongoCollection+ChangeStreams.swift
[799/852] Compiling MongoSwift MongoCollection+FindAndModify.swift
[800/852] Compiling MongoSwift AggregateOperation.swift
[801/852] Compiling MongoSwift CommitTransactionOperation.swift
[802/852] Compiling MongoSwift CountDocumentsOperation.swift
[803/852] Compiling MongoSwift CreateCollectionOperation.swift
[804/852] Compiling MongoSwift CreateIndexesOperation.swift
[805/852] Compiling MongoSwift DistinctOperation.swift
[806/852] Compiling MongoSwift DropCollectionOperation.swift
[807/852] Compiling MongoSwift MongoDatabase.swift
[808/852] Compiling MongoSwift MongoError.swift
[809/852] Compiling MongoSwift MongoNamespace.swift
[810/852] Compiling MongoSwift MongoServerAPI.swift
[811/852] Compiling MongoSwift MongoSwift.swift
[812/852] Compiling MongoSwift MongoSwiftVersion.swift
[813/852] Compiling MongoSwift AbortTransactionOperation.swift
[814/852] Emitting module MongoSwift
[815/852] Compiling MongoSwift WatchOperation.swift
[816/852] Compiling MongoSwift ReadConcern.swift
[817/852] Compiling MongoSwift ReadPreference.swift
[818/852] Compiling MongoSwift SDAM.swift
[819/852] Compiling MongoSwift ServerSelection.swift
[820/852] Compiling MongoSwift WriteConcern.swift
[821/852] Emitting module AsyncKit
[822/852] Compiling MongoSwift ChangeStream.swift
[823/852] Compiling MongoSwift ChangeStreamEvent.swift
[824/852] Compiling MongoSwift ChangeStreamOptions.swift
[825/852] Compiling MongoSwift ClientSession.swift
[826/852] Compiling MongoSwift Compressor.swift
[827/852] Compiling MongoSwift ConnectionPool.swift
[828/852] Compiling MongoSwift CursorCommon.swift
[829/852] Compiling MongoSwift ListIndexesOperation.swift
[830/852] Compiling MongoSwift MongocCommandHelpers.swift
[831/852] Compiling MongoSwift Operation.swift
[832/852] Compiling MongoSwift RenameCollectionOperation.swift
[833/852] Compiling MongoSwift RunCommandOperation.swift
[834/852] Compiling MongoSwift StartSessionOperation.swift
[835/852] Compiling MongoSwift StartTransactionOperation.swift
[836/852] Compiling MongoSwift MongoCollection+Indexes.swift
[837/852] Compiling MongoSwift MongoCollection+Read.swift
[838/852] Compiling MongoSwift MongoCollection+Write.swift
[839/852] Compiling MongoSwift MongoCollection.swift
[840/852] Compiling MongoSwift MongoConnectionString.swift
[841/852] Compiling MongoSwift MongoCredential.swift
[842/852] Compiling MongoSwift MongoCursor.swift
[853/936] Compiling FluentKit AsyncMigration.swift
[854/936] Compiling FluentKit AsyncModelMiddleware.swift
[855/936] Compiling FluentKit Children+Concurrency.swift
[856/936] Compiling FluentKit Database+Concurrency.swift
[857/936] Compiling FluentKit EnumBuilder+Concurrency.swift
[858/936] Compiling FluentKit Model+Concurrency.swift
[859/936] Compiling FluentKit ModelResponder+Concurrency.swift
[860/936] Compiling FluentKit OptionalChild+Concurrency.swift
[861/936] Compiling FluentKit OptionalParent+Concurrency.swift
[862/936] Compiling FluentKit Parent+Concurrency.swift
[863/945] Compiling FluentKit QueryBuilder+Concurrency.swift
[864/945] Compiling FluentKit Relation+Concurrency.swift
[865/945] Compiling FluentKit SchemaBuilder+Concurrency.swift
[866/945] Compiling FluentKit Siblings+Concurrency.swift
[867/945] Compiling FluentKit Database+Logging.swift
[868/945] Compiling FluentKit Database.swift
[869/945] Compiling FluentKit DatabaseID.swift
[870/945] Compiling FluentKit DatabaseInput.swift
[871/945] Compiling FluentKit DatabaseOutput+Cascade.swift
[872/945] Compiling FluentKit DatabaseOutput+Prefix.swift
[873/945] Compiling FluentKit QueryBuilder+Range.swift
[874/945] Compiling FluentKit QueryBuilder+Set.swift
[875/945] Compiling FluentKit QueryBuilder+Sort.swift
[876/945] Compiling FluentKit QueryBuilder.swift
[877/945] Compiling FluentKit DatabaseQuery+Action.swift
[878/945] Compiling FluentKit DatabaseQuery+Aggregate.swift
[879/945] Compiling FluentKit DatabaseQuery+Field.swift
[880/945] Compiling FluentKit DatabaseQuery+Filter.swift
[881/945] Compiling FluentKit DatabaseQuery+Join.swift
[882/945] Compiling FluentKit DatabaseQuery+Range.swift
[883/945] Compiling FluentKit DatabaseQuery+Sort.swift
[884/945] Compiling FluentKit DatabaseQuery+Value.swift
[885/945] Compiling FluentKit DatabaseQuery.swift
[886/945] Compiling FluentKit QueryHistory.swift
[887/945] Compiling FluentKit DatabaseSchema.swift
[888/945] Compiling FluentKit SchemaBuilder.swift
[889/945] Compiling FluentKit OptionalType.swift
[890/945] Compiling FluentKit RandomGeneratable.swift
[891/945] Emitting module FluentKit
[892/945] Compiling FluentKit DatabaseOutput.swift
[893/945] Compiling FluentKit Databases.swift
[894/945] Compiling FluentKit TransactionControlDatabase.swift
[895/945] Compiling FluentKit DatabaseEnum.swift
[896/945] Compiling FluentKit EnumBuilder.swift
[897/945] Compiling FluentKit EnumMetadata.swift
[898/945] Compiling FluentKit EnumProperty.swift
[899/945] Compiling FluentKit OptionalEnumProperty.swift
[900/945] Compiling FluentKit Exports.swift
[901/945] Compiling FluentKit FluentError.swift
[902/945] Compiling FluentKit ModelMiddleware.swift
[903/945] Compiling FluentKit ModelResponder.swift
[904/945] Compiling FluentKit Migration.swift
[905/945] Compiling FluentKit MigrationLog.swift
[906/945] Compiling FluentKit Migrations.swift
[907/945] Compiling FluentKit Migrator.swift
[908/945] Compiling FluentKit AnyModel.swift
[909/945] Compiling FluentKit EagerLoad.swift
[910/945] Compiling FluentKit Fields+Codable.swift
[911/945] Compiling FluentKit Fields.swift
[912/945] Compiling FluentKit MirrorBypass.swift
[913/945] Compiling FluentKit Model+CRUD.swift
[914/945] Compiling FluentKit Model.swift
[915/945] Compiling FluentKit ModelAlias.swift
[916/945] Compiling FluentKit Schema.swift
[917/945] Compiling FluentKit FieldOperators.swift
[918/945] Compiling FluentKit Operators.swift
[919/945] Compiling FluentKit Group.swift
[920/945] Compiling FluentKit ID.swift
[921/945] Compiling FluentKit OptionalBoolean.swift
[922/945] Compiling FluentKit OptionalChild.swift
[923/945] Compiling FluentKit OptionalField.swift
[924/945] Compiling FluentKit OptionalParent.swift
[925/945] Compiling FluentKit Parent.swift
[926/945] Compiling FluentKit Property.swift
[927/945] Compiling FluentKit Relation.swift
[928/945] Compiling FluentKit ValueOperators+Array.swift
[929/945] Compiling FluentKit ValueOperators+String.swift
[930/945] Compiling FluentKit ValueOperators.swift
[931/945] Compiling FluentKit Boolean.swift
[932/945] Compiling FluentKit BooleanPropertyFormat.swift
[933/945] Compiling FluentKit Children.swift
[934/945] Compiling FluentKit CompositeID.swift
[935/945] Compiling FluentKit Field.swift
[936/945] Compiling FluentKit FieldKey.swift
[937/945] Compiling FluentKit Siblings.swift
[938/945] Compiling FluentKit Timestamp.swift
[939/945] Compiling FluentKit TimestampFormat.swift
[940/945] Compiling FluentKit QueryBuilder+Aggregate.swift
[941/945] Compiling FluentKit QueryBuilder+EagerLoad.swift
[942/945] Compiling FluentKit QueryBuilder+Filter.swift
[943/945] Compiling FluentKit QueryBuilder+Group.swift
[944/945] Compiling FluentKit QueryBuilder+Join.swift
[945/945] Compiling FluentKit QueryBuilder+Paginate.swift
[946/969] Compiling FluentMongo MongoConnection.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:34:21: warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
| `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
14 |
15 | public static func connect(
:
32 |
33 | logger.debug("Connected to mongo db: \(database)")
34 | promise.succeed(connection)
| `- warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
35 | } catch {
36 | logger.error("Failed to connect to mongo db: \(database). \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:77:17: warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
| `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
14 |
15 | public static func connect(
:
75 | switch result {
76 | case .success:
77 | self.isClosed = true
| `- warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | default:
79 | break
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:96:17: warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | for result in results {
96 | onOutput(result)
| |- warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | }
98 |
[947/969] Compiling FluentMongo MongoConnectionSource.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:34:21: warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
| `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
14 |
15 | public static func connect(
:
32 |
33 | logger.debug("Connected to mongo db: \(database)")
34 | promise.succeed(connection)
| `- warning: type 'MongoConnection' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
35 | } catch {
36 | logger.error("Failed to connect to mongo db: \(database). \(error.localizedDescription)")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:77:17: warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
| `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
14 |
15 | public static func connect(
:
75 | switch result {
76 | case .success:
77 | self.isClosed = true
| `- warning: capture of 'self' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 | default:
79 | break
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:96:17: warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
94 |
95 | for result in results {
96 | onOutput(result)
| |- warning: capture of 'onOutput' with non-sendable type '(any DatabaseOutput) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
97 | }
98 |
[948/971] Compiling FluentMongo DatabaseQueryOffset+Mongo.swift
[949/971] Compiling FluentMongo DatabaseQuerySort+Mongo.swift
[950/971] Compiling FluentMongo DatabaseQueryValue+Mongo.swift
[951/971] Emitting module FluentMongo
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
<module-includes>:1:9: note: in file included from <module-includes>:1:
1 | #import "/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h"
| `- note: in file included from <module-includes>:1:
2 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/CLibMongoC/include/CLibMongoC.h: 0:
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
50 | }
51 |
52 | extension DatabaseQuery.Aggregate.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
53 |
54 | func mongoAccumulatorOperator() throws -> String {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
62 | }
63 |
64 | extension DatabaseQuery.Join.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
65 |
66 | public enum Mongo: Equatable {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConfiguration.swift:85:14: warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
78 | extension MongoConfiguration {
79 |
80 | public enum EnvironmentKey: String {
| `- note: consider making enum 'EnvironmentKey' conform to the 'Sendable' protocol
81 | case connectionURL = "FLUENT_MONGO_CONNECTION_URL"
82 | }
83 |
84 | public enum Error: Swift.Error {
85 | case missingEnvironmentKey(EnvironmentKey)
| `- warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
86 | }
87 | }
[952/971] Compiling FluentMongo DatabaseSchema+Mongo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:129:21: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 | @discardableResult
128 | public func flatMapErrorIfDuplicatedKey(_ callback: @escaping (Error) -> EventLoopFuture<Value>) -> EventLoopFuture<Value> {
129 | return self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | guard
131 | let mongoError = error as? Error,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:137:20: warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | }
136 |
137 | return callback(mongoError)
| |- warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:151:24: warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | return try callback(mongoError)
| |- warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 | }
153 | }
[953/971] Compiling FluentMongo Document+Nested.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:129:21: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 | @discardableResult
128 | public func flatMapErrorIfDuplicatedKey(_ callback: @escaping (Error) -> EventLoopFuture<Value>) -> EventLoopFuture<Value> {
129 | return self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | guard
131 | let mongoError = error as? Error,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:137:20: warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | }
136 |
137 | return callback(mongoError)
| |- warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:151:24: warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | return try callback(mongoError)
| |- warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 | }
153 | }
[954/971] Compiling FluentMongo Error.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:129:21: warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 | @discardableResult
128 | public func flatMapErrorIfDuplicatedKey(_ callback: @escaping (Error) -> EventLoopFuture<Value>) -> EventLoopFuture<Value> {
129 | return self.flatMapError { error in
| `- warning: type 'Value' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 | guard
131 | let mongoError = error as? Error,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:137:20: warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 | }
136 |
137 | return callback(mongoError)
| |- warning: capture of 'callback' with non-sendable type '(Error) -> EventLoopFuture<Value>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
138 | }
139 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/Error.swift:151:24: warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
149 | }
150 |
151 | return try callback(mongoError)
| |- warning: capture of 'callback' with non-sendable type '(Error) throws -> Value' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
152 | }
153 | }
[955/971] Compiling FluentMongo Exports.swift
[956/971] Compiling FluentMongo Fluent+Additions.swift
[957/971] Compiling FluentMongo FluentMongoConfiguration.swift
[958/971] Compiling FluentMongo IndexBuilder.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConfiguration.swift:85:14: warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
78 | extension MongoConfiguration {
79 |
80 | public enum EnvironmentKey: String {
| `- note: consider making enum 'EnvironmentKey' conform to the 'Sendable' protocol
81 | case connectionURL = "FLUENT_MONGO_CONNECTION_URL"
82 | }
83 |
84 | public enum Error: Swift.Error {
85 | case missingEnvironmentKey(EnvironmentKey)
| `- warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
86 | }
87 | }
[959/971] Compiling FluentMongo MongoConfiguration.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConfiguration.swift:85:14: warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
78 | extension MongoConfiguration {
79 |
80 | public enum EnvironmentKey: String {
| `- note: consider making enum 'EnvironmentKey' conform to the 'Sendable' protocol
81 | case connectionURL = "FLUENT_MONGO_CONNECTION_URL"
82 | }
83 |
84 | public enum Error: Swift.Error {
85 | case missingEnvironmentKey(EnvironmentKey)
| `- warning: associated value 'missingEnvironmentKey' of 'Sendable'-conforming enum 'Error' has non-sendable type 'MongoConfiguration.EnvironmentKey'; this is an error in the Swift 6 language mode
86 | }
87 | }
[960/971] Compiling FluentMongo DatabaseQueryFilter+Mongo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
62 | }
63 |
64 | extension DatabaseQuery.Join.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
65 |
66 | public enum Mongo: Equatable {
[961/971] Compiling FluentMongo DatabaseQueryJoin+Mongo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
62 | }
63 |
64 | extension DatabaseQuery.Join.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
65 |
66 | public enum Mongo: Equatable {
[962/971] Compiling FluentMongo DatabaseQueryLimit+Mongo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryJoin+Mongo.swift:64:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
62 | }
63 |
64 | extension DatabaseQuery.Join.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
65 |
66 | public enum Mongo: Equatable {
[963/971] Compiling FluentMongo MongoDatabase.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | return self.execute(closure) { result in
34 | results.append(result)
35 | }.map { results }
| `- warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
8 |
9 | import Foundation
10 | import FluentKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
11 | import MongoSwift
12 |
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
33 | return self.execute(closure) { result in
34 | results.append(result)
35 | }.map { results }
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:80:44: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
80 | session.startTransaction().flatMap {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
81 | let transactionDatabase = FluentMongoDatabase(
82 | database: connection,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:90:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
:
88 |
89 | return closure(transactionDatabase)
90 | .flatMap { value in
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
91 | session.commitTransaction().map { value }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:93:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
:
91 | session.commitTransaction().map { value }
92 | }
93 | .flatMapError { error in
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 | session.abortTransaction().flatMapThrowing { throw error }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:82:35: warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | session.startTransaction().flatMap {
81 | let transactionDatabase = FluentMongoDatabase(
82 | database: connection,
| `- warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | context: self.context,
84 | session: session,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:13:13: note: class 'MongoConnection' does not conform to the 'Sendable' protocol
11 | import MongoSwift
12 |
13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
| `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
14 |
15 | public static func connect(
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:83:34: warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | struct FluentMongoDatabase: Database {
| `- note: consider making struct 'FluentMongoDatabase' conform to the 'Sendable' protocol
40 |
41 | let database: MongoDatabase
:
81 | let transactionDatabase = FluentMongoDatabase(
82 | database: connection,
83 | context: self.context,
| `- warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | session: session,
85 | encoder: self.encoder,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:84:34: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | database: connection,
83 | context: self.context,
84 | session: session,
| `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | encoder: self.encoder,
86 | decoder: self.decoder
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
12 |
13 | protocol MongoDatabase {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:89:28: warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | )
88 |
89 | return closure(transactionDatabase)
| |- warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
90 | .flatMap { value in
91 | session.commitTransaction().map { value }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | return closure(transactionDatabase)
90 | .flatMap { value in
91 | session.commitTransaction().map { value }
| `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | .flatMapError { error in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:63: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
:
89 | return closure(transactionDatabase)
90 | .flatMap { value in
91 | session.commitTransaction().map { value }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | .flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:94:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | .flatMapError { error in
94 | session.abortTransaction().flatMapThrowing { throw error }
| `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[964/971] Compiling FluentMongo MongoDatabaseDriver.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 | return self.execute(closure) { result in
34 | results.append(result)
35 | }.map { results }
| `- warning: capture of 'results' with non-sendable type '[any DatabaseOutput]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
8 |
9 | import Foundation
10 | import FluentKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
11 | import MongoSwift
12 |
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:35:17: warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
33 | return self.execute(closure) { result in
34 | results.append(result)
35 | }.map { results }
| `- warning: reference to captured var 'results' in concurrently-executing code; this is an error in the Swift 6 language mode
36 | }
37 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:80:44: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
80 | session.startTransaction().flatMap {
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
81 | let transactionDatabase = FluentMongoDatabase(
82 | database: connection,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:90:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
:
88 |
89 | return closure(transactionDatabase)
90 | .flatMap { value in
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
91 | session.commitTransaction().map { value }
92 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:93:26: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
:
91 | session.commitTransaction().map { value }
92 | }
93 | .flatMapError { error in
| `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
94 | session.abortTransaction().flatMapThrowing { throw error }
95 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:82:35: warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | session.startTransaction().flatMap {
81 | let transactionDatabase = FluentMongoDatabase(
82 | database: connection,
| `- warning: capture of 'connection' with non-sendable type 'MongoConnection' in a `@Sendable` closure; this is an error in the Swift 6 language mode
83 | context: self.context,
84 | session: session,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoConnection.swift:13:13: note: class 'MongoConnection' does not conform to the 'Sendable' protocol
11 | import MongoSwift
12 |
13 | final class MongoConnection: ConnectionPoolItem, MongoDatabase {
| `- note: class 'MongoConnection' does not conform to the 'Sendable' protocol
14 |
15 | public static func connect(
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:83:34: warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
37 | }
38 |
39 | struct FluentMongoDatabase: Database {
| `- note: consider making struct 'FluentMongoDatabase' conform to the 'Sendable' protocol
40 |
41 | let database: MongoDatabase
:
81 | let transactionDatabase = FluentMongoDatabase(
82 | database: connection,
83 | context: self.context,
| `- warning: capture of 'self' with non-sendable type 'FluentMongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
84 | session: session,
85 | encoder: self.encoder,
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:84:34: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
82 | database: connection,
83 | context: self.context,
84 | session: session,
| `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
85 | encoder: self.encoder,
86 | decoder: self.decoder
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
12 |
13 | protocol MongoDatabase {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:89:28: warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
87 | )
88 |
89 | return closure(transactionDatabase)
| |- warning: capture of 'closure' with non-sendable type '(any Database) -> EventLoopFuture<T>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
| `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
90 | .flatMap { value in
91 | session.commitTransaction().map { value }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
89 | return closure(transactionDatabase)
90 | .flatMap { value in
91 | session.commitTransaction().map { value }
| `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | .flatMapError { error in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:91:63: warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
75 | }
76 |
77 | func transaction<T>(_ closure: @escaping (Database) -> EventLoopFuture<T>) -> EventLoopFuture<T> {
| `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
78 | self.database.withConnection { connection in
79 | connection.withSession { session in
:
89 | return closure(transactionDatabase)
90 | .flatMap { value in
91 | session.commitTransaction().map { value }
| `- warning: capture of 'value' with non-sendable type 'T' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | .flatMapError { error in
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoDatabase.swift:94:29: warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
92 | }
93 | .flatMapError { error in
94 | session.abortTransaction().flatMapThrowing { throw error }
| `- warning: capture of 'session' with non-sendable type 'ClientSession' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[965/971] Compiling FluentMongo BSONCoder+BSON.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
50 | }
51 |
52 | extension DatabaseQuery.Aggregate.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
53 |
54 | func mongoAccumulatorOperator() throws -> String {
[966/971] Compiling FluentMongo DatabaseQueryAggregate+Mongo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
50 | }
51 |
52 | extension DatabaseQuery.Aggregate.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
53 |
54 | func mongoAccumulatorOperator() throws -> String {
[967/971] Compiling FluentMongo DatabaseQueryField+Mongo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/DatabaseQueryAggregate+Mongo.swift:52:1: warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
50 | }
51 |
52 | extension DatabaseQuery.Aggregate.Method: Equatable {
| |- warning: extension declares a conformance of imported type 'Method' to imported protocol 'Equatable'; this will not behave correctly if the owners of 'FluentKit' introduce this conformance in the future
| `- note: add '@retroactive' to silence this warning
53 |
54 | func mongoAccumulatorOperator() throws -> String {
[968/971] Compiling FluentMongo MongoDatabaseOutput.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:63:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
61 | let pipeline = try self.aggregationPipeline()
62 |
63 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 | cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
65 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
8 |
9 | import Foundation
10 | import FluentKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
11 | import MongoSwift
12 |
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
62 |
63 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
64 | cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
62 |
63 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
64 | cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
65 | }
66 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:77:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | let pipeline = try self.aggregationPipeline()
76 |
77 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
| `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
81 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
1 | extension DatabaseQuery {
2 | public enum Aggregate {
| `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
3 | public enum Method {
4 | case count
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
| `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
81 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
1 | extension DatabaseQuery {
2 | public enum Aggregate {
| `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
3 | public enum Method {
4 | case count
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
81 | }
82 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:97:23: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | guard documents.count == result.insertedCount else {
| `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | throw Error.insertManyMismatch(documents.count, result.insertedCount)
99 | }
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
12 |
13 | struct MongoQueryConverter {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
100 |
101 | return result.insertedIDs.map {
102 | BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 | }.flatMapErrorThrowing { error in
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
100 |
101 | return result.insertedIDs.map {
102 | BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
103 | }
104 | }.flatMapErrorThrowing { error in
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:123:66: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | let documents: [BSONDocument] = try self.query.input.compactMap { try $0.mongoValueUpdate(encoder: self.encoder)?.documentValue }
122 |
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:34: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 |
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
124 | let collection = database.collection(self.query.schema)
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:54: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
122 |
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
124 | let collection = database.collection(self.query.schema)
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:125:31: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
| `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 | collection.updateMany(filter: filter, update: document, session: session)
127 | }.flatten(on: eventLoop)
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | }.flatten(on: eventLoop)
128 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
127 | }.flatten(on: eventLoop)
128 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:137:62: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 |
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
139 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:13: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:33: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:80: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:143:96: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
141 |
142 | private func custom(_ command: BSONDocument, _ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
143 | return database.runCommand(command, session: session).map { [$0.databaseOutput(fields: self.query.fields, using: self.decoder)] }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:198:30: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
196 |
197 | guard !self.query.filters.isEmpty else {
198 | return eventLoop.makeSucceededFuture(.init())
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
199 | }
200 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:213:97: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
211 | pipeline.append(["$project": ["_id": true]])
212 |
213 | return database.collection(self.query.schema).aggregate(pipeline, session: session).flatMap { cursor in
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
214 | cursor.toArray().map {
215 | ["_id": ["$in": .array($0.compactMap { $0["_id"] })]]
/Users/admin/builder/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)
[969/971] Compiling FluentMongo MongoQueryConverter.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:63:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
61 | let pipeline = try self.aggregationPipeline()
62 |
63 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 | cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
65 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:10:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
8 |
9 | import Foundation
10 | import FluentKit
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FluentKit'
11 | import MongoSwift
12 |
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
62 |
63 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
64 | cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
65 | }
66 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:64:70: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
62 |
63 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
64 | cursor.toArray().mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
65 | }
66 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:77:83: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
75 | let pipeline = try self.aggregationPipeline()
76 |
77 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
| `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
81 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
1 | extension DatabaseQuery {
2 | public enum Aggregate {
| `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
3 | public enum Method {
4 | case count
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 | }
82 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:79:58: warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | return collection.aggregate(pipeline, options: nil, session: session).flatMap { cursor in
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
| `- warning: capture of 'aggregate' with non-sendable type 'DatabaseQuery.Aggregate' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
81 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Query/Database/DatabaseQuery+Aggregate.swift:2:17: note: enum 'Aggregate' does not conform to the 'Sendable' protocol
1 | extension DatabaseQuery {
2 | public enum Aggregate {
| `- note: enum 'Aggregate' does not conform to the 'Sendable' protocol
3 | public enum Method {
4 | case count
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:80:58: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
78 | cursor.toArray()
79 | .flatMapThrowing { $0.isEmpty ? [try aggregate.mongoAggregationEmptyResult()] : $0 }
80 | .mapEach { $0.databaseOutput(fields: self.query.fields, using: self.decoder) }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
81 | }
82 | } catch {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:97:23: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
95 | }
96 |
97 | guard documents.count == result.insertedCount else {
| `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
98 | throw Error.insertManyMismatch(documents.count, result.insertedCount)
99 | }
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'SwiftBSON'
12 |
13 | struct MongoQueryConverter {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
100 |
101 | return result.insertedIDs.map {
102 | BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
103 | }
104 | }.flatMapErrorThrowing { error in
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:102:110: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
100 |
101 | return result.insertedIDs.map {
102 | BSONDocument(dictionaryLiteral: (FieldKey.id.mongoKey, $0.value)).databaseOutput(fields: self.query.fields, using: self.decoder)
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in an isolated closure; this is an error in the Swift 6 language mode
103 | }
104 | }.flatMapErrorThrowing { error in
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:123:66: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
121 | let documents: [BSONDocument] = try self.query.input.compactMap { try $0.mongoValueUpdate(encoder: self.encoder)?.documentValue }
122 |
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:34: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 |
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
124 | let collection = database.collection(self.query.schema)
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:124:54: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
122 |
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
124 | let collection = database.collection(self.query.schema)
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:125:31: warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
123 | return self.filter(database, session, on: eventLoop).flatMap { filter in
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
| `- warning: capture of 'documents' with non-sendable type '[BSONDocument]' in a `@Sendable` closure; this is an error in the Swift 6 language mode
126 | collection.updateMany(filter: filter, update: document, session: session)
127 | }.flatten(on: eventLoop)
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
127 | }.flatten(on: eventLoop)
128 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:126:86: warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
124 | let collection = database.collection(self.query.schema)
125 | let updates = documents.map { document in
126 | collection.updateMany(filter: filter, update: document, session: session)
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in an isolated closure; this is an error in the Swift 6 language mode
127 | }.flatten(on: eventLoop)
128 |
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:137:62: warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
135 |
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
| `- warning: type 'any DatabaseOutput' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
139 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/fluent-kit/Sources/FluentKit/Database/DatabaseOutput.swift:1:17: note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
1 | public protocol DatabaseOutput: CustomStringConvertible {
| `- note: protocol 'DatabaseOutput' does not conform to the 'Sendable' protocol
2 | func schema(_ schema: String) -> DatabaseOutput
3 | func contains(_ key: FieldKey) -> Bool
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:13: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:33: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:138:80: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
136 | private func delete(_ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
137 | return self.filter(database, session, on: eventLoop).flatMap { filter in
138 | database.collection(self.query.schema).deleteMany(filter, session: session).transform(to: [])
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
139 | }
140 | }
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:143:96: warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoQueryConverter {
| `- note: consider making struct 'MongoQueryConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ query: DatabaseQuery, encoder: BSONEncoder, decoder: BSONDecoder) {
:
141 |
142 | private func custom(_ command: BSONDocument, _ database: MongoSwift.MongoDatabase, _ session: ClientSession?, on eventLoop: EventLoop) -> EventLoopFuture<[DatabaseOutput]> {
143 | return database.runCommand(command, session: session).map { [$0.databaseOutput(fields: self.query.fields, using: self.decoder)] }
| `- warning: capture of 'self' with non-sendable type 'MongoQueryConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
144 | }
145 | }
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:198:30: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
196 |
197 | guard !self.query.filters.isEmpty else {
198 | return eventLoop.makeSucceededFuture(.init())
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
199 | }
200 |
/Users/admin/builder/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)
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoQueryConverter.swift:213:97: warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
211 | pipeline.append(["$project": ["_id": true]])
212 |
213 | return database.collection(self.query.schema).aggregate(pipeline, session: session).flatMap { cursor in
| `- warning: type 'BSONDocument' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
214 | cursor.toArray().map {
215 | ["_id": ["$in": .array($0.compactMap { $0["_id"] })]]
/Users/admin/builder/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)
[970/971] Compiling FluentMongo MongoSchemaConverter.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | switch error {
41 | case let error as MongoError.CommandError where error.code == 48:
42 | return database.collection(self.schema.schema) // Collection already exists
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | default:
44 | throw error
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
12 |
13 | struct MongoSchemaConverter {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:48: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
| `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ schema: DatabaseSchema) {
:
40 | switch error {
41 | case let error as MongoError.CommandError where error.code == 48:
42 | return database.collection(self.schema.schema) // Collection already exists
| `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | default:
44 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:48:43: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
| `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ schema: DatabaseSchema) {
:
46 | }.flatMap { collection in
47 | do {
48 | let indexModels = try self.schema.createConstraints.mongoIndexes()
| `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | guard !indexModels.isEmpty else {
50 | return eventLoop.makeSucceededFuture(Void())
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:52:75: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return eventLoop.makeSucceededFuture(Void())
51 | }
52 | return collection.createIndexes(indexModels, session: session).transform(to: Void())
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | } catch {
54 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:66:14: warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 | return database
65 | .listCollections(["name": .string(self.schema.schema)], session: session)
66 | .flatMap { $0.toArray() }
| `- warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | .flatMap {
68 | do {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/Operations/ListCollectionsOperation.swift:57:15: note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
55 | * - https://docs.mongodb.com/manual/reference/command/listCollections/#listCollections.cursor
56 | */
57 | public struct CollectionSpecification: Codable {
| `- note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
58 | /// The name of the collection.
59 | public let name: String
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:70:56: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
| `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ schema: DatabaseSchema) {
:
68 | do {
69 | guard let collectionSpecification = $0.first else {
70 | throw Error.collectionNotFound(self.schema.schema)
| `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:75:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | let validator = try self.schema.updateFields.mongoValidator(updating: collectionSpecification.options?.validator)
74 |
75 | return database.runCommand([
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | "collMod": .string(self.schema.schema),
77 | "validator": .document(validator),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:79:33: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | "validator": .document(validator),
78 | "validationLevel": "moderate"
79 | ], session: session).transform(to: Void())
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | } catch {
81 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
[971/971] Compiling FluentMongo QueryBuilder+Mongo.swift
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
40 | switch error {
41 | case let error as MongoError.CommandError where error.code == 48:
42 | return database.collection(self.schema.schema) // Collection already exists
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | default:
44 | throw error
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:11:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
9 | import Foundation
10 | import FluentKit
11 | import MongoSwift
| `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'MongoSwift'
12 |
13 | struct MongoSchemaConverter {
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:42:48: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
| `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ schema: DatabaseSchema) {
:
40 | switch error {
41 | case let error as MongoError.CommandError where error.code == 48:
42 | return database.collection(self.schema.schema) // Collection already exists
| `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
43 | default:
44 | throw error
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:48:43: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
| `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ schema: DatabaseSchema) {
:
46 | }.flatMap { collection in
47 | do {
48 | let indexModels = try self.schema.createConstraints.mongoIndexes()
| `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
49 | guard !indexModels.isEmpty else {
50 | return eventLoop.makeSucceededFuture(Void())
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:52:75: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
50 | return eventLoop.makeSucceededFuture(Void())
51 | }
52 | return collection.createIndexes(indexModels, session: session).transform(to: Void())
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
53 | } catch {
54 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:66:14: warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
64 | return database
65 | .listCollections(["name": .string(self.schema.schema)], session: session)
66 | .flatMap { $0.toArray() }
| `- warning: type 'CollectionSpecification' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
67 | .flatMap {
68 | do {
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/Operations/ListCollectionsOperation.swift:57:15: note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
55 | * - https://docs.mongodb.com/manual/reference/command/listCollections/#listCollections.cursor
56 | */
57 | public struct CollectionSpecification: Codable {
| `- note: struct 'CollectionSpecification' does not conform to the 'Sendable' protocol
58 | /// The name of the collection.
59 | public let name: String
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:70:56: warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
11 | import MongoSwift
12 |
13 | struct MongoSchemaConverter {
| `- note: consider making struct 'MongoSchemaConverter' conform to the 'Sendable' protocol
14 |
15 | public init(_ schema: DatabaseSchema) {
:
68 | do {
69 | guard let collectionSpecification = $0.first else {
70 | throw Error.collectionNotFound(self.schema.schema)
| `- warning: capture of 'self' with non-sendable type 'MongoSchemaConverter' in a `@Sendable` closure; this is an error in the Swift 6 language mode
71 | }
72 |
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:75:28: warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
73 | let validator = try self.schema.updateFields.mongoValidator(updating: collectionSpecification.options?.validator)
74 |
75 | return database.runCommand([
| `- warning: capture of 'database' with non-sendable type 'MongoDatabase' in a `@Sendable` closure; this is an error in the Swift 6 language mode
76 | "collMod": .string(self.schema.schema),
77 | "validator": .document(validator),
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/MongoDatabase.swift:61:15: note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
59 | // sourcery: skipSyncExport
60 | /// A MongoDB Database.
61 | public struct MongoDatabase {
| `- note: struct 'MongoDatabase' does not conform to the 'Sendable' protocol
62 | /// The client which this database was derived from.
63 | internal let _client: MongoClient
/Users/admin/builder/spi-builder-workspace/Sources/FluentMongo/MongoSchemaConverter.swift:79:33: warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
77 | "validator": .document(validator),
78 | "validationLevel": "moderate"
79 | ], session: session).transform(to: Void())
| `- warning: capture of 'session' with non-sendable type 'ClientSession?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
80 | } catch {
81 | return eventLoop.makeFailedFuture(error)
/Users/admin/builder/spi-builder-workspace/.build/checkouts/mongo-swift-driver/Sources/MongoSwift/ClientSession.swift:35:20: note: class 'ClientSession' does not conform to the 'Sendable' protocol
33 | * - https://docs.mongodb.com/manual/core/causal-consistency-read-write-concerns/
34 | */
35 | public final class ClientSession {
| `- note: class 'ClientSession' does not conform to the 'Sendable' protocol
36 | /// Error thrown when an inactive session is used.
37 | internal static let SessionInactiveError = MongoError.LogicError(message: "Tried to use an inactive session")
Build complete! (75.74s)
warning: 'swift-algorithms': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
/Users/admin/builder/spi-builder-workspace/.build/checkouts/swift-algorithms/Sources/Algorithms/Documentation.docc
Build complete.
{
"dependencies" : [
{
"identity" : "fluent-kit",
"requirement" : {
"range" : [
{
"lower_bound" : "1.36.1",
"upper_bound" : "1.37.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/vapor/fluent-kit.git"
},
{
"identity" : "mongo-swift-driver",
"requirement" : {
"range" : [
{
"lower_bound" : "1.3.1",
"upper_bound" : "2.0.0"
}
]
},
"type" : "sourceControl",
"url" : "https://github.com/mongodb/mongo-swift-driver.git"
}
],
"manifest_display_name" : "FluentMongo",
"name" : "FluentMongo",
"path" : "/Users/admin/builder/spi-builder-workspace",
"platforms" : [
{
"name" : "macos",
"version" : "10.15"
}
],
"products" : [
{
"name" : "FluentMongo",
"targets" : [
"FluentMongo"
],
"type" : {
"library" : [
"automatic"
]
}
}
],
"targets" : [
{
"c99name" : "FluentMongoTests",
"module_type" : "SwiftTarget",
"name" : "FluentMongoTests",
"path" : "Tests/FluentMongoTests",
"product_dependencies" : [
"FluentBenchmark"
],
"sources" : [
"FluentBenchmarkTests.swift",
"FluentMongoTests.swift",
"Pet.swift",
"PetToy.swift",
"Toy.swift",
"User.swift"
],
"target_dependencies" : [
"FluentMongo"
],
"type" : "test"
},
{
"c99name" : "FluentMongo",
"module_type" : "SwiftTarget",
"name" : "FluentMongo",
"path" : "Sources/FluentMongo",
"product_dependencies" : [
"FluentKit",
"MongoSwift"
],
"product_memberships" : [
"FluentMongo"
],
"sources" : [
"BSONCoder+BSON.swift",
"DatabaseQueryAggregate+Mongo.swift",
"DatabaseQueryField+Mongo.swift",
"DatabaseQueryFilter+Mongo.swift",
"DatabaseQueryJoin+Mongo.swift",
"DatabaseQueryLimit+Mongo.swift",
"DatabaseQueryOffset+Mongo.swift",
"DatabaseQuerySort+Mongo.swift",
"DatabaseQueryValue+Mongo.swift",
"DatabaseSchema+Mongo.swift",
"Document+Nested.swift",
"Error.swift",
"Exports.swift",
"Fluent+Additions.swift",
"FluentMongoConfiguration.swift",
"IndexBuilder.swift",
"MongoConfiguration.swift",
"MongoConnection.swift",
"MongoConnectionSource.swift",
"MongoDatabase.swift",
"MongoDatabaseDriver.swift",
"MongoDatabaseOutput.swift",
"MongoQueryConverter.swift",
"MongoSchemaConverter.swift",
"QueryBuilder+Mongo.swift"
],
"type" : "library"
}
],
"tools_version" : "5.7"
}
Done.