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 Matchable, reference v1.0.7 (d53e80), with Swift 6.0 for macOS (SPM) on 28 Nov 2024 20:54:40 UTC.

Swift 6 data race errors: 5

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 -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.58.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/elegantchaos/Matchable.git
Reference: v1.0.7
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/elegantchaos/Matchable
 * tag               v1.0.7     -> FETCH_HEAD
HEAD is now at d53e807 added license
Cloned https://github.com/elegantchaos/Matchable.git
Revision (git rev-parse @):
d53e807009960aafbd54f6229c2542f906628b38
SUCCESS checkout https://github.com/elegantchaos/Matchable.git at v1.0.7
========================================
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": "matchable",
      "name": "Matchable",
      "url": "https://github.com/elegantchaos/Matchable.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Matchable",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/elegantchaos/Matchable.git
[2/113] Fetching matchable
Fetched https://github.com/elegantchaos/Matchable.git from cache (0.67s)
Creating working copy for https://github.com/elegantchaos/Matchable.git
Working copy of https://github.com/elegantchaos/Matchable.git resolved at v1.0.7 (d53e807)
warning: '.resolve-product-dependencies': dependency 'matchable' 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/elegantchaos/Matchable.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 -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--7754E27361AE5C74.txt
[3/13] Compiling Matchable Optional+Matchable.swift
[4/14] Emitting module Matchable
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/MatchFailedError.swift:34:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
22 | /// up in another error for the structure as a whole, and thrown again.
23 |
24 | public struct MatchFailedError<T>: MatchFailedErrorBase {
   |                                `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 |     public init(_ detail: String, value: T, expected: T, underlyingError: MatchFailedErrorBase? = nil, context: MatchableContext) {
26 |         self.detail = detail
   :
32 |
33 |     public let detail: String
34 |     public let value: T
   |                `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
35 |     public let expected: T
36 |     public let context: MatchableContext
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/MatchFailedError.swift:35:16: warning: stored property 'expected' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
22 | /// up in another error for the structure as a whole, and thrown again.
23 |
24 | public struct MatchFailedError<T>: MatchFailedErrorBase {
   |                                `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 |     public init(_ detail: String, value: T, expected: T, underlyingError: MatchFailedErrorBase? = nil, context: MatchableContext) {
26 |         self.detail = detail
   :
33 |     public let detail: String
34 |     public let value: T
35 |     public let expected: T
   |                `- warning: stored property 'expected' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
36 |     public let context: MatchableContext
37 |     public let underlyingError: MatchFailedErrorBase?
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/MatchFailedError.swift:36:16: warning: stored property 'context' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'any MatchableContext'; this is an error in the Swift 6 language mode
34 |     public let value: T
35 |     public let expected: T
36 |     public let context: MatchableContext
   |                `- warning: stored property 'context' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'any MatchableContext'; this is an error in the Swift 6 language mode
37 |     public let underlyingError: MatchFailedErrorBase?
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/Matchable.swift:27:17: note: protocol 'MatchableContext' does not conform to the 'Sendable' protocol
 25 | /// such as whether to take account of case sensitivity when matching text.
 26 |
 27 | public protocol MatchableContext {
    |                 `- note: protocol 'MatchableContext' does not conform to the 'Sendable' protocol
 28 |     var file: StaticString { get }
 29 |     var line: UInt { get }
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/Matchable.swift:60:23: warning: static property 'ignoringWhitespace' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 52 |
 53 | /// Options that can be used to modify the behaviour of the matching.
 54 | public struct MatchOptions: OptionSet {
    |               `- note: consider making struct 'MatchOptions' conform to the 'Sendable' protocol
 55 |     public let rawValue: Int
 56 |     public init(rawValue: Int) {
    :
 58 |     }
 59 |
 60 |     public static let ignoringWhitespace = Self(rawValue: 1 << 0)
    |                       |- warning: static property 'ignoringWhitespace' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'ignoringWhitespace' 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
 61 |     public static let `default`: MatchOptions = []
 62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/Matchable.swift:61:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 52 |
 53 | /// Options that can be used to modify the behaviour of the matching.
 54 | public struct MatchOptions: OptionSet {
    |               `- note: consider making struct 'MatchOptions' conform to the 'Sendable' protocol
 55 |     public let rawValue: Int
 56 |     public init(rawValue: Int) {
    :
 59 |
 60 |     public static let ignoringWhitespace = Self(rawValue: 1 << 0)
 61 |     public static let `default`: MatchOptions = []
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
 62 | }
 63 |
[5/14] Compiling Matchable MatchableCompound.swift
[6/14] Compiling Matchable Matchable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/Matchable.swift:60:23: warning: static property 'ignoringWhitespace' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 52 |
 53 | /// Options that can be used to modify the behaviour of the matching.
 54 | public struct MatchOptions: OptionSet {
    |               `- note: consider making struct 'MatchOptions' conform to the 'Sendable' protocol
 55 |     public let rawValue: Int
 56 |     public init(rawValue: Int) {
    :
 58 |     }
 59 |
 60 |     public static let ignoringWhitespace = Self(rawValue: 1 << 0)
    |                       |- warning: static property 'ignoringWhitespace' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'ignoringWhitespace' 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
 61 |     public static let `default`: MatchOptions = []
 62 | }
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/Matchable.swift:61:23: warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 52 |
 53 | /// Options that can be used to modify the behaviour of the matching.
 54 | public struct MatchOptions: OptionSet {
    |               `- note: consider making struct 'MatchOptions' conform to the 'Sendable' protocol
 55 |     public let rawValue: Int
 56 |     public init(rawValue: Int) {
    :
 59 |
 60 |     public static let ignoringWhitespace = Self(rawValue: 1 << 0)
 61 |     public static let `default`: MatchOptions = []
    |                       |- warning: static property 'default' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'default' 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
 62 | }
 63 |
[7/14] Compiling Matchable Integer+Matchable.swift
[8/14] Compiling Matchable FloatingPoint+Matchable.swift
[9/14] Compiling Matchable Date+Matchable.swift
[10/14] Compiling Matchable MatchFailedError.swift
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/MatchFailedError.swift:34:16: warning: stored property 'value' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
22 | /// up in another error for the structure as a whole, and thrown again.
23 |
24 | public struct MatchFailedError<T>: MatchFailedErrorBase {
   |                                `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 |     public init(_ detail: String, value: T, expected: T, underlyingError: MatchFailedErrorBase? = nil, context: MatchableContext) {
26 |         self.detail = detail
   :
32 |
33 |     public let detail: String
34 |     public let value: T
   |                `- warning: stored property 'value' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
35 |     public let expected: T
36 |     public let context: MatchableContext
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/MatchFailedError.swift:35:16: warning: stored property 'expected' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
22 | /// up in another error for the structure as a whole, and thrown again.
23 |
24 | public struct MatchFailedError<T>: MatchFailedErrorBase {
   |                                `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
25 |     public init(_ detail: String, value: T, expected: T, underlyingError: MatchFailedErrorBase? = nil, context: MatchableContext) {
26 |         self.detail = detail
   :
33 |     public let detail: String
34 |     public let value: T
35 |     public let expected: T
   |                `- warning: stored property 'expected' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'T'; this is an error in the Swift 6 language mode
36 |     public let context: MatchableContext
37 |     public let underlyingError: MatchFailedErrorBase?
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/MatchFailedError.swift:36:16: warning: stored property 'context' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'any MatchableContext'; this is an error in the Swift 6 language mode
34 |     public let value: T
35 |     public let expected: T
36 |     public let context: MatchableContext
   |                `- warning: stored property 'context' of 'Sendable'-conforming generic struct 'MatchFailedError' has non-sendable type 'any MatchableContext'; this is an error in the Swift 6 language mode
37 |     public let underlyingError: MatchFailedErrorBase?
38 | }
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/Matchable.swift:27:17: note: protocol 'MatchableContext' does not conform to the 'Sendable' protocol
 25 | /// such as whether to take account of case sensitivity when matching text.
 26 |
 27 | public protocol MatchableContext {
    |                 `- note: protocol 'MatchableContext' does not conform to the 'Sendable' protocol
 28 |     var file: StaticString { get }
 29 |     var line: UInt { get }
[11/14] Compiling Matchable Bool+Matchable.swift
[12/14] Compiling Matchable Collections+Matchable.swift
[13/14] Compiling Matchable RawRepresentable+Matchable.swift
[14/14] Compiling Matchable String+Matchable.swift
/Users/admin/builder/spi-builder-workspace/Sources/Matchable/Matchable.swift:60:23: warning: static property 'ignoringWhitespace' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
 52 |
 53 | /// Options that can be used to modify the behaviour of the matching.
 54 | public struct MatchOptions: OptionSet {
    |               `- note: consider making struct 'MatchOptions' conform to the 'Sendable' protocol
 55 |     public let rawValue: Int
 56 |     public init(rawValue: Int) {
    :
 58 |     }
 59 |
 60 |     public static let ignoringWhitespace = Self(rawValue: 1 << 0)
    |                       |- warning: static property 'ignoringWhitespace' is not concurrency-safe because non-'Sendable' type 'MatchOptions' may have shared mutable state; this is an error in the Swift 6 language mode
    |                       |- note: annotate 'ignoringWhitespace' 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
 61 |     public static let `default`: MatchOptions = []
 62 | }
Build complete! (16.62s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Matchable",
  "name" : "Matchable",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.13"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    }
  ],
  "products" : [
    {
      "name" : "Matchable",
      "targets" : [
        "Matchable"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "MatchableTests",
      "module_type" : "SwiftTarget",
      "name" : "MatchableTests",
      "path" : "Tests/MatchableTests",
      "sources" : [
        "MatchableTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Matchable"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Matchable",
      "module_type" : "SwiftTarget",
      "name" : "Matchable",
      "path" : "Sources/Matchable",
      "product_memberships" : [
        "Matchable"
      ],
      "sources" : [
        "Bool+Matchable.swift",
        "Collections+Matchable.swift",
        "Date+Matchable.swift",
        "FloatingPoint+Matchable.swift",
        "Integer+Matchable.swift",
        "MatchFailedError.swift",
        "Matchable.swift",
        "MatchableCompound.swift",
        "Optional+Matchable.swift",
        "RawRepresentable+Matchable.swift",
        "String+Matchable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.