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 Resourceful 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/danielctull/Resourceful.git
Reference: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/danielctull/Resourceful
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at d97d6d4 Add a check for the swift version to make sure it supports concurrency
Cloned https://github.com/danielctull/Resourceful.git
Revision (git rev-parse @):
d97d6d4798dd3de1097496b07f92b967ded8b783
SUCCESS checkout https://github.com/danielctull/Resourceful.git at main
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.0
Building package at path:  $workDir
https://github.com/danielctull/Resourceful.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/7] Compiling Resourceful Resource.swift
[4/7] Compiling Resourceful Resource+Async.swift
[5/7] Emitting module Resourceful
[6/7] Compiling Resourceful Resource+Fetch.swift
/Users/admin/builder/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:30:21: warning: capture of 'completion' with non-sendable type '(Result<Value, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
28 |                 let value = Result { try resource.transform(result.get()) }
29 |                 queue.async {
30 |                     completion(value)
   |                     |- warning: capture of 'completion' with non-sendable type '(Result<Value, 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'
31 |                 }
32 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:30:32: warning: capture of 'value' with non-sendable type 'Result<Value, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
17 |     ///   - completion: Completion handler with the result.
18 |     @discardableResult
19 |     public func fetch<Value>(
   |                       `- note: consider making generic parameter 'Value' conform to the 'Sendable' protocol
20 |         _ resource: Resource<Value>,
21 |         callbackQueue queue: DispatchQueue = .main,
   :
28 |                 let value = Result { try resource.transform(result.get()) }
29 |                 queue.async {
30 |                     completion(value)
   |                                `- warning: capture of 'value' with non-sendable type 'Result<Value, any Error>' in a `@Sendable` closure; this is an error in the Swift 6 language mode
31 |                 }
32 |             }
/Users/admin/builder/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:35:17: warning: capture of 'completion' with non-sendable type '(Result<Value, any Error>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
33 |         } catch {
34 |             queue.async {
35 |                 completion(.failure(error))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<Value, 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'
36 |             }
37 |             return URLSessionDataTask()
/Users/admin/builder/spi-builder-workspace/Sources/Resourceful/Resource+Fetch.swift:50:17: warning: capture of 'completion' with non-sendable type '(Result<(Data, URLResponse), URLError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
48 |             guard let data = data, let response = response else {
49 |                 let error = (error as? URLError) ?? URLError(.unknown)
50 |                 completion(.failure(error))
   |                 |- warning: capture of 'completion' with non-sendable type '(Result<(Data, URLResponse), URLError>) -> 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'
51 |                 return
52 |             }
[7/7] Compiling Resourceful Resource+Combine.swift
Build complete! (17.46s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Resourceful",
  "name" : "Resourceful",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "Resourceful",
      "targets" : [
        "Resourceful"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "ResourcefulTests",
      "module_type" : "SwiftTarget",
      "name" : "ResourcefulTests",
      "path" : "Tests/ResourcefulTests",
      "sources" : [
        "AsyncTests.swift",
        "CombineTests.swift",
        "FetchTests.swift",
        "Helper.swift",
        "ResourceTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Resourceful"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Resourceful",
      "module_type" : "SwiftTarget",
      "name" : "Resourceful",
      "path" : "Sources/Resourceful",
      "product_memberships" : [
        "Resourceful"
      ],
      "sources" : [
        "Resource+Async.swift",
        "Resource+Combine.swift",
        "Resource+Fetch.swift",
        "Resource.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
Done.
This is a staging environment. For live and up-to-date package information, visit swiftpackageindex.com.