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 Patron, reference 11.0.0 (b2e1b6), with Swift 6.0 for macOS (SPM) on 1 Nov 2024 11:18:54 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/michaelnisi/patron.git
Reference: 11.0.0
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/michaelnisi/patron
 * tag               11.0.0     -> FETCH_HEAD
HEAD is now at b2e1b6e Fix README
Cloned https://github.com/michaelnisi/patron.git
Revision (git rev-parse @):
b2e1b6e385c27da926f4d4743e1f084bf9ea70d6
SUCCESS checkout https://github.com/michaelnisi/patron.git at 11.0.0
========================================
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": "patron",
      "name": "Patron",
      "url": "https://github.com/michaelnisi/patron.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/patron",
      "dependencies": [
      ]
    }
  ]
}
Fetching https://github.com/michaelnisi/patron.git
[1/6532] Fetching patron
Fetched https://github.com/michaelnisi/patron.git from cache (2.42s)
Creating working copy for https://github.com/michaelnisi/patron.git
Working copy of https://github.com/michaelnisi/patron.git resolved at 11.0.0 (b2e1b6e)
warning: '.resolve-product-dependencies': dependency 'patron' 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/michaelnisi/patron.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/4] Compiling Patron Patron.swift
/Users/admin/builder/spi-builder-workspace/Sources/Patron/Patron.swift:121:11: warning: capture of 'self' with non-sendable type 'Patron' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 63 | /// within an `Operation` or a closure, off the main thread, encapsulating
 64 | /// request, response, and serialization.
 65 | public final class Patron: JSONService {
    |                    `- note: class 'Patron' does not conform to the 'Sendable' protocol
 66 |
 67 |   fileprivate let baseURL: URL
    :
119 |       func done(_ json: Any?, _ error: Error?) {
120 |         if let er = error {
121 |           self.status = (er._code, Date().timeIntervalSince1970)
    |           `- warning: capture of 'self' with non-sendable type 'Patron' in a `@Sendable` closure; this is an error in the Swift 6 language mode
122 |         }
123 |         cb(json as AnyObject?, res, error)
/Users/admin/builder/spi-builder-workspace/Sources/Patron/Patron.swift:123:9: warning: capture of 'cb' with non-sendable type '(AnyObject?, URLResponse?, (any Error)?) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
121 |           self.status = (er._code, Date().timeIntervalSince1970)
122 |         }
123 |         cb(json as AnyObject?, res, error)
    |         |- warning: capture of 'cb' with non-sendable type '(AnyObject?, URLResponse?, (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'
124 |       }
125 |
/Users/admin/builder/spi-builder-workspace/Sources/Patron/Patron.swift:121:11: warning: capture of 'self' with non-sendable type 'Patron' in an isolated local function; this is an error in the Swift 6 language mode
 63 | /// within an `Operation` or a closure, off the main thread, encapsulating
 64 | /// request, response, and serialization.
 65 | public final class Patron: JSONService {
    |                    `- note: class 'Patron' does not conform to the 'Sendable' protocol
 66 |
 67 |   fileprivate let baseURL: URL
    :
119 |       func done(_ json: Any?, _ error: Error?) {
120 |         if let er = error {
121 |           self.status = (er._code, Date().timeIntervalSince1970)
    |           `- warning: capture of 'self' with non-sendable type 'Patron' in an isolated local function; this is an error in the Swift 6 language mode
122 |         }
123 |         cb(json as AnyObject?, res, error)
/Users/admin/builder/spi-builder-workspace/Sources/Patron/Patron.swift:123:9: warning: capture of 'cb' with non-sendable type '(AnyObject?, URLResponse?, (any Error)?) -> Void' in an isolated local function; this is an error in the Swift 6 language mode
121 |           self.status = (er._code, Date().timeIntervalSince1970)
122 |         }
123 |         cb(json as AnyObject?, res, error)
    |         |- warning: capture of 'cb' with non-sendable type '(AnyObject?, URLResponse?, (any Error)?) -> Void' in an isolated local function; this is an error in the Swift 6 language mode
    |         `- note: a function type must be marked '@Sendable' to conform to 'Sendable'
124 |       }
125 |
[4/4] Emitting module Patron
Build complete! (5.76s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Patron",
  "name" : "Patron",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "Patron",
      "targets" : [
        "Patron"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatronTests",
      "module_type" : "SwiftTarget",
      "name" : "PatronTests",
      "path" : "Tests/PatronTests",
      "sources" : [
        "PatronTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Patron"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Patron",
      "module_type" : "SwiftTarget",
      "name" : "Patron",
      "path" : "Sources/Patron",
      "product_memberships" : [
        "Patron"
      ],
      "sources" : [
        "Patron.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.3"
}
Done.