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 Prch, reference 0.2.1 (600b49), with Swift 6.0 for Linux on 2 Nov 2024 12:48:58 UTC.

Swift 6 data race errors: 1

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.56.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/brightdigit/Prch.git
Reference: 0.2.1
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/brightdigit/Prch
 * tag               0.2.1      -> FETCH_HEAD
HEAD is now at 600b49c Version 0.2.1
Cloned https://github.com/brightdigit/Prch.git
Revision (git rev-parse @):
600b49cc7a77271ea3d2a9f9e449be081562a087
SUCCESS checkout https://github.com/brightdigit/Prch.git at 0.2.1
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/brightdigit/Prch.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-0":/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 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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/44] Emitting module Prch
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[4/49] Compiling Prch SecurityRequirement.swift
[5/49] Compiling Prch Service.swift
[6/49] Compiling Prch ServiceRequest.swift
[7/49] Compiling Prch StatusCodeProvider.swift
[8/49] Compiling Prch SuccessModel.swift
[9/49] Compiling Prch Response.swift
[10/49] Compiling Prch ResponseResult.swift
[11/49] Compiling Prch Result.swift
[12/49] Compiling Prch Authentication.swift
[13/49] Compiling Prch BasicAuthentication.swift
[14/49] Compiling Prch Model.swift
[15/49] Compiling Prch DateDay.swift
[16/49] Compiling Prch File.swift
[17/49] Compiling Prch ID.swift
[18/49] Compiling Prch UploadFile.swift
[19/49] Compiling Prch ResponseComponents.swift
[20/49] Compiling Prch StringCodingKey.swift
[21/49] Compiling Prch DateEncodingContainer.swift
[22/49] Compiling Prch DeprecatedRequest.swift
[23/49] Compiling Prch DeprecatedResponse.swift
[24/49] Compiling Prch DeprecatedResponseResult.swift
[25/49] Compiling Prch TypeAliases.swift
[26/49] Compiling Prch BasicResponse.swift
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[27/49] Compiling Prch BodyRequest.swift
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[28/49] Compiling Prch Client.swift
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[29/49] Compiling Prch ClientError.swift
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[30/49] Compiling Prch ClientResult.swift
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[31/49] Compiling Prch Coding.swift
/host/spi-builder-workspace/Sources/Prch/ClientResult.swift:43:16: warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
 1 | import Foundation
 2 |
 3 | public enum ClientResult<SuccessType, DefaultResponseType>: CustomStringConvertible,
   |                                       `- note: consider making generic parameter 'DefaultResponseType' conform to the 'Sendable' protocol
 4 |   CustomDebugStringConvertible {
 5 |   case success(SuccessType)
   :
41 |   struct FailedResponseError: ResponseError {
42 |     public let statusCode: Int
43 |     public let response: DefaultResponseType
   |                `- warning: stored property 'response' of 'Sendable'-conforming struct 'FailedResponseError' has non-sendable type 'DefaultResponseType'; this is an error in the Swift 6 language mode
44 |   }
45 |
[32/49] Compiling Prch DateFormatter.swift
[33/49] Compiling Prch DecodingError.swift
[34/49] Compiling Prch KeyedDecodingContainer.swift
[35/49] Compiling Prch KeyedEncodingContainer.swift
[36/49] Compiling Prch RequestEncoder.swift
[37/49] Compiling Prch ResponseDecoder.swift
[38/49] Compiling Prch API.swift
[39/49] Compiling Prch AnyCodable.Codable.swift
[40/49] Compiling Prch AnyCodable.Equatable.swift
[41/49] Compiling Prch AnyCodable.Expressible.swift
[42/49] Compiling Prch AnyCodable.StringConverable.swift
[43/49] Compiling Prch AnyCodable.swift
[44/49] Compiling Prch Session.swift
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: 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
20 |         }
21 |       }
[45/49] Compiling Prch Task.swift
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: 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
20 |         }
21 |       }
[46/49] Compiling Prch URL.swift
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: 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
20 |         }
21 |       }
[47/49] Compiling Prch URLSession.swift
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: 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
20 |         }
21 |       }
[48/49] Compiling Prch URLSessionResponse.swift
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: 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
20 |         }
21 |       }
[49/49] Compiling Prch Request.swift
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:49:7: warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
47 |         error: error
48 |       )
49 |       completion(result)
   |       |- warning: capture of 'completion' with non-sendable type '(Result<any ResponseComponents, ClientError>) -> 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'
50 |     }
51 |     task.resume()
/host/spi-builder-workspace/Sources/Prch/Networking/URLSession.swift:19:24: warning: sending 'result' risks causing data races; this is an error in the Swift 6 language mode
17 |       try await withCheckedThrowingContinuation { continuation in
18 |         _ = self.beginRequest(request) { result in
19 |           continuation.resume(with: 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
20 |         }
21 |       }
Build complete! (12.11s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "Prch",
  "name" : "Prch",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "10.15"
    },
    {
      "name" : "ios",
      "version" : "10.0"
    },
    {
      "name" : "tvos",
      "version" : "10.0"
    },
    {
      "name" : "watchos",
      "version" : "3.0"
    }
  ],
  "products" : [
    {
      "name" : "Prch",
      "targets" : [
        "Prch"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "PrchTests",
      "module_type" : "SwiftTarget",
      "name" : "PrchTests",
      "path" : "Tests/PrchTests",
      "sources" : [
        "PrchTests.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "Prch"
      ],
      "type" : "test"
    },
    {
      "c99name" : "Prch",
      "module_type" : "SwiftTarget",
      "name" : "Prch",
      "path" : "Sources/Prch",
      "product_memberships" : [
        "Prch"
      ],
      "sources" : [
        "API.swift",
        "AnyCodable/AnyCodable.Codable.swift",
        "AnyCodable/AnyCodable.Equatable.swift",
        "AnyCodable/AnyCodable.Expressible.swift",
        "AnyCodable/AnyCodable.StringConverable.swift",
        "AnyCodable/AnyCodable.swift",
        "BasicResponse.swift",
        "BodyRequest.swift",
        "Client.swift",
        "ClientError.swift",
        "ClientResult.swift",
        "Coding/Coding.swift",
        "Coding/DateFormatter.swift",
        "Coding/DecodingError.swift",
        "Coding/KeyedDecodingContainer.swift",
        "Coding/KeyedEncodingContainer.swift",
        "Coding/RequestEncoder.swift",
        "Coding/ResponseDecoder.swift",
        "Coding/StringCodingKey.swift",
        "DateEncodingContainer.swift",
        "Deprecated/DeprecatedRequest.swift",
        "Deprecated/DeprecatedResponse.swift",
        "Deprecated/DeprecatedResponseResult.swift",
        "Deprecated/TypeAliases.swift",
        "Model.swift",
        "Models/DateDay.swift",
        "Models/File.swift",
        "Models/ID.swift",
        "Models/UploadFile.swift",
        "Networking/ResponseComponents.swift",
        "Networking/Session.swift",
        "Networking/Task.swift",
        "Networking/URL.swift",
        "Networking/URLSession.swift",
        "Networking/URLSessionResponse.swift",
        "Request.swift",
        "Response.swift",
        "ResponseResult.swift",
        "Result.swift",
        "Security/Authentication.swift",
        "Security/BasicAuthentication.swift",
        "Security/SecurityRequirement.swift",
        "Service.swift",
        "ServiceRequest.swift",
        "StatusCodeProvider.swift",
        "SuccessModel.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.5"
}
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.