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

Swift 6 data race errors: 0

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/michaelnisi/patron.git
Reference: master
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/michaelnisi/patron
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at 0636969 Do CI testing for branches
Cloned https://github.com/michaelnisi/patron.git
Revision (git rev-parse @):
0636969938e16627a72e2ed950bf2b3d2575a915
SUCCESS checkout https://github.com/michaelnisi/patron.git at master
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/michaelnisi/patron.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/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! (16.01s)
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"
      ],
      "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.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.