The Swift Package Index logo.Swift Package Index

Build Information

Successful build of NyaruDB2, reference main (320682), with Swift 6.2 for macOS (SPM) on 23 Jun 2025 21:18:04 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/galileostudio/nyarudb2.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/galileostudio/nyarudb2
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 3206824 Merge pull request #4 from sciasxp/persistency_lifecycle
Cloned https://github.com/galileostudio/nyarudb2.git
Revision (git rev-parse @):
3206824a00ae9b63e78bce5ec0a2b7cf1d9014a1
SUCCESS checkout https://github.com/galileostudio/nyarudb2.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/galileostudio/nyarudb2.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/12] Write sources
[0/12] Write Benchmark-entitlement.plist
[0/12] Write sources
[3/12] Write QuickStartRunner-entitlement.plist
[3/12] Write sources
[5/12] Write swift-version-1EA4D86E10B52AF.txt
[7/26] Compiling NyaruDB2 Shard.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:164:41: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 |             Task {
163 |                 do {
164 |                     let docs: [T] = try await self.loadDocuments()
    |                                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
165 |                     for doc in docs {
166 |                         continuation.yield(doc)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/ShardManager/Shard.swift:161:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
159 |     public func loadDocumentsLazy<T: Codable>() -> AsyncThrowingStream<T, Error>
160 |     {
161 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
162 |             Task {
163 |                 do {
[8/26] Emitting module NyaruDB2
[9/26] Compiling NyaruDB2 CollectionCatalog.swift
[10/26] Compiling NyaruDB2 DocumentCollection.swift
[11/27] Compiling NyaruDB2 StatsEngine.swift
[12/27] Compiling NyaruDB2 DynamicDecoder.swift
[13/27] Compiling NyaruDB2 FileProtection.swift
[14/27] Compiling NyaruDB2 BTreeIndex.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:288:44: warning: capture of non-sendable type 'Key.Type' in an isolated closure
286 |                     // Encode the tree (here we encode the root which is recursive)
287 |                     let encoder = JSONEncoder()
288 |                     let data = try encoder.encode(currentRoot)
    |                                            `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
289 |
290 |                     // Optionally, compress the data before writing.
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:282:13: warning: capture of non-sendable type 'Key.Type' in an isolated closure
280 |     ///   storage space available for the operation to complete successfully.
281 |     public func persist(to url: URL) async throws {
282 |         let currentRoot = self.root
    |             `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
283 |         try await withCheckedThrowingContinuation { continuation in
284 |             serializationQueue.async {
[15/27] Compiling NyaruDB2 IndexManager.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:288:44: warning: capture of non-sendable type 'Key.Type' in an isolated closure
286 |                     // Encode the tree (here we encode the root which is recursive)
287 |                     let encoder = JSONEncoder()
288 |                     let data = try encoder.encode(currentRoot)
    |                                            `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
289 |
290 |                     // Optionally, compress the data before writing.
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/IndexManager/BTreeIndex.swift:282:13: warning: capture of non-sendable type 'Key.Type' in an isolated closure
280 |     ///   storage space available for the operation to complete successfully.
281 |     public func persist(to url: URL) async throws {
282 |         let currentRoot = self.root
    |             `- warning: capture of non-sendable type 'Key.Type' in an isolated closure
283 |         try await withCheckedThrowingContinuation { continuation in
284 |             serializationQueue.async {
[16/27] Compiling NyaruDB2 ShardManager.swift
[17/27] Compiling NyaruDB2 StorageEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:156:31: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
154 |         -> AsyncThrowingStream<T, Error>
155 |     {
156 |         AsyncThrowingStream { continuation in
    |                               `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
157 |             Task {
158 |                 do {
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:165:21: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 |                                 .forEach { continuation.yield($0) }
164 |                         }
165 |                     continuation.finish()
    |                     `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 |                 } catch {
167 |                     continuation.finish(throwing: error)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/StorageEngine/StorageEngine.swift:566:29: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
564 |     /// - Returns: An array containing the transformed elements.
565 |     /// - Throws: Rethrows any error thrown by the `transform` closure.
566 |     func concurrentMap<T>(_ transform: @escaping (Element) async throws -> T)
    |                             `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
567 |         async rethrows -> [T]
568 |     {
[18/27] Compiling NyaruDB2 QueryEngine.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:130:25: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
128 |             for value in values {
129 |                 group.addTask {
130 |                     try await self.storage.fetchFromIndex(
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 |                         collection: self.collection,
132 |                         field: indexField,
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:112:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 |     /// - Throws: An error if the execution of the query fails.
111 |     /// - Note: This method is asynchronous and must be called with `await`.
112 |     private func executeIndexOnly(plan: ExecutionPlan) async throws -> [T] {
    |                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |
114 |         guard let indexField = plan.usedIndex else { return [] }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:165:41: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 |             for shard in shards {
164 |                 group.addTask {
165 |                     let docs: [T] = try await shard.loadDocuments()
    |                                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 |
167 |                     return docs.filter { self.evaluateDocument($0) }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:151:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
149 |     /// - Throws: An error if the execution fails.
150 |     /// - Note: This method is asynchronous and must be called with `await`.
151 |     private func executeHybrid(plan: ExecutionPlan) async throws -> [T] {
    |                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 |
153 |         let allShards = try await storage.getShardManagers(for: collection)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:353:30: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
351 |                     // Obtém os shards da coleção
352 |                     let shards = try await storage.getShardManagers(
353 |                         for: collection
    |                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
354 |                     )
355 |                     // Itera sobre os shards
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:347:17: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
345 |     /// - Returns: An `AsyncThrowingStream` of type `T` that can throw an error during iteration.
346 |     /// - Throws: An error if the stream encounters an issue during fetching.
347 |     public func fetchStream(from storage: StorageEngine) -> AsyncThrowingStream<T, Error> {
    |                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
348 |         AsyncThrowingStream { continuation in
349 |             Task {
[19/27] Compiling NyaruDB2 QueryPlanner.swift
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:130:25: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
128 |             for value in values {
129 |                 group.addTask {
130 |                     try await self.storage.fetchFromIndex(
    |                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
131 |                         collection: self.collection,
132 |                         field: indexField,
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:112:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 |     /// - Throws: An error if the execution of the query fails.
111 |     /// - Note: This method is asynchronous and must be called with `await`.
112 |     private func executeIndexOnly(plan: ExecutionPlan) async throws -> [T] {
    |                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |
114 |         guard let indexField = plan.usedIndex else { return [] }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:165:41: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
163 |             for shard in shards {
164 |                 group.addTask {
165 |                     let docs: [T] = try await shard.loadDocuments()
    |                                         `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
166 |
167 |                     return docs.filter { self.evaluateDocument($0) }
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:151:18: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
149 |     /// - Throws: An error if the execution fails.
150 |     /// - Note: This method is asynchronous and must be called with `await`.
151 |     private func executeHybrid(plan: ExecutionPlan) async throws -> [T] {
    |                  `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
152 |
153 |         let allShards = try await storage.getShardManagers(for: collection)
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:353:30: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
351 |                     // Obtém os shards da coleção
352 |                     let shards = try await storage.getShardManagers(
353 |                         for: collection
    |                              `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
354 |                     )
355 |                     // Itera sobre os shards
/Users/admin/builder/spi-builder-workspace/Sources/NyaruDB2/Core/QueryEngine/QueryEngine.swift:347:17: warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
345 |     /// - Returns: An `AsyncThrowingStream` of type `T` that can throw an error during iteration.
346 |     /// - Throws: An error if the stream encounters an issue during fetching.
347 |     public func fetchStream(from storage: StorageEngine) -> AsyncThrowingStream<T, Error> {
    |                 `- warning: capture of non-sendable type 'T.Type' in an isolated closure; this is an error in the Swift 6 language mode
348 |         AsyncThrowingStream { continuation in
349 |             Task {
[20/27] Compiling NyaruDB2 CompressionMethod.swift
[21/27] Compiling NyaruDB2 NyaruDB2.swift
[22/31] Compiling QuickStartRunner QuickStart.swift
[23/31] Emitting module QuickStartRunner
[23/31] Write Objects.LinkFileList
[25/31] Compiling Benchmark Benchmark.swift
[26/31] Emitting module Benchmark
[26/31] Write Objects.LinkFileList
[27/31] Linking QuickStartRunner
[28/31] Applying QuickStartRunner
[29/31] Linking Benchmark
[30/31] Applying Benchmark
Build complete! (6.26s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "NyaruDB2",
  "name" : "NyaruDB2",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "NyaruDB2",
      "targets" : [
        "NyaruDB2"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "QuickStartRunner",
      "targets" : [
        "QuickStartRunner"
      ],
      "type" : {
        "executable" : null
      }
    },
    {
      "name" : "Benchmark",
      "targets" : [
        "Benchmark"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "QuickStartRunner",
      "module_type" : "SwiftTarget",
      "name" : "QuickStartRunner",
      "path" : "Sources/QuickStart",
      "product_memberships" : [
        "QuickStartRunner"
      ],
      "sources" : [
        "QuickStart.swift"
      ],
      "target_dependencies" : [
        "NyaruDB2"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "NyaruDB2Tests",
      "module_type" : "SwiftTarget",
      "name" : "NyaruDB2Tests",
      "path" : "Tests/NyaruDB2Tests",
      "sources" : [
        "BTreeIndexPersistenceTest.swift",
        "BTreeIndexTest.swift",
        "CollectionCatalog.swift",
        "CompressionMethodTest.swift",
        "DocumentCollectionCRUDTest.swift",
        "IndexManagerTest.swift",
        "NyaruDB2Test.swift",
        "PersistenceLifecycleTest.swift",
        "QueryEngineIndexTest.swift",
        "QueryEngineTest.swift",
        "ShardManagerTest.swift",
        "StatsEngineTest.swift",
        "StorageEngineTest.swift",
        "StorageRepartitionCollectionTest.swift"
      ],
      "target_dependencies" : [
        "NyaruDB2"
      ],
      "type" : "test"
    },
    {
      "c99name" : "NyaruDB2",
      "module_type" : "SwiftTarget",
      "name" : "NyaruDB2",
      "path" : "Sources/NyaruDB2",
      "product_memberships" : [
        "NyaruDB2",
        "QuickStartRunner",
        "Benchmark"
      ],
      "sources" : [
        "Core/CollectionEngine/CollectionCatalog.swift",
        "Core/CollectionEngine/DocumentCollection.swift",
        "Core/Commons/DynamicDecoder.swift",
        "Core/Commons/FileProtection.swift",
        "Core/IndexManager/BTreeIndex.swift",
        "Core/IndexManager/IndexManager.swift",
        "Core/QueryEngine/QueryEngine.swift",
        "Core/QueryEngine/QueryPlanner.swift",
        "Core/ShardManager/CompressionMethod.swift",
        "Core/ShardManager/Shard.swift",
        "Core/ShardManager/ShardManager.swift",
        "Core/StatsEngine/StatsEngine.swift",
        "Core/StorageEngine/StorageEngine.swift",
        "NyaruDB2.swift"
      ],
      "type" : "library"
    },
    {
      "c99name" : "Benchmark",
      "module_type" : "SwiftTarget",
      "name" : "Benchmark",
      "path" : "Sources/Benchmark",
      "product_memberships" : [
        "Benchmark"
      ],
      "sources" : [
        "Benchmark.swift"
      ],
      "target_dependencies" : [
        "NyaruDB2"
      ],
      "type" : "executable"
    }
  ],
  "tools_version" : "5.9"
}
Done.