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 Requestify, reference main (30a69c), with Swift 6.0 for Linux on 1 Dec 2024 20:54:31 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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 -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.58.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/insub4067/Requestify.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/insub4067/Requestify
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 30a69cd Update Params.swift
Cloned https://github.com/insub4067/Requestify.git
Revision (git rev-parse @):
30a69cdd036797e6db965fd5b6d0b8329f1542f9
SUCCESS checkout https://github.com/insub4067/Requestify.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/insub4067/Requestify.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" 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 -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
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Fetching https://github.com/Alamofire/Alamofire.git
[1/30017] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (3.27s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (0.45s)
Creating working copy for https://github.com/Alamofire/Alamofire.git
Working copy of https://github.com/Alamofire/Alamofire.git resolved at 5.10.2
Building for debugging...
[0/4] Write sources
[0/4] Copying PrivacyInfo.xcprivacy
[0/4] Write sources
[3/4] Write swift-version-24593BA9C3E375BF.txt
[5/43] Emitting module Alamofire
[6/48] Compiling Alamofire HTTPMethod.swift
[7/48] Compiling Alamofire Notifications.swift
[8/48] Compiling Alamofire ParameterEncoder.swift
[9/48] Compiling Alamofire ParameterEncoding.swift
[10/48] Compiling Alamofire Protected.swift
[11/48] Compiling Alamofire Request.swift
[12/48] Compiling Alamofire WebSocketRequest.swift
[13/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[14/48] Compiling Alamofire OperationQueue+Alamofire.swift
[15/48] Compiling Alamofire Result+Alamofire.swift
[16/48] Compiling Alamofire StringEncoding+Alamofire.swift
[17/48] Compiling Alamofire RetryPolicy.swift
[18/48] Compiling Alamofire ServerTrustEvaluation.swift
[19/48] Compiling Alamofire URLEncodedFormEncoder.swift
[20/48] Compiling Alamofire Validation.swift
[21/48] Compiling Alamofire resource_bundle_accessor.swift
[22/48] Compiling Alamofire URLRequest+Alamofire.swift
[23/48] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[24/48] Compiling Alamofire AlamofireExtended.swift
[25/48] Compiling Alamofire AuthenticationInterceptor.swift
[26/48] Compiling Alamofire CachedResponseHandler.swift
[27/48] Compiling Alamofire RequestTaskMap.swift
[28/48] Compiling Alamofire Response.swift
[29/48] Compiling Alamofire Session.swift
[30/48] Compiling Alamofire SessionDelegate.swift
[31/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[32/48] Compiling Alamofire UploadRequest.swift
[33/48] Compiling Alamofire Combine.swift
[34/48] Compiling Alamofire Concurrency.swift
[35/48] Compiling Alamofire EventMonitor.swift
[36/48] Compiling Alamofire MultipartFormData.swift
[37/48] Compiling Alamofire MultipartUpload.swift
[38/48] Compiling Alamofire NetworkReachabilityManager.swift
[39/48] Compiling Alamofire RedirectHandler.swift
[40/48] Compiling Alamofire RequestCompression.swift
[41/48] Compiling Alamofire RequestInterceptor.swift
[42/48] Compiling Alamofire ResponseSerialization.swift
[43/48] Compiling Alamofire Alamofire.swift
[44/48] Compiling Alamofire AFError.swift
[45/48] Compiling Alamofire DataRequest.swift
[46/48] Compiling Alamofire DataStreamRequest.swift
[47/48] Compiling Alamofire DownloadRequest.swift
[48/48] Compiling Alamofire HTTPHeaders.swift
[50/55] Compiling Requestify RequestBuilderError.swift
[51/55] Compiling Requestify Encodable+.swift
[52/55] Compiling Requestify printApiLog.swift
/host/spi-builder-workspace/Sources/Requestify/Utils/printApiLog.swift:21:31: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 9 | import Alamofire
10 |
11 | func printApiLog<T: Codable>(
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |     _ response: AFDataResponse<T>,
13 |     parameters: [String: Any]? = nil,
   :
19 |
20 |     // MARK: - Request
21 |     if let request = response.request {
   |                               `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
22 |         if let url = request.url?.absoluteString {
23 |             print(" • url:", url)
/host/spi-builder-workspace/Sources/Requestify/Utils/printApiLog.swift:39:34: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 9 | import Alamofire
10 |
11 | func printApiLog<T: Codable>(
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |     _ response: AFDataResponse<T>,
13 |     parameters: [String: Any]? = nil,
   :
37 |
38 |     // MARK: - Response Status
39 |     if let statusCode = response.response?.statusCode {
   |                                  `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
40 |         print(" • status code:", statusCode)
41 |     }
/host/spi-builder-workspace/Sources/Requestify/Utils/printApiLog.swift:46:29: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 9 | import Alamofire
10 |
11 | func printApiLog<T: Codable>(
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |     _ response: AFDataResponse<T>,
13 |     parameters: [String: Any]? = nil,
   :
44 |     if
45 |         printResponse,
46 |         let data = response.data,
   |                             `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
47 |         let string = makePrettyJson(from: data)
48 |     {
/host/spi-builder-workspace/Sources/Requestify/Utils/printApiLog.swift:53:29: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 9 | import Alamofire
10 |
11 | func printApiLog<T: Codable>(
   |                  `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
12 |     _ response: AFDataResponse<T>,
13 |     parameters: [String: Any]? = nil,
   :
51 |
52 |     // MARK: - Response Error
53 |     if let error = response.error {
   |                             `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
54 |         print(" • error:", error)
55 |     }
[53/55] Compiling Requestify Params.swift
[54/55] Compiling Requestify Requestify.swift
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:106:34: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
104 |                 self.urlString,
105 |                 method: self.method,
106 |                 parameters: self.parameters,
    |                                  `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
107 |                 encoding: JSONEncoding.default,
108 |                 headers: self.headers
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:110:14: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 99 | public extension Requestify {
100 |
101 |     @discardableResult func request<R: Codable>(_ expect: R.Type) async throws -> R {
    |                                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
102 |         try await withCheckedThrowingContinuation { continuation in
103 |             AF.request(
    :
108 |                 headers: self.headers
109 |             )
110 |             .responseDecodable(of: R.self) { response in
    |              `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
111 |                 if printLog {
112 |                     printApiLog(response, object: object, printResponse: self.printResponse)
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:114:33: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
 99 | public extension Requestify {
100 |
101 |     @discardableResult func request<R: Codable>(_ expect: R.Type) async throws -> R {
    |                                     `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
102 |         try await withCheckedThrowingContinuation { continuation in
103 |             AF.request(
    :
112 |                     printApiLog(response, object: object, printResponse: self.printResponse)
113 |                 }
114 |                 switch response.result {
    |                                 `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
115 |                 case .success(let result):
116 |                     continuation.resume(returning: result)
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:111:20: warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | #endif
  9 |
 10 | public struct Requestify {
    |               `- note: consider making struct 'Requestify' conform to the 'Sendable' protocol
 11 |
 12 |     var urlString: String = ""
    :
109 |             )
110 |             .responseDecodable(of: R.self) { response in
111 |                 if printLog {
    |                    `- warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
112 |                     printApiLog(response, object: object, printResponse: self.printResponse)
113 |                 }
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:129:34: warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
127 |                 self.urlString,
128 |                 method: self.method,
129 |                 parameters: self.parameters,
    |                                  `- warning: type 'Any' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
130 |                 encoding: JSONEncoding.default,
131 |                 headers: self.headers
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:134:20: warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | #endif
  9 |
 10 | public struct Requestify {
    |               `- note: consider making struct 'Requestify' conform to the 'Sendable' protocol
 11 |
 12 |     var urlString: String = ""
    :
132 |             )
133 |             .response { response in
134 |                 if printLog {
    |                    `- warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
135 |                     printApiLog(response, object: object, printResponse: self.printResponse)
136 |                 }
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:159:14: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 |     }
146 |
147 |     @discardableResult func upload<R: Codable>(_ expect: R.Type) async throws -> R {
    |                                    `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
148 |         try await withCheckedThrowingContinuation { continuation in
149 |             AF.upload(
    :
157 |                 headers: headers
158 |             )
159 |             .responseDecodable(of: R.self) { response in
    |              `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
160 |                 if printLog {
161 |                     printApiLog(response, object: object, printResponse: self.printResponse)
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:163:33: warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 |     }
146 |
147 |     @discardableResult func upload<R: Codable>(_ expect: R.Type) async throws -> R {
    |                                    `- note: consider making generic parameter 'R' conform to the 'Sendable' protocol
148 |         try await withCheckedThrowingContinuation { continuation in
149 |             AF.upload(
    :
161 |                     printApiLog(response, object: object, printResponse: self.printResponse)
162 |                 }
163 |                 switch response.result {
    |                                 `- warning: type 'R' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
164 |                 case .success(let result):
165 |                     continuation.resume(returning: result)
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:160:20: warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | #endif
  9 |
 10 | public struct Requestify {
    |               `- note: consider making struct 'Requestify' conform to the 'Sendable' protocol
 11 |
 12 |     var urlString: String = ""
    :
158 |             )
159 |             .responseDecodable(of: R.self) { response in
160 |                 if printLog {
    |                    `- warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
161 |                     printApiLog(response, object: object, printResponse: self.printResponse)
162 |                 }
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:186:20: warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
  8 | #endif
  9 |
 10 | public struct Requestify {
    |               `- note: consider making struct 'Requestify' conform to the 'Sendable' protocol
 11 |
 12 |     var urlString: String = ""
    :
184 |             )
185 |             .response { response in
186 |                 if printLog {
    |                    `- warning: capture of 'self' with non-sendable type 'Requestify' in a `@Sendable` closure; this is an error in the Swift 6 language mode
187 |                     printApiLog(response, object: object, printResponse: self.printResponse)
188 |                 }
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:116:34: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
114 |                 switch response.result {
115 |                 case .success(let result):
116 |                     continuation.resume(returning: result)
    |                                  |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
117 |                 case .failure(let error):
118 |                     continuation.resume(throwing: error)
/host/spi-builder-workspace/Sources/Requestify/Requestify.swift:165:34: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
163 |                 switch response.result {
164 |                 case .success(let result):
165 |                     continuation.resume(returning: result)
    |                                  |- warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
    |                                  `- note: task-isolated 'result' is passed as a 'sending' parameter; Uses in callee may race with later task-isolated uses
166 |                 case .failure(let error):
167 |                     continuation.resume(throwing: error)
[55/55] Emitting module Requestify
Build complete! (20.23s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "alamofire",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.4.0",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alamofire/Alamofire.git"
    }
  ],
  "manifest_display_name" : "Requestify",
  "name" : "Requestify",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "tvos",
      "version" : "12.0"
    },
    {
      "name" : "watchos",
      "version" : "4.0"
    }
  ],
  "products" : [
    {
      "name" : "Requestify",
      "targets" : [
        "Requestify"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "RequestifyTests",
      "module_type" : "SwiftTarget",
      "name" : "RequestifyTests",
      "path" : "Tests/RequestifyTests",
      "sources" : [
        "ParamsTests.swift",
        "RequestifyTests.swift"
      ],
      "target_dependencies" : [
        "Requestify"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Requestify",
      "module_type" : "SwiftTarget",
      "name" : "Requestify",
      "path" : "Sources/Requestify",
      "product_dependencies" : [
        "Alamofire"
      ],
      "product_memberships" : [
        "Requestify"
      ],
      "sources" : [
        "Params.swift",
        "Requestify.swift",
        "Utils/Encodable+.swift",
        "Utils/RequestBuilderError.swift",
        "Utils/printApiLog.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.4"
}
basic-6.0-latest: Pulling from finestructure/spi-images
Digest: sha256:47d26c99ca4f1ac0a332c85fd5b13ff4390e72115219984a57a68fe9d1063a05
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.0-latest
Done.