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 Linux.

Swift 6 data race errors: 0

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1

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 /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
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:         linux
Swift version:             6.0
Building package at path:  $workDir
https://github.com/danielctull/Resourceful.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-6.0-latest swift build --triple x86_64-unknown-linux-gnu -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete 2>&1
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling Resourceful Resource+Fetch.swift
/host/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 |             }
/host/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 |             }
/host/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()
[4/7] Emitting module Resourceful
[5/7] Compiling Resourceful Resource+Combine.swift
[6/7] Compiling Resourceful Resource+Async.swift
[7/7] Compiling Resourceful Resource.swift
Build complete! (11.26s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Resourceful",
  "name" : "Resourceful",
  "path" : "/host/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.