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 HTTPClient, reference 0.0.5 (3daf31), with Swift 5.9 for macOS (SPM) on 14 Sep 2024 18:39:06 UTC.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.53.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marinofelipe/http_client.git
Reference: 0.0.5
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marinofelipe/http_client
 * tag               0.0.5      -> FETCH_HEAD
HEAD is now at 3daf31f More conditional imports for Linux
Cloned https://github.com/marinofelipe/http_client.git
Revision (git rev-parse @):
3daf31f1c0cc62156feee3b79699133394fe6bd1
SUCCESS checkout https://github.com/marinofelipe/http_client.git at 0.0.5
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.9
Building package at path:  $PWD
https://github.com/marinofelipe/http_client.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.2.0.app xcrun swift build --arch arm64
Building for debugging...
[1/12] Compiling Logging LogHandler.swift
[2/12] Compiling Logging Logging.swift
[3/12] Emitting module Logging
[4/12] Compiling Logging Locks.swift
[5/12] Compiling HTTPClientCore HTTPRequestScheme.swift
[6/12] Compiling HTTPClientCore Set+HTTPClient.swift
[7/12] Compiling HTTPClientCore HTTPRequestError.swift
[8/12] Compiling HTTPClientCore HTTPRequestMethod.swift
[9/12] Compiling HTTPClientCore Data+HTTPClient.swift
[10/12] Compiling HTTPClientCore Result+HTTPClient.swift
[11/12] Emitting module HTTPClientCore
[12/12] Compiling HTTPClientCore HTTPRequestBuilder.swift
[13/25] Compiling CombineHTTPClient HTTPResponse.swift
[14/25] Emitting module CombineHTTPClient
/Users/admin/builder/spi-builder-workspace/Sources/CombineHTTPClient/CombineHTTPClient.swift:32:78: warning: reference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state
                                                validStatusCode: Set<Int> = .defaultSuccessfulStatusCodes,
                                                                             ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: static property declared here
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
[15/25] Compiling CombineHTTPClient CombineHTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/CombineHTTPClient/CombineHTTPClient.swift:32:78: warning: reference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state
                                                validStatusCode: Set<Int> = .defaultSuccessfulStatusCodes,
                                                                             ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: static property declared here
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
[16/25] Emitting module HTTPClient
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Abstractions/URLSessionProtocol.swift:13:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'URLSessionProtocol'
extension URLSession: URLSessionProtocol {}
^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Abstractions/URLSessionProtocol.swift:9:10: note: expected sendability to match requirement here
    func dataTask(with request: URLRequest,
         ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Handlers/HTTPResponseHandler.swift:21:52: warning: reference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state
    public init(successfulStatusCodes: Set<Int> = .defaultSuccessfulStatusCodes) {
                                                   ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: static property declared here
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
[17/25] Compiling HTTPClient URLSessionProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Abstractions/URLSessionProtocol.swift:13:1: warning: sendability of function types in instance method 'dataTask(with:completionHandler:)' does not match requirement in protocol 'URLSessionProtocol'
extension URLSession: URLSessionProtocol {}
^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Abstractions/URLSessionProtocol.swift:9:10: note: expected sendability to match requirement here
    func dataTask(with request: URLRequest,
         ^
[18/25] Compiling HTTPClient Optional+Data.swift
[19/25] Compiling HTTPClient HTTPTask.swift
[20/25] Compiling HTTPClient HTTPDecoder.swift
[21/25] Compiling HTTPClient HTTPResponseHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClient/Handlers/HTTPResponseHandler.swift:21:52: warning: reference to static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it involves shared mutable state
    public init(successfulStatusCodes: Set<Int> = .defaultSuccessfulStatusCodes) {
                                                   ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: static property declared here
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
[22/25] Compiling HTTPClient HTTPResponse.swift
[23/25] Compiling HTTPClient HTTPClientMiddleware.swift
[24/25] Compiling HTTPClient HTTPClient.swift
[25/25] Compiling HTTPClient LoggerMiddleware.swift
[26/32] Compiling HTTPClientTestSupport HTTPClientMock.swift
[27/32] Compiling HTTPClientTestSupport FakeError.swift
[28/32] Emitting module HTTPClientTestSupport
[29/32] Compiling HTTPClientTestSupport HTTPTaskFake.swift
[30/32] Compiling HTTPClientTestSupport FakeResponseBody.swift
[31/32] Compiling HTTPClientTestSupport FakeHTTPResponse.swift
[32/32] Compiling HTTPClientTestSupport MockURLProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:17:9: warning: reference to static property 'stubbedError' is not concurrency-safe because it involves shared mutable state
        stubbedError = nil
        ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: note: static property declared here
    public static var stubbedError: Error?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:18:9: warning: reference to static property 'stubbedRequestHandler' is not concurrency-safe because it involves shared mutable state
        stubbedRequestHandler = nil
        ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: note: static property declared here
    public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:19:9: warning: reference to static property 'startLoadingCallsCount' is not concurrency-safe because it involves shared mutable state
        startLoadingCallsCount = 0
        ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: note: static property declared here
    public static var startLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:20:9: warning: reference to static property 'stopLoadingCallsCount' is not concurrency-safe because it involves shared mutable state
        stopLoadingCallsCount = 0
        ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: note: static property declared here
    public static var stopLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:34:14: warning: reference to static property 'startLoadingCallsCount' is not concurrency-safe because it involves shared mutable state
        Self.startLoadingCallsCount += 1
             ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: note: static property declared here
    public static var startLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:37:40: warning: reference to static property 'stubbedError' is not concurrency-safe because it involves shared mutable state
            if let stubbedError = Self.stubbedError {
                                       ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: note: static property declared here
    public static var stubbedError: Error?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:41:56: warning: reference to static property 'stubbedRequestHandler' is not concurrency-safe because it involves shared mutable state
            guard let requestHandler = URLProtocolMock.stubbedRequestHandler else {
                                                       ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: note: static property declared here
    public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:57:14: warning: reference to static property 'stopLoadingCallsCount' is not concurrency-safe because it involves shared mutable state
        Self.stopLoadingCallsCount += 1
             ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: note: static property declared here
    public static var stopLoadingCallsCount: Int = 0
                      ^
Build complete! (12.97s)
Fetching https://github.com/apple/swift-log.git
[1/3586] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (1.67s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (3.10s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.2.0
Build complete.
Done.