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 PatreonAPI-Swift, reference 0.9.15 (ebb99a), with Swift 6.0 for Linux on 1 Dec 2024 09:29:47 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/amirsaam/PatreonAPI-Swift.git
Reference: 0.9.15
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/amirsaam/PatreonAPI-Swift
 * tag               0.9.15     -> FETCH_HEAD
HEAD is now at ebb99a7 Update CampaignData.swift
Cloned https://github.com/amirsaam/PatreonAPI-Swift.git
Revision (git rev-parse @):
ebb99a7e5243566b9df5b02bd95025601303c097
SUCCESS checkout https://github.com/amirsaam/PatreonAPI-Swift.git at 0.9.15
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/amirsaam/PatreonAPI-Swift.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
Fetching https://github.com/amirsaam/CodableAny.git
Fetching https://github.com/groue/Semaphore.git
[1/34] Fetching codableany
[35/327] Fetching codableany, semaphore
Fetched https://github.com/amirsaam/CodableAny.git from cache (0.20s)
[1/30017] Fetching alamofire
Fetched https://github.com/groue/Semaphore.git from cache (2.31s)
Fetched https://github.com/Alamofire/Alamofire.git from cache (2.37s)
Computing version for https://github.com/amirsaam/CodableAny.git
Computed https://github.com/amirsaam/CodableAny.git at 0.2.0 (0.43s)
Computing version for https://github.com/groue/Semaphore.git
Computed https://github.com/groue/Semaphore.git at 0.1.0 (0.40s)
Computing version for https://github.com/Alamofire/Alamofire.git
Computed https://github.com/Alamofire/Alamofire.git at 5.10.2 (0.42s)
Creating working copy for https://github.com/amirsaam/CodableAny.git
Working copy of https://github.com/amirsaam/CodableAny.git resolved at 0.2.0
Creating working copy for https://github.com/groue/Semaphore.git
Working copy of https://github.com/groue/Semaphore.git resolved at 0.1.0
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/6] Write sources
[0/6] Copying PrivacyInfo.xcprivacy
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/49] Emitting module Semaphore
[8/49] Emitting module Alamofire
[9/54] Emitting module CodableAny
[10/54] Compiling CodableAny CodableAny.swift
[12/55] Compiling Alamofire RetryPolicy.swift
[13/55] Compiling Alamofire ServerTrustEvaluation.swift
[14/55] Compiling Alamofire URLEncodedFormEncoder.swift
[15/55] Compiling Alamofire Validation.swift
[16/55] Compiling Alamofire resource_bundle_accessor.swift
[17/55] Compiling Alamofire HTTPMethod.swift
[18/55] Compiling Alamofire Notifications.swift
[19/55] Compiling Alamofire ParameterEncoder.swift
[20/55] Compiling Alamofire ParameterEncoding.swift
[21/55] Compiling Alamofire Protected.swift
[22/55] Compiling Alamofire Request.swift
[23/55] Compiling Semaphore AsyncSemaphore.swift
[24/55] Compiling Alamofire NetworkReachabilityManager.swift
[25/55] Compiling Alamofire RedirectHandler.swift
[26/55] Compiling Alamofire RequestCompression.swift
[27/55] Compiling Alamofire RequestInterceptor.swift
[28/55] Compiling Alamofire ResponseSerialization.swift
[29/56] Compiling Alamofire URLRequest+Alamofire.swift
[30/56] Compiling Alamofire URLSessionConfiguration+Alamofire.swift
[31/56] Compiling Alamofire AlamofireExtended.swift
[32/56] Compiling Alamofire AuthenticationInterceptor.swift
[33/56] Compiling Alamofire CachedResponseHandler.swift
[34/56] Compiling Alamofire RequestTaskMap.swift
[35/56] Compiling Alamofire Response.swift
[36/56] Compiling Alamofire Session.swift
[37/56] Compiling Alamofire SessionDelegate.swift
[38/56] Compiling Alamofire URLConvertible+URLRequestConvertible.swift
[39/56] Compiling Alamofire UploadRequest.swift
[40/56] Compiling Alamofire WebSocketRequest.swift
[41/56] Compiling Alamofire DispatchQueue+Alamofire.swift
[42/56] Compiling Alamofire OperationQueue+Alamofire.swift
[43/56] Compiling Alamofire Result+Alamofire.swift
[44/56] Compiling Alamofire StringEncoding+Alamofire.swift
[45/56] Compiling Alamofire Combine.swift
[46/56] Compiling Alamofire Concurrency.swift
[47/56] Compiling Alamofire EventMonitor.swift
[48/56] Compiling Alamofire MultipartFormData.swift
[49/56] Compiling Alamofire MultipartUpload.swift
[50/56] Compiling Alamofire Alamofire.swift
[51/56] Compiling Alamofire AFError.swift
[52/56] Compiling Alamofire DataRequest.swift
[53/56] Compiling Alamofire DataStreamRequest.swift
[54/56] Compiling Alamofire DownloadRequest.swift
[55/56] Compiling Alamofire HTTPHeaders.swift
[58/71] Compiling PatreonAPI PatreonDataCalls.swift
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonDataCalls.swift:142:10: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
116 |
117 |     // Fetch Patreon Data Fucntion
118 |     fileprivate func fetchPatreonData<T: Codable>(
    |                                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
119 |         accessToken: String,
120 |         apiPath: String,
    :
140 |                    method: .get,
141 |                    headers: headers)
142 |         .responseDecodable(of: T.self) {
    |          `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
143 |             (response: DataResponse<T, AFError>) in
144 |             switch response.result {
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonDataCalls.swift:144:29: warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
116 |
117 |     // Fetch Patreon Data Fucntion
118 |     fileprivate func fetchPatreonData<T: Codable>(
    |                                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
119 |         accessToken: String,
120 |         apiPath: String,
    :
142 |         .responseDecodable(of: T.self) {
143 |             (response: DataResponse<T, AFError>) in
144 |             switch response.result {
    |                             `- warning: type 'T' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
145 |             case .success(let value):
146 |                 data = value
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonDataCalls.swift:146:17: warning: capture of 'data' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
116 |
117 |     // Fetch Patreon Data Fucntion
118 |     fileprivate func fetchPatreonData<T: Codable>(
    |                                       `- note: consider making generic parameter 'T' conform to the 'Sendable' protocol
119 |         accessToken: String,
120 |         apiPath: String,
    :
144 |             switch response.result {
145 |             case .success(let value):
146 |                 data = value
    |                 `- warning: capture of 'data' with non-sendable type 'T?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
147 |                 debugPrint("PatreonAPI: Data of type \(T.self) fetched.")
148 |             case .failure(let error):
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonDataCalls.swift:146:17: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
144 |             switch response.result {
145 |             case .success(let value):
146 |                 data = value
    |                 `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
147 |                 debugPrint("PatreonAPI: Data of type \(T.self) fetched.")
148 |             case .failure(let error):
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonDataCalls.swift:149:17: warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
147 |                 debugPrint("PatreonAPI: Data of type \(T.self) fetched.")
148 |             case .failure(let error):
149 |                 data = nil
    |                 `- warning: mutation of captured var 'data' in concurrently-executing code; this is an error in the Swift 6 language mode
150 |                 debugPrint("PatreonAPI: Failed to fetch data of type \(T.self). Alamofire error log: \(error)")
151 |             }
[59/72] Compiling PatreonAPI PatreonOAuthCalls.swift
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonOAuthCalls.swift:76:10: warning: type 'PatronOAuth' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 |                    parameters: parameters,
75 |                    headers: headers)
76 |         .responseDecodable(of: PatronOAuth.self) {
   |          `- warning: type 'PatronOAuth' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
77 |             (response: DataResponse<PatronOAuth, AFError>) in
78 |             switch response.result {
/host/spi-builder-workspace/Sources/PatreonAPI/Patreon Data Structs/OAuthData.swift:10:15: note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct PatronOAuth: Codable {
   |               `- note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
11 |     public let access_token: String
12 |     public let refresh_token: String
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonOAuthCalls.swift:76:50: warning: type 'PatronOAuth' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
74 |                    parameters: parameters,
75 |                    headers: headers)
76 |         .responseDecodable(of: PatronOAuth.self) {
   |                                                  `- warning: type 'PatronOAuth' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
77 |             (response: DataResponse<PatronOAuth, AFError>) in
78 |             switch response.result {
/host/spi-builder-workspace/Sources/PatreonAPI/Patreon Data Structs/OAuthData.swift:10:15: note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct PatronOAuth: Codable {
   |               `- note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
11 |     public let access_token: String
12 |     public let refresh_token: String
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonOAuthCalls.swift:78:29: warning: type 'PatronOAuth' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
76 |         .responseDecodable(of: PatronOAuth.self) {
77 |             (response: DataResponse<PatronOAuth, AFError>) in
78 |             switch response.result {
   |                             `- warning: type 'PatronOAuth' does not conform to the 'Sendable' protocol; this is an error in the Swift 6 language mode
79 |             case .success(let data):
80 |                 requestResponse = data
/host/spi-builder-workspace/Sources/PatreonAPI/Patreon Data Structs/OAuthData.swift:10:15: note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct PatronOAuth: Codable {
   |               `- note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
11 |     public let access_token: String
12 |     public let refresh_token: String
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonOAuthCalls.swift:80:17: warning: capture of 'requestResponse' with non-sendable type 'PatronOAuth?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
78 |             switch response.result {
79 |             case .success(let data):
80 |                 requestResponse = data
   |                 `- warning: capture of 'requestResponse' with non-sendable type 'PatronOAuth?' in a `@Sendable` closure; this is an error in the Swift 6 language mode
81 |                 debugPrint("PatreonAPI: Data of type \(PatronOAuth.self) fetched.")
82 |             case .failure(let error):
/host/spi-builder-workspace/Sources/PatreonAPI/Patreon Data Structs/OAuthData.swift:10:15: note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
 8 | import Foundation
 9 |
10 | public struct PatronOAuth: Codable {
   |               `- note: consider making struct 'PatronOAuth' conform to the 'Sendable' protocol
11 |     public let access_token: String
12 |     public let refresh_token: String
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonOAuthCalls.swift:80:17: warning: mutation of captured var 'requestResponse' in concurrently-executing code; this is an error in the Swift 6 language mode
78 |             switch response.result {
79 |             case .success(let data):
80 |                 requestResponse = data
   |                 `- warning: mutation of captured var 'requestResponse' in concurrently-executing code; this is an error in the Swift 6 language mode
81 |                 debugPrint("PatreonAPI: Data of type \(PatronOAuth.self) fetched.")
82 |             case .failure(let error):
/host/spi-builder-workspace/Sources/PatreonAPI/PatreonOAuthCalls.swift:83:17: warning: mutation of captured var 'requestResponse' in concurrently-executing code; this is an error in the Swift 6 language mode
81 |                 debugPrint("PatreonAPI: Data of type \(PatronOAuth.self) fetched.")
82 |             case .failure(let error):
83 |                 requestResponse = nil
   |                 `- warning: mutation of captured var 'requestResponse' in concurrently-executing code; this is an error in the Swift 6 language mode
84 |                 debugPrint("PatreonAPI: Failed to fetch data of type \(PatronOAuth.self). Alamofire error log: \(error)")
85 |             }
[60/72] Compiling PatreonAPI TiersAttsRel.swift
[61/72] Compiling PatreonAPI UserAddress.swift
[62/72] Emitting module PatreonAPI
[63/72] Compiling PatreonAPI GoalsAttsRel.swift
[64/72] Compiling PatreonAPI Miscs.swift
[65/72] Compiling PatreonAPI CampaignPatrons.swift
[66/72] Compiling PatreonAPI DeliverablesAttsRel.swift
[67/72] Compiling PatreonAPI UserIdentity.swift
[68/72] Compiling PatreonAPI PatreonAPIClass.swift
[69/72] Compiling PatreonAPI OAuthData.swift
[70/72] Compiling PatreonAPI PatreonMedia.swift
[71/72] Compiling PatreonAPI BenefitsAttsRel.swift
[72/72] Compiling PatreonAPI CampaignData.swift
Build complete! (19.76s)
Build complete.
{
  "dependencies" : [
    {
      "identity" : "alamofire",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "5.6.1",
            "upper_bound" : "6.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/Alamofire/Alamofire.git"
    },
    {
      "identity" : "semaphore",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.0.6",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/groue/Semaphore.git"
    },
    {
      "identity" : "codableany",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "0.1.0",
            "upper_bound" : "1.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/amirsaam/CodableAny.git"
    }
  ],
  "manifest_display_name" : "PatreonAPI-Swift",
  "name" : "PatreonAPI-Swift",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "13.0"
    },
    {
      "name" : "macos",
      "version" : "10.15"
    }
  ],
  "products" : [
    {
      "name" : "PatreonAPI",
      "targets" : [
        "PatreonAPI"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PatreonAPI_Tests",
      "module_type" : "SwiftTarget",
      "name" : "PatreonAPI-Tests",
      "path" : "Tests/PatreonAPI-Tests",
      "sources" : [
        "PatreonAPI_SwiftTests.swift"
      ],
      "target_dependencies" : [
        "PatreonAPI"
      ],
      "type" : "test"
    },
    {
      "c99name" : "PatreonAPI",
      "module_type" : "SwiftTarget",
      "name" : "PatreonAPI",
      "path" : "Sources/PatreonAPI",
      "product_dependencies" : [
        "Alamofire",
        "Semaphore",
        "CodableAny"
      ],
      "product_memberships" : [
        "PatreonAPI"
      ],
      "sources" : [
        "Patreon Data Structs/BenefitsAttsRel.swift",
        "Patreon Data Structs/CampaignData.swift",
        "Patreon Data Structs/CampaignPatrons.swift",
        "Patreon Data Structs/DeliverablesAttsRel.swift",
        "Patreon Data Structs/GoalsAttsRel.swift",
        "Patreon Data Structs/Miscs.swift",
        "Patreon Data Structs/OAuthData.swift",
        "Patreon Data Structs/PatreonMedia.swift",
        "Patreon Data Structs/TiersAttsRel.swift",
        "Patreon Data Structs/UserAddress.swift",
        "Patreon Data Structs/UserIdentity.swift",
        "PatreonAPIClass.swift",
        "PatreonDataCalls.swift",
        "PatreonOAuthCalls.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
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.