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 main (960cbb), with Swift 5.9 for macOS (SPM) on 15 Sep 2024 19:28:13 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: main
Initialized empty Git repository in /Users/admin/builder/spi-builder-workspace/.git/
From https://github.com/marinofelipe/http_client
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 960cbb5 Missing conditional imports for Linux
Cloned https://github.com/marinofelipe/http_client.git
Revision (git rev-parse @):
960cbb55c2082c97523257aec91bb6b7e57f8e2e
SUCCESS checkout https://github.com/marinofelipe/http_client.git at main
========================================
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 Locks.swift
[2/12] Compiling Logging LogHandler.swift
[3/12] Compiling Logging Logging.swift
[4/12] Emitting module Logging
[5/12] Compiling HTTPClientCore HTTPRequestScheme.swift
[6/12] Compiling HTTPClientCore HTTPRequestMethod.swift
[7/12] Compiling HTTPClientCore Data+HTTPClient.swift
[8/12] Compiling HTTPClientCore HTTPRequestError.swift
[9/12] Compiling HTTPClientCore Set+HTTPClient.swift
[10/12] Compiling HTTPClientCore Result+HTTPClient.swift
[11/12] Emitting module HTTPClientCore
[12/12] Compiling HTTPClientCore HTTPRequestBuilder.swift
[13/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)
               ^
[14/25] Compiling HTTPClient HTTPClientMiddleware.swift
[15/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,
         ^
[16/25] Compiling HTTPClient HTTPDecoder.swift
[17/25] Compiling HTTPClient HTTPTask.swift
[18/25] Compiling HTTPClient HTTPClient.swift
[19/25] Compiling HTTPClient Optional+Data.swift
[20/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)
               ^
[21/25] Compiling HTTPClient HTTPResponse.swift
[22/25] Compiling HTTPClient LoggerMiddleware.swift
[23/25] Compiling CombineHTTPClient HTTPResponse.swift
[24/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)
               ^
[25/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)
               ^
[26/32] Compiling HTTPClientTestSupport HTTPClientMock.swift
[27/32] Compiling HTTPClientTestSupport HTTPTaskFake.swift
[28/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
                      ^
[29/32] Emitting module HTTPClientTestSupport
[30/32] Compiling HTTPClientTestSupport FakeError.swift
[31/32] Compiling HTTPClientTestSupport FakeHTTPResponse.swift
[32/32] Compiling HTTPClientTestSupport FakeResponseBody.swift
Build complete! (12.09s)
Fetching https://github.com/apple/swift-log.git
[1/3586] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (1.69s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (2.81s)
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.