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 SwiftXmlRpc, reference develop (544919), with Swift 6.0 for Linux on 29 Nov 2024 04:56:01 UTC.

Swift 6 data race errors: 2

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-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.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/helje5/SwiftXmlRpc.git
Reference: develop
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/helje5/SwiftXmlRpc
 * branch            develop    -> FETCH_HEAD
 * [new branch]      develop    -> origin/develop
HEAD is now at 5449191 Update README.md
Cloned https://github.com/helje5/SwiftXmlRpc.git
Revision (git rev-parse @):
544919182a839666e3d1b007e82c14c9eadeb79c
SUCCESS checkout https://github.com/helje5/SwiftXmlRpc.git at develop
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.0
Building package at path:  $PWD
https://github.com/helje5/SwiftXmlRpc.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-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
Building for debugging...
[0/7] Write sources
[2/7] Write swift-version-24593BA9C3E375BF.txt
[4/15] Emitting module XmlRpc
/host/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:80:10: warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 78 |   public enum ClientError: Swift.Error {
 79 |     case transportError            (Swift.Error)
 80 |     case httpError                 (status: Int, headers: [AnyHashable : Any])
    |          `- warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 81 |     case noContentInResponse
 82 |     case couldNotDecodeDataAsString(Data, encoding: String.Encoding)
/host/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:158:16: warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 |       if let error = error {
157 |         print("ERROR:", error, response as Any, data as Any)
158 |         return yield(.transportError(error), nil)
    |                |- warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> 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'
159 |       }
160 |
[5/16] Compiling XmlRpc XmlRpcUtilities.swift
[6/16] Compiling XmlRpc XmlRpcValueRepresentable.swift
[7/16] Compiling XmlRpc XmlRpcGeneration.swift
[8/16] Compiling XmlRpc XmlRpcLiterals.swift
[9/16] Compiling XmlRpc XmlRpcParser.swift
[10/16] Compiling XmlRpc XmlRpcMultiCall.swift
[11/16] Compiling XmlRpc XmlRpcClient.swift
/host/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:80:10: warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 78 |   public enum ClientError: Swift.Error {
 79 |     case transportError            (Swift.Error)
 80 |     case httpError                 (status: Int, headers: [AnyHashable : Any])
    |          `- warning: associated value 'httpError(status:headers:)' of 'Sendable'-conforming enum 'ClientError' has non-sendable type '(status: Int, headers: [AnyHashable : Any])'; this is an error in the Swift 6 language mode
 81 |     case noContentInResponse
 82 |     case couldNotDecodeDataAsString(Data, encoding: String.Encoding)
/host/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:158:16: warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> Void' in a `@Sendable` closure; this is an error in the Swift 6 language mode
156 |       if let error = error {
157 |         print("ERROR:", error, response as Any, data as Any)
158 |         return yield(.transportError(error), nil)
    |                |- warning: capture of 'yield' with non-sendable type '(XmlRpcClient.ClientError?, XmlRpc.Value) -> 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'
159 |       }
160 |
/host/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:244:9: warning: capture of 'client' with non-sendable type 'XmlRpcClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
 74 |  */
 75 | @dynamicMemberLookup
 76 | public struct XmlRpcClient {
    |               `- note: consider making struct 'XmlRpcClient' conform to the 'Sendable' protocol
 77 |
 78 |   public enum ClientError: Swift.Error {
    :
242 |       let client = self.client
243 |       DispatchQueue.global().async {
244 |         client.call(methodCall) { error, value in
    |         `- warning: capture of 'client' with non-sendable type 'XmlRpcClient' in a `@Sendable` closure; this is an error in the Swift 6 language mode
245 |           if let error = error { result = .failure(error) }
246 |           else                 { result = .success(value) }
/host/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:245:34: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
243 |       DispatchQueue.global().async {
244 |         client.call(methodCall) { error, value in
245 |           if let error = error { result = .failure(error) }
    |                                  `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
246 |           else                 { result = .success(value) }
247 |           semaphore.signal()
/host/spi-builder-workspace/Sources/XmlRpc/XmlRpcClient.swift:246:34: warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
244 |         client.call(methodCall) { error, value in
245 |           if let error = error { result = .failure(error) }
246 |           else                 { result = .success(value) }
    |                                  `- warning: mutation of captured var 'result' in concurrently-executing code; this is an error in the Swift 6 language mode
247 |           semaphore.signal()
248 |         }
[12/16] Compiling XmlRpc XmlRpc.swift
[13/17] Wrapping AST for XmlRpc for debugging
[15/19] Emitting module xmlrpc_call
[16/19] Compiling xmlrpc_call main.swift
[17/20] Wrapping AST for xmlrpc_call for debugging
[18/20] Write Objects.LinkFileList
[19/20] Linking xmlrpc_call
Build complete! (22.37s)
Build complete.
{
  "dependencies" : [
  ],
  "manifest_display_name" : "SwiftXmlRpc",
  "name" : "SwiftXmlRpc",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
  ],
  "products" : [
    {
      "name" : "XmlRpc",
      "targets" : [
        "XmlRpc"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "xmlrpc_call",
      "targets" : [
        "xmlrpc_call"
      ],
      "type" : {
        "executable" : null
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "xmlrpc_call",
      "module_type" : "SwiftTarget",
      "name" : "xmlrpc_call",
      "path" : "Sources/xmlrpc_call",
      "product_memberships" : [
        "xmlrpc_call"
      ],
      "sources" : [
        "main.swift"
      ],
      "target_dependencies" : [
        "XmlRpc"
      ],
      "type" : "executable"
    },
    {
      "c99name" : "XmlRpcTests",
      "module_type" : "SwiftTarget",
      "name" : "XmlRpcTests",
      "path" : "Tests/XmlRpcTests",
      "sources" : [
        "GenerationTests.swift",
        "ParserTests.swift",
        "TestData.swift",
        "XCTestManifests.swift"
      ],
      "target_dependencies" : [
        "XmlRpc"
      ],
      "type" : "test"
    },
    {
      "c99name" : "XmlRpc",
      "module_type" : "SwiftTarget",
      "name" : "XmlRpc",
      "path" : "Sources/XmlRpc",
      "product_memberships" : [
        "XmlRpc",
        "xmlrpc_call"
      ],
      "sources" : [
        "XmlRpc.swift",
        "XmlRpcClient.swift",
        "XmlRpcGeneration.swift",
        "XmlRpcLiterals.swift",
        "XmlRpcMultiCall.swift",
        "XmlRpcParser.swift",
        "XmlRpcUtilities.swift",
        "XmlRpcValueRepresentable.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.0"
}
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.