The Swift Package Index logo.Swift Package Index

Build Information

Successful build of Resourceful, reference 1.1.0 (d97d6d), with Swift 6.1 for Android on 28 May 2025 05:31:41 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.63.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/danielctull/Resourceful.git
Reference: 1.1.0
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
 * tag               1.1.0      -> FETCH_HEAD
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 1.1.0
========================================
Build
========================================
Selected platform:         android
Swift version:             6.1
Building package at path:  $PWD
https://github.com/danielctull/Resourceful.git
https://github.com/danielctull/Resourceful.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-0":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:android-6.1-latest swift build --swift-sdk aarch64-unknown-linux-android24 -Xswiftc -Xfrontend -Xswiftc -stats-output-dir -Xswiftc -Xfrontend -Xswiftc .stats -Xswiftc -strict-concurrency=complete -Xswiftc -enable-upcoming-feature -Xswiftc StrictConcurrency -Xswiftc -enable-upcoming-feature -Xswiftc DisableOutwardActorInference -Xswiftc -enable-upcoming-feature -Xswiftc GlobalActorIsolatedTypesUsability -Xswiftc -enable-upcoming-feature -Xswiftc InferSendableFromCaptures 2>&1
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
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()
/host/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 |             }
[4/7] Compiling Resourceful Resource.swift
[5/7] Compiling Resourceful Resource+Combine.swift
[6/7] Emitting module Resourceful
[7/7] Compiling Resourceful Resource+Async.swift
/host/spi-builder-workspace/Sources/Resourceful/Resource+Async.swift:22:54: warning: converting a value of type '@Sendable (__shared sending Result<Value, any Error>) -> ()' to type '(Result<Value, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
20 |     public func value<Value>(for resource: Resource<Value>) async throws -> Value {
21 |         try await withUnsafeThrowingContinuation { continuation in
22 |             fetch(resource, completion: continuation.resume)
   |                                                      |- warning: converting a value of type '@Sendable (__shared sending Result<Value, any Error>) -> ()' to type '(Result<Value, any Error>) -> Void' risks causing data races; this is an error in the Swift 6 language mode
   |                                                      `- note: converting a function typed value with a sending parameter to one without risks allowing actor-isolated values to escape their isolation domain as an argument to an invocation of value
23 |         }
24 |     }
Build complete! (9.80s)
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"
}
android-6.1-latest: Pulling from finestructure/spi-images
Digest: sha256:fe1962677657b2408c217cb5cceb3c09bc1d91486e360cebbc6eee461a5945d8
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:android-6.1-latest
Done.