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 swift-any-sort-comparator, reference 1.0.0 (a990f2), with Swift 6.0 for macOS (SPM) on 3 Nov 2024 13:37:58 UTC.

Swift 6 data race errors: 2

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/roanutil/swift-any-sort-comparator.git
Reference: 1.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/roanutil/swift-any-sort-comparator
 * tag               1.0.0      -> FETCH_HEAD
HEAD is now at a990f27 Add build status and codecov badges
Cloned https://github.com/roanutil/swift-any-sort-comparator.git
Revision (git rev-parse @):
a990f27db7b482ce9d7990837b4c9ec8cbf079fb
SUCCESS checkout https://github.com/roanutil/swift-any-sort-comparator.git at 1.0.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": "swift-any-sort-comparator",
      "name": "swift-any-sort-comparator",
      "url": "https://github.com/roanutil/swift-any-sort-comparator.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-any-sort-comparator",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/roanutil/swift-any-sort-comparator.git
[2/70] Fetching swift-any-sort-comparator
Fetched https://github.com/roanutil/swift-any-sort-comparator.git from cache (0.67s)
Creating working copy for https://github.com/roanutil/swift-any-sort-comparator.git
Working copy of https://github.com/roanutil/swift-any-sort-comparator.git resolved at 1.0.0 (a990f27)
warning: '.resolve-product-dependencies': dependency 'swift-any-sort-comparator' is not used by any target
Found 0 product dependencies
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/roanutil/swift-any-sort-comparator.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/5] Compiling AnySortComparator AnySortComparator.swift
/Users/admin/builder/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:39:17: warning: stored property '_compare' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type '(Compared, Compared) -> ComparisonResult'; this is an error in the Swift 6 language mode
37 |     // MARK: Private properties
38 |
39 |     private let _compare: (Compared, Compared) -> ComparisonResult
   |                 |- warning: stored property '_compare' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type '(Compared, Compared) -> ComparisonResult'; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
40 |     private let initialOrder: SortOrder
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:42:21: warning: stored property 'hashableBase' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type 'AnyHashable'; this is an error in the Swift 6 language mode
40 |     private let initialOrder: SortOrder
41 |
42 |     fileprivate let hashableBase: AnyHashable
   |                     `- warning: stored property 'hashableBase' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type 'AnyHashable'; this is an error in the Swift 6 language mode
43 | }
44 |
Swift.AnyHashable:1:23: note: struct 'AnyHashable' does not conform to the 'Sendable' protocol
1 | @frozen public struct AnyHashable {
  |                       `- note: struct 'AnyHashable' does not conform to the 'Sendable' protocol
2 |     public init<H>(_ base: H) where H : Hashable
3 |     public var base: Any { get }
[4/5] Compiling AnySortComparator ComparisonResult+Inverted.swift
[5/5] Emitting module AnySortComparator
/Users/admin/builder/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:39:17: warning: stored property '_compare' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type '(Compared, Compared) -> ComparisonResult'; this is an error in the Swift 6 language mode
37 |     // MARK: Private properties
38 |
39 |     private let _compare: (Compared, Compared) -> ComparisonResult
   |                 |- warning: stored property '_compare' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type '(Compared, Compared) -> ComparisonResult'; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
40 |     private let initialOrder: SortOrder
41 |
/Users/admin/builder/spi-builder-workspace/Sources/AnySortComparator/AnySortComparator.swift:42:21: warning: stored property 'hashableBase' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type 'AnyHashable'; this is an error in the Swift 6 language mode
40 |     private let initialOrder: SortOrder
41 |
42 |     fileprivate let hashableBase: AnyHashable
   |                     `- warning: stored property 'hashableBase' of 'Sendable'-conforming generic struct 'AnySortComparator' has non-sendable type 'AnyHashable'; this is an error in the Swift 6 language mode
43 | }
44 |
Swift.AnyHashable:1:23: note: struct 'AnyHashable' does not conform to the 'Sendable' protocol
1 | @frozen public struct AnyHashable {
  |                       `- note: struct 'AnyHashable' does not conform to the 'Sendable' protocol
2 |     public init<H>(_ base: H) where H : Hashable
3 |     public var base: Any { get }
Build complete! (6.58s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swift-any-sort-comparator",
  "name" : "swift-any-sort-comparator",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "maccatalyst",
      "version" : "15.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "8.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "AnySortComparator",
      "targets" : [
        "AnySortComparator"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "AnySortComparatorTests",
      "module_type" : "SwiftTarget",
      "name" : "AnySortComparatorTests",
      "path" : "Tests/AnySortComparatorTests",
      "sources" : [
        "AnySortComparatorTests.swift"
      ],
      "target_dependencies" : [
        "AnySortComparator"
      ],
      "type" : "test"
    },
    {
      "c99name" : "AnySortComparator",
      "module_type" : "SwiftTarget",
      "name" : "AnySortComparator",
      "path" : "Sources/AnySortComparator",
      "product_memberships" : [
        "AnySortComparator"
      ],
      "sources" : [
        "AnySortComparator.swift",
        "ComparisonResult+Inverted.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.