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 TextBufferKit, reference 0.3.0 (7f3ed5), with Swift 6.1 for macOS (SPM) on 26 Apr 2025 12:08:20 UTC.

Swift 6 data race errors: 1

Build Command

env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures

Build Log

========================================
RunAll
========================================
Builder version: 4.61.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/migueldeicaza/TextBufferKit.git
Reference: 0.3.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/migueldeicaza/TextBufferKit
 * tag               0.3.0      -> FETCH_HEAD
HEAD is now at 7f3ed5b Merge
Cloned https://github.com/migueldeicaza/TextBufferKit.git
Revision (git rev-parse @):
7f3ed5b1d7288de34ad853544d802647be11cfcf
SUCCESS checkout https://github.com/migueldeicaza/TextBufferKit.git at 0.3.0
========================================
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": "textbufferkit",
      "name": "TextBufferKit",
      "url": "https://github.com/migueldeicaza/TextBufferKit.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/TextBufferKit",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/migueldeicaza/TextBufferKit.git
[1/240] Fetching textbufferkit
Fetched https://github.com/migueldeicaza/TextBufferKit.git from cache (0.84s)
Creating working copy for https://github.com/migueldeicaza/TextBufferKit.git
Working copy of https://github.com/migueldeicaza/TextBufferKit.git resolved at 0.3.0 (7f3ed5b)
warning: '.resolve-product-dependencies': dependency 'textbufferkit' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.1
Building package at path:  $PWD
https://github.com/migueldeicaza/TextBufferKit.git
https://github.com/migueldeicaza/TextBufferKit.git
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TextBufferKit",
  "name" : "TextBufferKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TextBufferKit",
      "targets" : [
        "TextBufferKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextBufferKitTests",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferKitTests",
      "path" : "Tests/TextBufferKitTests",
      "sources" : [
        "PieceTreeTextBufferTests.swift",
        "TextBufferKitTests.swift"
      ],
      "target_dependencies" : [
        "TextBufferKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextBufferKit",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferKit",
      "path" : "Sources/TextBufferKit",
      "product_memberships" : [
        "TextBufferKit"
      ],
      "sources" : [
        "FindMatch.swift",
        "PieceTreeBase.swift",
        "PieceTreeBuilder.swift",
        "PieceTreeTextBuffer.swift",
        "Position.swift",
        "Range.swift",
        "SearchData.swift",
        "TreeBase.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-16.3.0.app xcrun swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-2F0A5646E1D333AE.txt
[3/11] Compiling TextBufferKit Range.swift
[4/11] Compiling TextBufferKit TreeBase.swift
/Users/admin/builder/spi-builder-workspace/Sources/TextBufferKit/TreeBase.swift:69:16: warning: static property 'SENTINEL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |     }
 68 |
 69 |     static var SENTINEL: TreeNode = TreeNode(Piece(bufferIndex: 0, start: BufferCursor(line: 0,column: 0), end: BufferCursor(line: 0, column: 0), length: 0, lineFeedCount: 0), .black);
    |                |- warning: static property 'SENTINEL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'SENTINEL' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'SENTINEL' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |
 71 |     public func next() -> TreeNode {
[5/11] Compiling TextBufferKit SearchData.swift
[6/11] Compiling TextBufferKit Position.swift
[7/11] Compiling TextBufferKit PieceTreeTextBuffer.swift
[8/11] Compiling TextBufferKit PieceTreeBase.swift
[9/11] Emitting module TextBufferKit
/Users/admin/builder/spi-builder-workspace/Sources/TextBufferKit/TreeBase.swift:69:16: warning: static property 'SENTINEL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
 67 |     }
 68 |
 69 |     static var SENTINEL: TreeNode = TreeNode(Piece(bufferIndex: 0, start: BufferCursor(line: 0,column: 0), end: BufferCursor(line: 0, column: 0), length: 0, lineFeedCount: 0), .black);
    |                |- warning: static property 'SENTINEL' is not concurrency-safe because it is nonisolated global shared mutable state; this is an error in the Swift 6 language mode
    |                |- note: convert 'SENTINEL' to a 'let' constant to make 'Sendable' shared state immutable
    |                |- note: add '@MainActor' to make static property 'SENTINEL' part of global actor 'MainActor'
    |                `- note: disable concurrency-safety checks if accesses are protected by an external synchronization mechanism
 70 |
 71 |     public func next() -> TreeNode {
[10/11] Compiling TextBufferKit FindMatch.swift
[11/11] Compiling TextBufferKit PieceTreeBuilder.swift
Build complete! (5.70s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "TextBufferKit",
  "name" : "TextBufferKit",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "TextBufferKit",
      "targets" : [
        "TextBufferKit"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "TextBufferKitTests",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferKitTests",
      "path" : "Tests/TextBufferKitTests",
      "sources" : [
        "PieceTreeTextBufferTests.swift",
        "TextBufferKitTests.swift"
      ],
      "target_dependencies" : [
        "TextBufferKit"
      ],
      "type" : "test"
    },
    {
      "c99name" : "TextBufferKit",
      "module_type" : "SwiftTarget",
      "name" : "TextBufferKit",
      "path" : "Sources/TextBufferKit",
      "product_memberships" : [
        "TextBufferKit"
      ],
      "sources" : [
        "FindMatch.swift",
        "PieceTreeBase.swift",
        "PieceTreeBuilder.swift",
        "PieceTreeTextBuffer.swift",
        "Position.swift",
        "Range.swift",
        "SearchData.swift",
        "TreeBase.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.