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

Swift 6 data race errors: 1

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/sobotics/swiftredunda.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/sobotics/swiftredunda
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 7714992 fix version not sent
Cloned https://github.com/sobotics/swiftredunda.git
Revision (git rev-parse @):
7714992103dcd46c5728af51de9d179fe4fac0d8
SUCCESS checkout https://github.com/sobotics/swiftredunda.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/sobotics/swiftredunda.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/2] Write sources
[1/2] Write swift-version-6F35C1178C84523A.txt
[3/6] Emitting module SwiftRedunda
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaClient.swift:50:10: warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
48 |
49 | enum RedundaError: Error {
50 |     case invalidPingParams([String: Any])
   |          `- warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
51 |     case invalidPingJsonResponseData
52 | }
[4/6] Compiling SwiftRedunda RedundaClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaClient.swift:50:10: warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
48 |
49 | enum RedundaError: Error {
50 |     case invalidPingParams([String: Any])
   |          `- warning: associated value 'invalidPingParams' of 'Sendable'-conforming enum 'RedundaError' has non-sendable type 'Any'; this is an error in the Swift 6 language mode
51 |     case invalidPingJsonResponseData
52 | }
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaClient.swift:32:17: warning: capture of 'callback' with non-sendable type '(RedundaPingResponse?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
30 |         session.dataTask(with: req) { (data, res, err) in
31 |             if let err = err {
32 |                 callback(nil, err)
   |                 |- warning: capture of 'callback' with non-sendable type '(RedundaPingResponse?, (any Error)?) -> ()' in a `@Sendable` closure; this is an error in the Swift 6 language mode
   |                 `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
33 |                 return
34 |             }
[5/6] Compiling SwiftRedunda RedundaPingService.swift
/Users/admin/builder/spi-builder-workspace/Sources/swiftredunda/RedundaPingService.swift:44:17: warning: capture of 'self' with non-sendable type 'RedundaPingService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 2 | import Foundation
 3 |
 4 | public class RedundaPingService {
   |              `- note: class 'RedundaPingService' does not conform to the 'Sendable' protocol
 5 |     public var key: String
 6 |     public var version: String?
   :
42 |         queue.async {
43 |             while true {
44 |                 self.ping()
   |                 `- warning: capture of 'self' with non-sendable type 'RedundaPingService' in a `@Sendable` closure; this is an error in the Swift 6 language mode
45 |                 sleep(UInt32(timeInterval))
46 |             }
[6/6] Compiling SwiftRedunda RedundaPingResponse.swift
Build complete! (16.20s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "swiftredunda",
  "name" : "swiftredunda",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "SwiftRedunda",
      "targets" : [
        "SwiftRedunda"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "swiftredundaTests",
      "module_type" : "SwiftTarget",
      "name" : "swiftredundaTests",
      "path" : "Tests/swiftredundaTests",
      "sources" : [
        "swiftredundaTests.swift"
      ],
      "target_dependencies" : [
        "SwiftRedunda"
      ],
      "type" : "test"
    },
    {
      "c99name" : "SwiftRedunda",
      "module_type" : "SwiftTarget",
      "name" : "SwiftRedunda",
      "path" : "Sources",
      "product_memberships" : [
        "SwiftRedunda"
      ],
      "sources" : [
        "swiftredunda/RedundaClient.swift",
        "swiftredunda/RedundaPingResponse.swift",
        "swiftredunda/RedundaPingService.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "4.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.