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 Corkboard, reference master (06cebc), with Swift 6.0 for macOS (SPM) on 30 Oct 2024 21:47:26 UTC.

Swift 6 data race errors: 0

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/kiliankoe/Corkboard.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/kiliankoe/Corkboard
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 06cebc2 add other platforms to manifest
Cloned https://github.com/kiliankoe/Corkboard.git
Revision (git rev-parse @):
06cebc246f001121d1f69e816423cb703018610c
SUCCESS checkout https://github.com/kiliankoe/Corkboard.git at master
========================================
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": "corkboard",
      "name": "Corkboard",
      "url": "https://github.com/kiliankoe/Corkboard.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/Corkboard",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/kiliankoe/Corkboard.git
[1/126] Fetching corkboard
Fetched https://github.com/kiliankoe/Corkboard.git from cache (0.71s)
Creating working copy for https://github.com/kiliankoe/Corkboard.git
Working copy of https://github.com/kiliankoe/Corkboard.git resolved at master (06cebc2)
warning: '.resolve-product-dependencies': dependency 'corkboard' 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/kiliankoe/Corkboard.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/2] Write sources
[1/2] Write swift-version--7754E27361AE5C74.txt
[3/7] Compiling Corkboard Responses.swift
[4/7] Compiling Corkboard PinboardClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:111:17: warning: capture of 'completion' with non-sendable type '(Result<T, CorkboardError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
109 |                 let response = resp as? HTTPURLResponse
110 |             else {
111 |                 completion(.failure(.network(resp)))
    |                 |- warning: capture of 'completion' with non-sendable type '(Result<T, CorkboardError>) -> 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'
112 |                 return
113 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:117:17: warning: capture of 'self' with non-sendable type 'PinboardClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 21 | }
 22 |
 23 | public class PinboardClient {
    |              `- note: class 'PinboardClient' does not conform to the 'Sendable' protocol
 24 |     var auth: Authentication
 25 |
    :
115 |             switch response.statusCode {
116 |             case 200...299:
117 |                 self.retryWait = 1
    |                 `- warning: capture of 'self' with non-sendable type 'PinboardClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
118 |             case 429:
119 |                 // Pinboard docs kindly ask to increasingly back off on firing
/Users/admin/builder/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:173:13: warning: capture of 'self' with non-sendable type 'PinboardClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 21 | }
 22 |
 23 | public class PinboardClient {
    |              `- note: class 'PinboardClient' does not conform to the 'Sendable' protocol
 24 |     var auth: Authentication
 25 |
    :
171 |         let deadline = DispatchTime.now() + .seconds(Int(seconds))
172 |         DispatchQueue(label: "Corkboard.RetryRequest").asyncAfter(deadline: deadline) {
173 |             self.request(url, session: session, completion: completion)
    |             `- warning: capture of 'self' with non-sendable type 'PinboardClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
174 |         }
175 |     }
/Users/admin/builder/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:173:61: warning: capture of 'completion' with non-sendable type '(Result<T, CorkboardError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
171 |         let deadline = DispatchTime.now() + .seconds(Int(seconds))
172 |         DispatchQueue(label: "Corkboard.RetryRequest").asyncAfter(deadline: deadline) {
173 |             self.request(url, session: session, completion: completion)
    |                                                             |- warning: capture of 'completion' with non-sendable type '(Result<T, CorkboardError>) -> 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'
174 |         }
175 |     }
[5/7] Compiling Corkboard Bookmark.swift
[6/7] Emitting module Corkboard
[7/7] Compiling Corkboard API.swift
Build complete! (7.53s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Corkboard",
  "name" : "Corkboard",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.12"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    }
  ],
  "products" : [
    {
      "name" : "Corkboard",
      "targets" : [
        "Corkboard"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "CorkboardTests",
      "module_type" : "SwiftTarget",
      "name" : "CorkboardTests",
      "path" : "Tests/CorkboardTests",
      "sources" : [
        "CorkboardTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Corkboard"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Corkboard",
      "module_type" : "SwiftTarget",
      "name" : "Corkboard",
      "path" : "Sources/Corkboard",
      "product_memberships" : [
        "Corkboard"
      ],
      "sources" : [
        "API.swift",
        "Bookmark.swift",
        "PinboardClient.swift",
        "Responses.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.