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 main (eb4b39), with Swift 6.1 for macOS (SPM) on 27 Apr 2025 19:34:30 UTC.

Swift 6 data race errors: 2

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/roanutil/swift-any-sort-comparator.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/roanutil/swift-any-sort-comparator
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at eb4b39e Merge pull request #3 from roanutil/spi-documentation
Cloned https://github.com/roanutil/swift-any-sort-comparator.git
Revision (git rev-parse @):
eb4b39e9e3060d79ccbd82d59852b8bee4be1c71
SPI manifest file found: $PWD/.spi.yml
SUCCESS checkout https://github.com/roanutil/swift-any-sort-comparator.git at main
========================================
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
[1/70] Fetching swift-any-sort-comparator
Fetched https://github.com/roanutil/swift-any-sort-comparator.git from cache (0.64s)
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 main (eb4b39e)
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.1
Building package at path:  $PWD
https://github.com/roanutil/swift-any-sort-comparator.git
https://github.com/roanutil/swift-any-sort-comparator.git
{
  "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"
}
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/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] 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 }
[5/5] Compiling AnySortComparator ComparisonResult+Inverted.swift
Build complete! (4.23s)
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"
}
✅  Doc result (pending) reported
========================================
GenerateDocs
========================================
Generating docs at path:  $PWD/.docs/roanutil/swift-any-sort-comparator/main
Repository:               roanutil/swift-any-sort-comparator
Swift version used:       6.1
Target:                   AnySortComparator
Extracting symbol information for 'AnySortComparator'...
Finished extracting symbol information for 'AnySortComparator'. (2.32s)
Building documentation for 'AnySortComparator'...
Finished building documentation for 'AnySortComparator' (0.10s)
Generated documentation archive at:
  /Users/admin/builder/spi-builder-workspace/.docs/roanutil/swift-any-sort-comparator/main
Fetching https://github.com/swiftlang/swift-docc-plugin from cache
Fetched https://github.com/swiftlang/swift-docc-plugin from cache (0.45s)
Computing version for https://github.com/swiftlang/swift-docc-plugin
Computed https://github.com/swiftlang/swift-docc-plugin at 1.4.3 (1.04s)
Fetching https://github.com/swiftlang/swift-docc-symbolkit from cache
Fetched https://github.com/swiftlang/swift-docc-symbolkit from cache (0.74s)
Computing version for https://github.com/swiftlang/swift-docc-symbolkit
Computed https://github.com/swiftlang/swift-docc-symbolkit at 1.0.0 (1.39s)
Creating working copy for https://github.com/swiftlang/swift-docc-symbolkit
Working copy of https://github.com/swiftlang/swift-docc-symbolkit resolved at 1.0.0
Creating working copy for https://github.com/swiftlang/swift-docc-plugin
Working copy of https://github.com/swiftlang/swift-docc-plugin resolved at 1.4.3
Building for debugging...
[0/8] Write sources
[1/8] Write snippet-extract-tool-entitlement.plist
[2/8] Write sources
[4/8] Write swift-version-2F0A5646E1D333AE.txt
[6/53] Compiling SymbolKit Identifier.swift
[7/53] Compiling SymbolKit KindIdentifier.swift
[8/53] Compiling SymbolKit Location.swift
[9/53] Compiling SymbolKit Mutability.swift
[10/57] Compiling SymbolKit SemanticVersion.swift
[11/57] Compiling SymbolKit AccessControl.swift
[12/57] Compiling SymbolKit Availability.swift
[13/57] Compiling SymbolKit AvailabilityItem.swift
[14/57] Compiling SymbolKit Domain.swift
[15/57] Compiling SymbolKit Mixin+Equals.swift
[16/57] Compiling SymbolKit Mixin+Hash.swift
[17/57] Compiling SymbolKit Mixin.swift
[18/57] Compiling SymbolKit LineList.swift
[19/57] Compiling SymbolKit Position.swift
[20/57] Emitting module Snippets
[21/57] Compiling Snippets Snippet.swift
[22/57] Compiling Snippets SnippetParser.swift
[23/57] Compiling SymbolKit Names.swift
[24/57] Compiling SymbolKit SPI.swift
[25/57] Compiling SymbolKit Snippet.swift
[26/57] Compiling SymbolKit Extension.swift
[27/57] Emitting module SymbolKit
[28/57] Compiling SymbolKit DeclarationFragments.swift
[29/57] Compiling SymbolKit Fragment.swift
[30/57] Compiling SymbolKit FragmentKind.swift
[31/57] Compiling SymbolKit FunctionParameter.swift
[32/57] Compiling SymbolKit FunctionSignature.swift
[33/57] Compiling SymbolKit Relationship.swift
[34/57] Compiling SymbolKit RelationshipKind.swift
[35/57] Compiling SymbolKit SourceOrigin.swift
[36/57] Compiling SymbolKit GenericConstraints.swift
[37/57] Compiling SymbolKit Swift.swift
[38/57] Compiling SymbolKit GenericConstraint.swift
[39/57] Compiling SymbolKit GenericParameter.swift
[40/57] Compiling SymbolKit Generics.swift
[41/57] Compiling SymbolKit Namespace.swift
[42/57] Compiling SymbolKit Symbol.swift
[43/57] Compiling SymbolKit SymbolKind.swift
[44/57] Compiling SymbolKit SymbolGraph.swift
[45/57] Compiling SymbolKit GraphCollector.swift
[46/57] Compiling SymbolKit SourceRange.swift
[47/57] Compiling SymbolKit Metadata.swift
[48/57] Compiling SymbolKit Module.swift
[49/57] Compiling SymbolKit OperatingSystem.swift
[50/57] Compiling SymbolKit Platform.swift
[51/57] Compiling SymbolKit UnifiedSymbol+Encodable.swift
[52/57] Compiling SymbolKit UnifiedSymbol.swift
[53/57] Compiling SymbolKit UnifiedSymbolGraph+Encodable.swift
[54/57] Compiling SymbolKit UnifiedSymbolGraph.swift
[55/61] Compiling snippet_extract URL+Status.swift
[56/61] Compiling snippet_extract SymbolGraph+Snippet.swift
[57/61] Emitting module snippet_extract
[58/61] Compiling snippet_extract SnippetBuildCommand.swift
[58/61] Write Objects.LinkFileList
[59/61] Linking snippet-extract-tool
[60/61] Applying snippet-extract-tool
Build of product 'snippet-extract' complete! (4.42s)
Building for debugging...
[0/1] Write swift-version-2F0A5646E1D333AE.txt
[2/4] Emitting module AnySortComparator
/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 }
[3/4] Compiling AnySortComparator ComparisonResult+Inverted.swift
[4/4] Compiling AnySortComparator AnySortComparator.swift
/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 of target: 'AnySortComparator' complete! (0.47s)
      80
2	/Users/admin/builder/spi-builder-workspace/.docs/roanutil/swift-any-sort-comparator/main
✅  Doc result (uploading) reported
========================================
SyncDocs
========================================
Doc archive source directory: $PWD/.docs/roanutil/swift-any-sort-comparator/main
File count: 80
Doc size:   2.0MB
Preparing doc bundle ...
Uploading prod-roanutil-swift-any-sort-comparator-main-e2b2cfc4.zip to s3://spi-docs-inbox/prod-roanutil-swift-any-sort-comparator-main-e2b2cfc4.zip
Copying... [19%]
Copying... [38%]
Copying... [57%]
Copying... [76%]
Copying... [95%]
Copying... [100%]
Done.