The Swift Package Index logo.Swift Package Index

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

Build Information

Successful build of TrailerQL, reference 1.0.6 (000637), with Swift 6.0 for macOS (SPM) on 10 Oct 2024 07:53:38 UTC.

Swift 6 data race errors: 3

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.0.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.55.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/ptsochantaris/trailer-ql.git
Reference: 1.0.6
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/ptsochantaris/trailer-ql
 * tag               1.0.6      -> FETCH_HEAD
HEAD is now at 000637f Better naming
Cloned https://github.com/ptsochantaris/trailer-ql.git
Revision (git rev-parse @):
000637fccc2743d69915b8e67e1426a756ba0846
SUCCESS checkout https://github.com/ptsochantaris/trailer-ql.git at 1.0.6
Fetching https://github.com/ptsochantaris/lista
[1/139] Fetching lista
Fetched https://github.com/ptsochantaris/lista from cache (0.67s)
Creating working copy for https://github.com/ptsochantaris/lista
Working copy of https://github.com/ptsochantaris/lista resolved at main (3296d90)
========================================
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": "trailer-ql",
      "name": "TrailerQL",
      "url": "https://github.com/ptsochantaris/trailer-ql.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/trailer-ql",
      "dependencies": [
        {
          "identity": "lista",
          "name": "Lista",
          "url": "https://github.com/ptsochantaris/lista",
          "version": "unspecified",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/lista",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/ptsochantaris/trailer-ql.git
[1/299] Fetching trailer-ql
Fetched https://github.com/ptsochantaris/trailer-ql.git from cache (0.76s)
Fetching https://github.com/ptsochantaris/lista from cache
Fetched https://github.com/ptsochantaris/lista from cache (0.46s)
Creating working copy for https://github.com/ptsochantaris/trailer-ql.git
Working copy of https://github.com/ptsochantaris/trailer-ql.git resolved at 1.0.6 (000637f)
Creating working copy for https://github.com/ptsochantaris/lista
Working copy of https://github.com/ptsochantaris/lista resolved at main (297f7db)
warning: '.resolve-product-dependencies': dependency 'trailer-ql' is not used by any target
Found 1 product dependencies
  - Lista
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/ptsochantaris/trailer-ql.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.0.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/3] Write sources
[2/3] Write swift-version--4A847ED0836F2485.txt
[4/5] Emitting module Lista
[5/5] Compiling Lista Lista.swift
[6/15] Compiling TrailerQL Node.swift
[7/16] Compiling TrailerQL TrailerQL.swift
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:7:23: warning: static property 'emptyList' is not concurrency-safe because non-'Sendable' type 'Lista<Fragment>' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | public enum TQL {
 7 |     public static let emptyList = Lista<Fragment>()
   |                       `- warning: static property 'emptyList' is not concurrency-safe because non-'Sendable' type 'Lista<Fragment>' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/lista/Sources/Lista/Lista.swift:4:20: note: generic class 'Lista' does not conform to the 'Sendable' protocol
  2 |
  3 | // An instance of a list
  4 | public final class Lista<Value> {
    |                    `- note: generic class 'Lista' does not conform to the 'Sendable' protocol
  5 |     fileprivate final class Node<T> {
  6 |         fileprivate let value: T
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Lista'
 1 | import Foundation
 2 | import Lista
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Lista'
 3 |
 4 | typealias JSON = [String: Any]
 5 |
 6 | public enum TQL {
 7 |     public static let emptyList = Lista<Fragment>()
   |                       |- note: annotate 'emptyList' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:9:23: warning: static property 'debugLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |     public static let emptyList = Lista<Fragment>()
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
   |                       |- warning: static property 'debugLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'debugLog' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'debugLog' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     static func log(_ message: @autoclosure () -> String) {
[8/16] Compiling TrailerQL ElementsBuilder.swift
[9/16] Compiling TrailerQL BatchGroup.swift
[10/16] Compiling TrailerQL Field.swift
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/Field.swift:5:23: warning: static property 'id' is not concurrency-safe because non-'Sendable' type 'Field' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Lista
 3 |
 4 | public struct Field: Element {
   |               `- note: consider making struct 'Field' conform to the 'Sendable' protocol
 5 |     public static let id = Field("id")
   |                       |- warning: static property 'id' is not concurrency-safe because non-'Sendable' type 'Field' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'id' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     public let id = UUID()
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:7:23: warning: static property 'emptyList' is not concurrency-safe because non-'Sendable' type 'Lista<Fragment>' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | public enum TQL {
 7 |     public static let emptyList = Lista<Fragment>()
   |                       `- warning: static property 'emptyList' is not concurrency-safe because non-'Sendable' type 'Lista<Fragment>' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/lista/Sources/Lista/Lista.swift:4:20: note: generic class 'Lista' does not conform to the 'Sendable' protocol
  2 |
  3 | // An instance of a list
  4 | public final class Lista<Value> {
    |                    `- note: generic class 'Lista' does not conform to the 'Sendable' protocol
  5 |     fileprivate final class Node<T> {
  6 |         fileprivate let value: T
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Lista'
 1 | import Foundation
 2 | import Lista
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Lista'
 3 |
 4 | typealias JSON = [String: Any]
 5 |
 6 | public enum TQL {
 7 |     public static let emptyList = Lista<Fragment>()
   |                       |- note: annotate 'emptyList' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
[11/16] Compiling TrailerQL Fragment.swift
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/Field.swift:5:23: warning: static property 'id' is not concurrency-safe because non-'Sendable' type 'Field' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Lista
 3 |
 4 | public struct Field: Element {
   |               `- note: consider making struct 'Field' conform to the 'Sendable' protocol
 5 |     public static let id = Field("id")
   |                       |- warning: static property 'id' is not concurrency-safe because non-'Sendable' type 'Field' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'id' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     public let id = UUID()
[12/16] Emitting module TrailerQL
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/Field.swift:5:23: warning: static property 'id' is not concurrency-safe because non-'Sendable' type 'Field' may have shared mutable state; this is an error in the Swift 6 language mode
 2 | import Lista
 3 |
 4 | public struct Field: Element {
   |               `- note: consider making struct 'Field' conform to the 'Sendable' protocol
 5 |     public static let id = Field("id")
   |                       |- warning: static property 'id' is not concurrency-safe because non-'Sendable' type 'Field' may have shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: annotate 'id' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 6 |
 7 |     public let id = UUID()
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:7:23: warning: static property 'emptyList' is not concurrency-safe because non-'Sendable' type 'Lista<Fragment>' may have shared mutable state; this is an error in the Swift 6 language mode
 5 |
 6 | public enum TQL {
 7 |     public static let emptyList = Lista<Fragment>()
   |                       `- warning: static property 'emptyList' is not concurrency-safe because non-'Sendable' type 'Lista<Fragment>' may have shared mutable state; this is an error in the Swift 6 language mode
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
/Users/admin/builder/spi-builder-workspace/.build/checkouts/lista/Sources/Lista/Lista.swift:4:20: note: generic class 'Lista' does not conform to the 'Sendable' protocol
  2 |
  3 | // An instance of a list
  4 | public final class Lista<Value> {
    |                    `- note: generic class 'Lista' does not conform to the 'Sendable' protocol
  5 |     fileprivate final class Node<T> {
  6 |         fileprivate let value: T
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Lista'
 1 | import Foundation
 2 | import Lista
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'Lista'
 3 |
 4 | typealias JSON = [String: Any]
 5 |
 6 | public enum TQL {
 7 |     public static let emptyList = Lista<Fragment>()
   |                       |- note: annotate 'emptyList' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/TrailerQL.swift:9:23: warning: static property 'debugLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 7 |     public static let emptyList = Lista<Fragment>()
 8 |
 9 |     public static var debugLog: ((String) -> Void)?
   |                       |- warning: static property 'debugLog' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
   |                       |- note: convert 'debugLog' to a 'let' constant to make 'Sendable' shared state immutable
   |                       |- note: annotate 'debugLog' with '@MainActor' if property should only be accessed from the main actor
   |                       `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
10 |
11 |     static func log(_ message: @autoclosure () -> String) {
[13/16] Compiling TrailerQL Element.swift
[14/16] Compiling TrailerQL Scanning.swift
[15/16] Compiling TrailerQL Query.swift
[16/16] Compiling TrailerQL Group.swift
/Users/admin/builder/spi-builder-workspace/Sources/TrailerQL/Group.swift:144:41: warning: sending 'o.node' risks causing data races; this is an error in the Swift 6 language mode
142 |
143 |         if let o = Node(jsonPayload: node, parent: parent, relationship: relationship) {
144 |             try await query.perNodeBlock?(.node(o))
    |                                         |- warning: sending 'o.node' risks causing data races; this is an error in the Swift 6 language mode
    |                                         `- note: sending task-isolated 'o.node' to global actor 'Query.NodeActor'-isolated callee risks causing data races between global actor 'Query.NodeActor'-isolated and task-isolated uses
145 |             resolvedParent = o
146 |
Build complete! (10.25s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "lista",
      "requirement" : {
        "branch" : [
          "main"
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/ptsochantaris/lista"
    }
  ],
  "manifest_display_name" : "TrailerQL",
  "name" : "TrailerQL",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    }
  ],
  "products" : [
    {
      "name" : "TrailerQL",
      "targets" : [
        "TrailerQL"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TrailerQLTests",
      "module_type" : "SwiftTarget",
      "name" : "TrailerQLTests",
      "path" : "Tests/TrailerQLTests",
      "sources" : [
        "TestSupport.swift",
        "TrailerQLTests.swift"
      ],
      "target_dependencies" : [
        "TrailerQL"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TrailerQL",
      "module_type" : "SwiftTarget",
      "name" : "TrailerQL",
      "path" : "Sources/TrailerQL",
      "product_dependencies" : [
        "Lista"
      ],
      "product_memberships" : [
        "TrailerQL"
      ],
      "sources" : [
        "BatchGroup.swift",
        "Element.swift",
        "ElementsBuilder.swift",
        "Field.swift",
        "Fragment.swift",
        "Group.swift",
        "Node.swift",
        "Query.swift",
        "Scanning.swift",
        "TrailerQL.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.9"
}
Done.