This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.

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 c with Swift 6.0 for macOS (SPM).

Swift 6 data race errors: 4

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a swift build --arch arm64 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete

Build Log

========================================
RunAll
========================================
Builder version: 4.40.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/0xOpenBytes/c.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/0xOpenBytes/c
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 36eeea2 Update README.md
Cloned https://github.com/0xOpenBytes/c.git
Revision (git rev-parse @):
36eeea26335183a759006d6e7a32fbf19fbe3cb8
SUCCESS checkout https://github.com/0xOpenBytes/c.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/0xOpenBytes/c.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.3.0.app xcrun --toolchain org.swift.600202405261a 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-6F35C1178C84523A.txt
[4/9] Compiling t t+Structure.swift
[5/9] Compiling t t.swift
[6/9] Emitting module t
[7/9] Compiling t t+Assertion.swift
[8/9] Compiling t t+Factories.swift
[9/9] Compiling t t+Logging.swift
[10/11] Compiling c c.swift
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:50:20: warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 46 | public enum c {
 47 |     /// `Error` that reports the missing keys
 48 |     public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
    |                                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 49 |         /// Required keys
 50 |         public let keys: Set<Key>
    |                    `- warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 51 |
 52 |         /// init for `MissingRequiredKeysError<Key>`
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:69:20: warning: stored property 'actualValue' of 'Sendable'-conforming generic struct 'InvalidTypeError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
 67 |
 68 |         // Actual Value
 69 |         public let actualValue: Any?
    |                    `- warning: stored property 'actualValue' of 'Sendable'-conforming generic struct 'InvalidTypeError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
 70 |
 71 |         /// init for `InvalidTypeError<Key>`
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:373:24: warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
371 |
372 | public extension c {
373 |     private static var lock = NSLock()
    |                        |- warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'lock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'lock' 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
374 |     private static var caches: [AnyHashable: AnyCacheable] = [:]
375 |
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:374:24: warning: static property 'caches' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
372 | public extension c {
373 |     private static var lock = NSLock()
374 |     private static var caches: [AnyHashable: AnyCacheable] = [:]
    |                        |- warning: static property 'caches' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'caches' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'caches' 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
375 |
376 |     /// Checks if the given `key` has a Cache or not
[11/11] Emitting module c
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:50:20: warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 46 | public enum c {
 47 |     /// `Error` that reports the missing keys
 48 |     public struct MissingRequiredKeysError<Key: Hashable>: LocalizedError {
    |                                            `- note: consider making generic parameter 'Key' conform to the 'Sendable' protocol
 49 |         /// Required keys
 50 |         public let keys: Set<Key>
    |                    `- warning: stored property 'keys' of 'Sendable'-conforming generic struct 'MissingRequiredKeysError' has non-sendable type 'Set<Key>'; this is an error in the Swift 6 language mode
 51 |
 52 |         /// init for `MissingRequiredKeysError<Key>`
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:69:20: warning: stored property 'actualValue' of 'Sendable'-conforming generic struct 'InvalidTypeError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
 67 |
 68 |         // Actual Value
 69 |         public let actualValue: Any?
    |                    `- warning: stored property 'actualValue' of 'Sendable'-conforming generic struct 'InvalidTypeError' has non-sendable type 'Any?'; this is an error in the Swift 6 language mode
 70 |
 71 |         /// init for `InvalidTypeError<Key>`
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:373:24: warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
371 |
372 | public extension c {
373 |     private static var lock = NSLock()
    |                        |- warning: static property 'lock' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'lock' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'lock' 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
374 |     private static var caches: [AnyHashable: AnyCacheable] = [:]
375 |
/Users/admin/builder/spi-builder-workspace/Sources/c/c.swift:374:24: warning: static property 'caches' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
372 | public extension c {
373 |     private static var lock = NSLock()
374 |     private static var caches: [AnyHashable: AnyCacheable] = [:]
    |                        |- warning: static property 'caches' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in the Swift 6 language mode
    |                        |- note: convert 'caches' to a 'let' constant to make 'Sendable' shared state immutable
    |                        |- note: annotate 'caches' 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
375 |
376 |     /// Checks if the given `key` has a Cache or not
Build complete! (20.63s)
Fetching https://github.com/0xOpenBytes/t
[1/368] Fetching t
Fetched https://github.com/0xOpenBytes/t from cache (1.01s)
Computing version for https://github.com/0xOpenBytes/t
Computed https://github.com/0xOpenBytes/t at 1.0.4 (0.67s)
Creating working copy for https://github.com/0xOpenBytes/t
Working copy of https://github.com/0xOpenBytes/t resolved at 1.0.4
Build complete.
{
  "dependencies" : [
    {
      "identity" : "t",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/0xOpenBytes/t"
    }
  ],
  "manifest_display_name" : "c",
  "name" : "c",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "14.0"
    },
    {
      "name" : "macos",
      "version" : "11.0"
    },
    {
      "name" : "watchos",
      "version" : "7.0"
    },
    {
      "name" : "tvos",
      "version" : "14.0"
    }
  ],
  "products" : [
    {
      "name" : "c",
      "targets" : [
        "c"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "cTests",
      "module_type" : "SwiftTarget",
      "name" : "cTests",
      "path" : "Tests/cTests",
      "sources" : [
        "cTests.swift"
      ],
      "target_dependencies" : [
        "c"
      ],
      "type" : "test"
    },
    {
      "c99name" : "c",
      "module_type" : "SwiftTarget",
      "name" : "c",
      "path" : "Sources/c",
      "product_dependencies" : [
        "t"
      ],
      "product_memberships" : [
        "c"
      ],
      "sources" : [
        "c.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.