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.1 for Linux on 29 Apr 2025 10:56:49 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.61.0
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.1
Building package at path:  $PWD
https://github.com/insub4067/Requestify.git
https://github.com/insub4067/Requestify.git
WARNING: environment variable SUPPRESS_SWIFT_6_FLAGS is not set
{
  "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"
}
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.1-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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Fetching https://github.com/Alamofire/Alamofire.git
[1/30137] Fetching alamofire
Fetched https://github.com/Alamofire/Alamofire.git from cache (5.04s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (6.60s)
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] Compiling Alamofire Combine.swift
[6/43] Compiling Alamofire Concurrency.swift
[7/43] Compiling Alamofire EventMonitor.swift
[8/43] Compiling Alamofire MultipartFormData.swift
[9/43] Compiling Alamofire MultipartUpload.swift
[10/43] Compiling Alamofire HTTPMethod.swift
[11/43] Compiling Alamofire Notifications.swift
[12/43] Compiling Alamofire ParameterEncoder.swift
[13/43] Compiling Alamofire ParameterEncoding.swift
[14/43] Compiling Alamofire Protected.swift
[15/43] Compiling Alamofire Request.swift
[16/43] Compiling Alamofire NetworkReachabilityManager.swift
[17/43] Compiling Alamofire RedirectHandler.swift
[18/43] Compiling Alamofire RequestCompression.swift
[19/43] Compiling Alamofire RequestInterceptor.swift
[20/43] Compiling Alamofire ResponseSerialization.swift
[21/48] Compiling Alamofire WebSocketRequest.swift
[22/48] Compiling Alamofire DispatchQueue+Alamofire.swift
[23/48] Compiling Alamofire OperationQueue+Alamofire.swift
[24/48] Compiling Alamofire Result+Alamofire.swift
[25/48] Compiling Alamofire StringEncoding+Alamofire.swift
[26/48] Compiling Alamofire RequestTaskMap.swift
[27/48] Compiling Alamofire Response.swift
[28/48] Compiling Alamofire Session.swift
[29/48] Compiling Alamofire SessionDelegate.swift
[30/48] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[31/48] Compiling Alamofire UploadRequest.swift
[32/48] Compiling Alamofire URLRequest+Alamofire.swift
[33/48] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[34/48] Compiling Alamofire AlamofireExtended.swift
[35/48] Compiling Alamofire AuthenticationInterceptor.swift
[36/48] Compiling Alamofire CachedResponseHandler.swift
[37/48] Compiling Alamofire Alamofire.swift
[38/48] Compiling Alamofire AFError.swift
[39/48] Compiling Alamofire DataRequest.swift
[40/48] Compiling Alamofire DataStreamRequest.swift
[41/48] Compiling Alamofire DownloadRequest.swift
[42/48] Compiling Alamofire HTTPHeaders.swift
[43/48] Emitting module Alamofire
[44/48] Compiling Alamofire RetryPolicy.swift
[45/48] Compiling Alamofire ServerTrustEvaluation.swift
[46/48] Compiling Alamofire URLEncodedFormEncoder.swift
[47/48] Compiling Alamofire Validation.swift
[48/48] Compiling Alamofire resource_bundle_accessor.swift
[50/55] Emitting module Requestify
[51/55] Compiling Requestify Encodable+.swift
[52/55] Compiling Requestify RequestBuilderError.swift
[53/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 |     }
[54/55] Compiling Requestify Params.swift
[55/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
 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
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
  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
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
  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
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
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
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
  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
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
  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
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)
Build complete! (31.05s)
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.1-latest: Pulling from finestructure/spi-images
Digest: sha256:3bdcac04179f4ed3e5b8e9dbd6e74bbf5ebc0f4fde48bbaad7d1e5c757e65bcb
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.1-latest
Done.