The Swift Package Index logo.Swift Package Index

Build Information

Successful build of HPNetwork, reference 4.0.1 (a46290), with Swift 6.2 for macOS (SPM) on 21 Jun 2025 11:31:32 UTC.

Swift 6 data race errors: 0

Build Command

env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64

Build Log

========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/henrik-dmg/HPNetwork.git
Reference: 4.0.1
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/henrik-dmg/HPNetwork
 * tag               4.0.1      -> FETCH_HEAD
HEAD is now at a462903 Better Documentation (#5)
Cloned https://github.com/henrik-dmg/HPNetwork.git
Revision (git rev-parse @):
a4629039573f695f97fc044032c4e654b40671b0
SUCCESS checkout https://github.com/henrik-dmg/HPNetwork.git at 4.0.1
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             6.2
Building package at path:  $PWD
https://github.com/henrik-dmg/HPNetwork.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-26.0.0-Beta.app xcrun swift build --arch arm64
Building for debugging...
[0/5] Write sources
[4/5] Write swift-version-1EA4D86E10B52AF.txt
[6/14] Compiling HTTPTypes ISOLatin1String.swift
[7/14] Compiling HTTPTypes NIOLock.swift
[8/14] Compiling HTTPTypes HTTPResponse.swift
[9/14] Compiling HTTPTypes HTTPRequest.swift
[10/14] Compiling HTTPTypes HTTPParsedFields.swift
[11/14] Compiling HTTPTypes HTTPField.swift
[12/14] Compiling HTTPTypes HTTPFieldName.swift
[13/14] Emitting module HTTPTypes
[14/14] Compiling HTTPTypes HTTPFields.swift
[15/20] Compiling HTTPTypesFoundation URLResponse+HTTPTypes.swift
[16/20] Compiling HTTPTypesFoundation HTTPTypes+ISOLatin1.swift
[17/20] Compiling HTTPTypesFoundation URLSession+HTTPTypes.swift
[18/20] Compiling HTTPTypesFoundation HTTPRequest+URL.swift
[19/20] Emitting module HTTPTypesFoundation
[20/20] Compiling HTTPTypesFoundation URLRequest+HTTPTypes.swift
[21/33] Compiling HPNetwork NetworkRequest.swift
[22/33] Compiling HPNetwork DecodableRequest.swift
[23/33] Compiling HPNetwork DownloadRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:75:32: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
73 |     ) -> Task<Void, Never> {
74 |         Task {
75 |             let result = await result(urlSession: urlSession, delegate: delegate)
   |                                `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
76 |             finishingQueue.async {
77 |                 completion(result)
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:68:17: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
66 |     }
67 |
68 |     public func schedule(
   |                 `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
69 |         urlSession: URLSession,
70 |         delegate: (any URLSessionTaskDelegate)?,
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:77:28: warning: capture of 'result' with non-sendable type 'Result<NetworkResponse<URL>, any Error>' in a '@Sendable' closure [#SendableClosureCaptures]
75 |             let result = await result(urlSession: urlSession, delegate: delegate)
76 |             finishingQueue.async {
77 |                 completion(result)
   |                            `- warning: capture of 'result' with non-sendable type 'Result<NetworkResponse<URL>, any Error>' in a '@Sendable' closure [#SendableClosureCaptures]
78 |             }
79 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Responses/NetworkResponse.swift:5:15: note: consider making generic struct 'NetworkResponse' conform to the 'Sendable' protocol
 3 |
 4 | /// A wrapper type representing the result of a network request.
 5 | public struct NetworkResponse<Output> {
   |               `- note: consider making generic struct 'NetworkResponse' conform to the 'Sendable' protocol
 6 |
 7 |     /// The actual output of the network request.
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DownloadRequest.swift:72:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
70 |         delegate: (any URLSessionTaskDelegate)?,
71 |         finishingQueue: DispatchQueue = .main,
72 |         completion: @escaping (RequestResult) -> Void
   |         `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
73 |     ) -> Task<Void, Never> {
74 |         Task {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[24/34] Emitting module HPNetwork
[25/34] Compiling HPNetwork NetworkResponse.swift
[26/34] Compiling HPNetwork HTTPTypes+Proxy.swift
[27/34] Compiling HPNetwork ContentType+HTTPField.swift
[28/34] Compiling HPNetwork Authorization.swift
[29/34] Compiling HPNetwork BasicAuthorization.swift
[30/34] Compiling HPNetwork BearerAuthorization.swift
[31/34] Compiling HPNetwork ConnectionMonitor.swift
[32/34] Compiling HPNetwork HTTPFieldBuilder.swift
[33/34] Compiling HPNetwork DataRequest.swift
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:112:32: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
110 |     ) -> Task<Void, Never> {
111 |         Task {
112 |             let result = await result(urlSession: urlSession, delegate: delegate)
    |                                `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
113 |             finishingQueue.async {
114 |                 completion(result)
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:105:36: warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
103 |     }
104 |
105 |     @discardableResult public func schedule(
    |                                    `- warning: capture of non-sendable type 'Self.Type' in an isolated closure; this is an error in the Swift 6 language mode
106 |         urlSession: URLSession,
107 |         delegate: (any URLSessionTaskDelegate)?,
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:114:28: warning: capture of 'result' with non-sendable type 'Result<NetworkResponse<Self.Output>, any Error>' in a '@Sendable' closure [#SendableClosureCaptures]
112 |             let result = await result(urlSession: urlSession, delegate: delegate)
113 |             finishingQueue.async {
114 |                 completion(result)
    |                            `- warning: capture of 'result' with non-sendable type 'Result<NetworkResponse<Self.Output>, any Error>' in a '@Sendable' closure [#SendableClosureCaptures]
115 |             }
116 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Responses/NetworkResponse.swift:5:15: note: consider making generic struct 'NetworkResponse' conform to the 'Sendable' protocol
 3 |
 4 | /// A wrapper type representing the result of a network request.
 5 | public struct NetworkResponse<Output> {
   |               `- note: consider making generic struct 'NetworkResponse' conform to the 'Sendable' protocol
 6 |
 7 |     /// The actual output of the network request.
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Requests/DataRequest.swift:109:9: warning: capture of non-sendable type 'Self.Type' in an isolated closure
107 |         delegate: (any URLSessionTaskDelegate)?,
108 |         finishingQueue: DispatchQueue = .main,
109 |         completion: @escaping (RequestResult) -> Void
    |         `- warning: capture of non-sendable type 'Self.Type' in an isolated closure
110 |     ) -> Task<Void, Never> {
111 |         Task {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[34/34] Compiling HPNetwork NetworkClient.swift
[35/37] Compiling HPNetworkMock NetworkClientMock.swift
/Users/admin/builder/spi-builder-workspace/Sources/HPNetworkMock/NetworkClientMock.swift:69:32: warning: capture of non-sendable type 'Request.Type' in an isolated closure; this is an error in the Swift 6 language mode
67 |     ) -> Task<Void, Never> {
68 |         Task {
69 |             let result = await result(request, delegate: delegate)
   |                                `- warning: capture of non-sendable type 'Request.Type' in an isolated closure; this is an error in the Swift 6 language mode
70 |             finishingQueue.async {
71 |                 completion(result)
/Users/admin/builder/spi-builder-workspace/Sources/HPNetworkMock/NetworkClientMock.swift:63:11: warning: capture of non-sendable type 'Request.Type' in an isolated closure; this is an error in the Swift 6 language mode
61 |
62 |     public func schedule<Request: NetworkRequest>(
63 |         _ request: Request,
   |           `- warning: capture of non-sendable type 'Request.Type' in an isolated closure; this is an error in the Swift 6 language mode
64 |         delegate: (any URLSessionTaskDelegate)? = nil,
65 |         finishingQueue: DispatchQueue = .main,
/Users/admin/builder/spi-builder-workspace/Sources/HPNetworkMock/NetworkClientMock.swift:71:28: warning: capture of 'result' with non-sendable type 'Result<NetworkResponse<Request.Output>, any Error>' in a '@Sendable' closure [#SendableClosureCaptures]
69 |             let result = await result(request, delegate: delegate)
70 |             finishingQueue.async {
71 |                 completion(result)
   |                            `- warning: capture of 'result' with non-sendable type 'Result<NetworkResponse<Request.Output>, any Error>' in a '@Sendable' closure [#SendableClosureCaptures]
72 |             }
73 |         }
/Users/admin/builder/spi-builder-workspace/Sources/HPNetwork/Responses/NetworkResponse.swift:5:15: note: generic struct 'NetworkResponse' does not conform to the 'Sendable' protocol
 3 |
 4 | /// A wrapper type representing the result of a network request.
 5 | public struct NetworkResponse<Output> {
   |               `- note: generic struct 'NetworkResponse' does not conform to the 'Sendable' protocol
 6 |
 7 |     /// The actual output of the network request.
/Users/admin/builder/spi-builder-workspace/Sources/HPNetworkMock/NetworkClientMock.swift:2:1: warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'HPNetwork'
 1 | import Foundation
 2 | import HPNetwork
   | `- warning: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'HPNetwork'
 3 | import HTTPTypes
 4 |
/Users/admin/builder/spi-builder-workspace/Sources/HPNetworkMock/NetworkClientMock.swift:66:9: warning: capture of non-sendable type 'Request.Type' in an isolated closure
64 |         delegate: (any URLSessionTaskDelegate)? = nil,
65 |         finishingQueue: DispatchQueue = .main,
66 |         completion: @escaping (Request.RequestResult) -> Void
   |         `- warning: capture of non-sendable type 'Request.Type' in an isolated closure
67 |     ) -> Task<Void, Never> {
68 |         Task {
[#SendableClosureCaptures]: <https://docs.swift.org/compiler/documentation/diagnostics/sendable-closure-captures>
[36/37] Compiling HPNetworkMock URLSessionMock.swift
[37/37] Emitting module HPNetworkMock
Build complete! (15.23s)
Fetching https://github.com/apple/swift-http-types.git
[1/904] Fetching swift-http-types
Fetched https://github.com/apple/swift-http-types.git from cache (0.75s)
Computing version for https://github.com/apple/swift-http-types.git
Computed https://github.com/apple/swift-http-types.git at 1.4.0 (1.17s)
Creating working copy for https://github.com/apple/swift-http-types.git
Working copy of https://github.com/apple/swift-http-types.git resolved at 1.4.0
Build complete.
{
  "dependencies" : [
    {
      "identity" : "swift-http-types",
      "requirement" : {
        "range" : [
          {
            "lower_bound" : "1.0.0",
            "upper_bound" : "2.0.0"
          }
        ]
      },
      "type" : "sourceControl",
      "url" : "https://github.com/apple/swift-http-types.git"
    }
  ],
  "manifest_display_name" : "HPNetwork",
  "name" : "HPNetwork",
  "path" : "/Users/admin/builder/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "ios",
      "version" : "15.0"
    },
    {
      "name" : "tvos",
      "version" : "15.0"
    },
    {
      "name" : "watchos",
      "version" : "6.0"
    },
    {
      "name" : "macos",
      "version" : "12.0"
    }
  ],
  "products" : [
    {
      "name" : "HPNetwork",
      "targets" : [
        "HPNetwork"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    },
    {
      "name" : "HPNetworkMock",
      "targets" : [
        "HPNetworkMock"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "HPNetworkTests",
      "module_type" : "SwiftTarget",
      "name" : "HPNetworkTests",
      "path" : "Tests/HPNetworkTests",
      "sources" : [
        "AuthorizationTests.swift",
        "ConnectionMonitorTests.swift",
        "DataRequestTests.swift",
        "DownloadRequestTests.swift",
        "HTTPFieldBuilderTests.swift",
        "Helpers/BasicDataRequest.swift",
        "Helpers/BasicDecodableRequest.swift",
        "Helpers/BasicDownloadRequest.swift",
        "Helpers/FaultyRequest.swift",
        "NetworkClientMockTests.swift",
        "NetworkRequestTests.swift"
      ],
      "target_dependencies" : [
        "HPNetwork",
        "HPNetworkMock"
      ],
      "type" : "test"
    },
    {
      "c99name" : "HPNetworkMock",
      "module_type" : "SwiftTarget",
      "name" : "HPNetworkMock",
      "path" : "Sources/HPNetworkMock",
      "product_memberships" : [
        "HPNetworkMock"
      ],
      "sources" : [
        "NetworkClientMock.swift",
        "URLSessionMock.swift"
      ],
      "target_dependencies" : [
        "HPNetwork"
      ],
      "type" : "library"
    },
    {
      "c99name" : "HPNetwork",
      "module_type" : "SwiftTarget",
      "name" : "HPNetwork",
      "path" : "Sources/HPNetwork",
      "product_dependencies" : [
        "HTTPTypes",
        "HTTPTypesFoundation"
      ],
      "product_memberships" : [
        "HPNetwork",
        "HPNetworkMock"
      ],
      "sources" : [
        "Authorization/Authorization.swift",
        "Authorization/BasicAuthorization.swift",
        "Authorization/BearerAuthorization.swift",
        "ConnectionMonitor.swift",
        "HTTPTypes+Proxy.swift",
        "Header Fields/ContentType+HTTPField.swift",
        "Header Fields/HTTPFieldBuilder.swift",
        "NetworkClient.swift",
        "Requests/DataRequest.swift",
        "Requests/DecodableRequest.swift",
        "Requests/DownloadRequest.swift",
        "Requests/NetworkRequest.swift",
        "Responses/NetworkResponse.swift"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "5.7"
}
Done.