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 RedShot, reference master (d610ad), with Swift 6.0 for macOS (SPM) on 4 Nov 2024 01:27:55 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/OperatorFoundation/Redshot.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/OperatorFoundation/Redshot
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at d610adb Merge branch 'master' of https://github.com/OperatorFoundation/Redshot
Cloned https://github.com/OperatorFoundation/Redshot.git
Revision (git rev-parse @):
d610adbedaa5273f7cd8c928816e4e8c3edc01af
SUCCESS checkout https://github.com/OperatorFoundation/Redshot.git at master
Fetching https://github.com/OperatorFoundation/Datable.git
[4/399] Fetching datable
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.91s)
Computing version for https://github.com/OperatorFoundation/Datable.git
Computed https://github.com/OperatorFoundation/Datable.git at 3.1.5 (0.62s)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at 3.1.5
========================================
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": "redshot",
      "name": "RedShot",
      "url": "https://github.com/OperatorFoundation/Redshot.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Redshot",
      "dependencies": [
        {
          "identity": "datable",
          "name": "Datable",
          "url": "https://github.com/OperatorFoundation/Datable.git",
          "version": "3.1.5",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Datable",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/OperatorFoundation/Redshot.git
[1/555] Fetching redshot
Fetched https://github.com/OperatorFoundation/Redshot.git from cache (0.80s)
Fetching https://github.com/OperatorFoundation/Datable.git from cache
Fetched https://github.com/OperatorFoundation/Datable.git from cache (0.47s)
Computing version for https://github.com/OperatorFoundation/Datable.git
Computed https://github.com/OperatorFoundation/Datable.git at 3.1.5 (0.03s)
Creating working copy for https://github.com/OperatorFoundation/Redshot.git
Working copy of https://github.com/OperatorFoundation/Redshot.git resolved at master (d610adb)
Creating working copy for https://github.com/OperatorFoundation/Datable.git
Working copy of https://github.com/OperatorFoundation/Datable.git resolved at 3.1.5
warning: '.resolve-product-dependencies': dependency 'redshot' is not used by any target
Found 1 product dependencies
  - Datable
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $PWD
https://github.com/OperatorFoundation/Redshot.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/3] Write sources
[2/3] Write swift-version--7754E27361AE5C74.txt
[4/33] Emitting module Datable
[5/36] Compiling Datable UInt+Datable.swift
[6/36] Compiling Datable UInt+MaybeNetworkDatable.swift
[7/36] Compiling Datable UInt+Stringable.swift
[8/36] Compiling Datable String+Intable.swift
[9/36] Compiling Datable Stringable.swift
[10/36] Compiling Datable StringableArray+CSVable.swift
[11/36] Compiling Datable Arrayable.swift
[12/36] Compiling Datable CSVable.swift
[13/36] Compiling Datable Data+Arrayable.swift
[14/36] Compiling Datable Data+Datable.swift
[15/36] Compiling Datable NetworkIntable.swift
[16/36] Compiling Datable String+Arrayable.swift
[17/36] Compiling Datable String+Datable.swift
[18/36] Compiling Datable Float+MaybeDatable.swift
[19/36] Compiling Datable Floatable.swift
[20/36] Compiling Datable Int+MaybeDatable.swift
[21/36] Compiling Datable Int+Stringable.swift
[22/36] Compiling Datable Intable.swift
[23/36] Compiling Datable MaybeDatable.swift
[24/36] Compiling Datable MaybeIntable.swift
[25/36] Compiling Datable MaybeNetworkIntable.swift
[26/36] Compiling Datable NetworkDatable.swift
[27/36] Compiling Datable Data+Stringable.swift
[28/36] Compiling Datable Datable.swift
[29/36] Compiling Datable DatableConfig.swift
[30/36] Compiling Datable Double+MaybeDatable.swift
[31/36] Compiling Datable Double+Stringable.swift
[32/36] Compiling Datable File.swift
[33/36] Compiling Datable Data+ExpressibleByStringLiteral.swift
[34/36] Compiling Datable Data+Floatable.swift
[35/36] Compiling Datable Data+MaybeIntable.swift
[36/36] Compiling Datable Data+MaybeNetworkIntable.swift
[37/44] Compiling RedShot RedisType.swift
[38/44] Compiling RedShot ResponseParser.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/ResponseParser.swift:74:20: warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
 72 |             }
 73 |
 74 |             return Data(bytes: buffer)
    |                    `- warning: 'init(bytes:)' is deprecated: use `init(_:)` instead
 75 |
 76 |         case .simpleString:
[39/44] Compiling RedShot RedisSubscribe.swift
[40/44] Compiling RedShot RedisSocket.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:21:7: warning: non-final class 'RedisSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 19 | import Datable
 20 |
 21 | class RedisSocket: NSObject {
    |       `- warning: non-final class 'RedisSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 22 |     let session = URLSession(configuration: .default)
 23 |     var stream: URLSessionStreamTask
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:23:9: warning: stored property 'stream' of 'Sendable'-conforming class 'RedisSocket' is mutable; this is an error in the Swift 6 language mode
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
 23 |     var stream: URLSessionStreamTask
    |         `- warning: stored property 'stream' of 'Sendable'-conforming class 'RedisSocket' is mutable; this is an error in the Swift 6 language mode
 24 |
 25 |     var writeGroup: DispatchGroup
[41/44] Compiling RedShot Constants.swift
[42/44] Emitting module RedShot
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:21:7: warning: non-final class 'RedisSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 19 | import Datable
 20 |
 21 | class RedisSocket: NSObject {
    |       `- warning: non-final class 'RedisSocket' cannot conform to 'Sendable'; use '@unchecked Sendable'; this is an error in the Swift 6 language mode
 22 |     let session = URLSession(configuration: .default)
 23 |     var stream: URLSessionStreamTask
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/RedisSocket.swift:23:9: warning: stored property 'stream' of 'Sendable'-conforming class 'RedisSocket' is mutable; this is an error in the Swift 6 language mode
 21 | class RedisSocket: NSObject {
 22 |     let session = URLSession(configuration: .default)
 23 |     var stream: URLSessionStreamTask
    |         `- warning: stored property 'stream' of 'Sendable'-conforming class 'RedisSocket' is mutable; this is an error in the Swift 6 language mode
 24 |
 25 |     var writeGroup: DispatchGroup
[43/44] Compiling RedShot Redis.swift
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/Redis.swift:88:34: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 86 |
 87 |             let copyData = Data(data)
 88 |             let bytes = copyData.withUnsafeBytes {
    |                                  `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
 89 |                 [UInt8](UnsafeBufferPointer(start: $0, count: data.count))
 90 |             }
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/Redis.swift:160:30: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
158 |             }
159 |
160 |             let bytes = data.withUnsafeBytes {
    |                              `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
161 |                 [UInt8](UnsafeBufferPointer(start: $0, count: data.count))
162 |             }
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/Redis.swift:183:38: warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
181 |                     }
182 |
183 |                     let bytes = data.withUnsafeBytes {
    |                                      `- warning: 'withUnsafeBytes' is deprecated: use `withUnsafeBytes<R>(_: (UnsafeRawBufferPointer) throws -> R) rethrows -> R` instead
184 |                         [UInt8](UnsafeBufferPointer(start: $0, count: data.count))
185 |                     }
/Users/admin/builder/spi-builder-workspace/Sources/RedShot/Redis.swift:189:29: warning: capture of 'callback' with non-sendable type '((any RedisType)?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                         do {
188 |                             let parser = Parser(bytes: bytes)
189 |                             callback(try parser.parse(), nil)
    |                             |- warning: capture of 'callback' with non-sendable type '((any RedisType)?, (any Error)?) -> Void' 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'
190 |                         } catch {
191 |                             callback(nil, error)
[44/44] Compiling RedShot RedisCommands.swift
Build complete! (18.56s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "datable",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "3.0.2",
            "upper_bound" : "4.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/OperatorFoundation/Datable.git"
    }
  ],
  "manifest_display_name" : "RedShot",
  "name" : "RedShot",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "RedShot",
      "targets" : [
        "RedShot"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RedShotTests",
      "module_type" : "SwiftTarget",
      "name" : "RedShotTests",
      "path" : "Tests/RedShotTests",
      "sources" : [
        "RedShotPerformanceTests.swift",
        "RedShotTests.swift"
      ],
      "target_dependencies" : [
        "RedShot"
      ],
      "type" : "test"
    },
    {
      "c99name" : "RedShot",
      "module_type" : "SwiftTarget",
      "name" : "RedShot",
      "path" : "Sources/RedShot",
      "product_dependencies" : [
        "Datable"
      ],
      "product_memberships" : [
        "RedShot"
      ],
      "sources" : [
        "Constants.swift",
        "Redis.swift",
        "RedisCommands.swift",
        "RedisSocket.swift",
        "RedisSubscribe.swift",
        "RedisType.swift",
        "ResponseParser.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.1"
}
Done.