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.10 for macOS (SPM) on 15 Sep 2024 19:28:32 UTC.

Build Command

env DEVELOPER_DIR=/Applications/Xcode-15.4.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
Fetching https://github.com/apple/swift-log.git
[1/3586] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (1.54s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (2.75s)
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
========================================
ResolveProductDependencies
========================================
Resolving dependencies ...
{
  "identity": ".resolve-product-dependencies",
  "name": "resolve-dependencies",
  "url": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "version": "unspecified",
  "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies",
  "dependencies": [
    {
      "identity": "http_client",
      "name": "HTTPClient",
      "url": "https://github.com/marinofelipe/http_client.git",
      "version": "unspecified",
      "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/http_client",
      "dependencies": [
        {
          "identity": "swift-log",
          "name": "swift-log",
          "url": "https://github.com/apple/swift-log.git",
          "version": "1.6.1",
          "path": "/Users/admin/builder/spi-builder-workspace/.resolve-product-dependencies/.build/checkouts/swift-log",
          "dependencies": [
          ]
        }
      ]
    }
  ]
}
Fetching https://github.com/marinofelipe/http_client.git
[4/311] Fetching http_client
Fetched https://github.com/marinofelipe/http_client.git from cache (0.76s)
Fetching https://github.com/apple/swift-log.git from cache
Fetched https://github.com/apple/swift-log.git from cache (0.48s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.6.1 (0.44s)
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.6.1
Creating working copy for https://github.com/marinofelipe/http_client.git
Working copy of https://github.com/marinofelipe/http_client.git resolved at main (960cbb5)
warning: '.resolve-product-dependencies': dependency 'http_client' is not used by any target
Found 1 product dependencies
  - swift-log
========================================
Build
========================================
Selected platform:         macosSpm
Swift version:             5.10
Building package at path:  $PWD
https://github.com/marinofelipe/http_client.git
Running build ...
env DEVELOPER_DIR=/Applications/Xcode-15.4.0.app xcrun swift build --arch arm64
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-33747A42983211AE.txt
[7/18] Compiling Logging Locks.swift
[8/18] Compiling Logging Logging.swift
[9/18] Emitting module Logging
[10/18] Compiling Logging LogHandler.swift
[11/18] Compiling HTTPClientCore HTTPRequestMethod.swift
[12/18] Compiling HTTPClientCore Set+HTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: warning: static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: isolate 'defaultSuccessfulStatusCodes' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
[13/18] Compiling HTTPClientCore HTTPRequestScheme.swift
[14/18] Compiling HTTPClientCore HTTPRequestError.swift
[15/18] Compiling HTTPClientCore Data+HTTPClient.swift
[16/18] Compiling HTTPClientCore HTTPRequestBuilder.swift
[17/18] Compiling HTTPClientCore Result+HTTPClient.swift
[18/18] Emitting module HTTPClientCore
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: warning: static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: isolate 'defaultSuccessfulStatusCodes' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
[19/31] Compiling CombineHTTPClient CombineHTTPClient.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: warning: static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: isolate 'defaultSuccessfulStatusCodes' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/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; this is an error in Swift 6
                                                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)
               ^
[20/31] Compiling CombineHTTPClient HTTPResponse.swift
[21/31] Emitting module CombineHTTPClient
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: warning: static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: isolate 'defaultSuccessfulStatusCodes' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/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; this is an error in Swift 6
                                                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)
               ^
[22/31] 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/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: warning: static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: isolate 'defaultSuccessfulStatusCodes' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/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; this is an error in Swift 6
    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)
               ^
[23/31] Compiling HTTPClient HTTPDecoder.swift
[24/31] 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,
         ^
[25/31] Compiling HTTPClient Optional+Data.swift
[26/31] Compiling HTTPClient HTTPTask.swift
[27/31] Compiling HTTPClient LoggerMiddleware.swift
[28/31] Compiling HTTPClient HTTPClientMiddleware.swift
[29/31] Compiling HTTPClient HTTPClient.swift
[30/31] Compiling HTTPClient HTTPResponseHandler.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: warning: static property 'defaultSuccessfulStatusCodes' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: isolate 'defaultSuccessfulStatusCodes' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
/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; this is an error in Swift 6
    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)
               ^
[31/31] Compiling HTTPClient HTTPResponse.swift
[32/38] Compiling HTTPClientTestSupport HTTPTaskFake.swift
[33/38] Compiling HTTPClientTestSupport FakeError.swift
[34/38] Compiling HTTPClientTestSupport HTTPClientMock.swift
[35/38] Compiling HTTPClientTestSupport FakeHTTPResponse.swift
[36/38] Emitting module HTTPClientTestSupport
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: warning: static property 'startLoadingCallsCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var startLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: note: isolate 'startLoadingCallsCount' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var startLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: warning: static property 'stopLoadingCallsCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var stopLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: note: isolate 'stopLoadingCallsCount' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var stopLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: warning: static property 'stubbedError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var stubbedError: Error?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: note: isolate 'stubbedError' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var stubbedError: Error?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: warning: static property 'stubbedRequestHandler' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: note: isolate 'stubbedRequestHandler' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                      ^
[37/38] Compiling HTTPClientTestSupport MockURLProtocol.swift
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: warning: static property 'startLoadingCallsCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var startLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:8:23: note: isolate 'startLoadingCallsCount' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var startLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: warning: static property 'stopLoadingCallsCount' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var stopLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:9:23: note: isolate 'stopLoadingCallsCount' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var stopLoadingCallsCount: Int = 0
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: warning: static property 'stubbedError' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var stubbedError: Error?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:13:23: note: isolate 'stubbedError' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var stubbedError: Error?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: warning: static property 'stubbedRequestHandler' is not concurrency-safe because it is non-isolated global shared mutable state; this is an error in Swift 6
    public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                      ^
/Users/admin/builder/spi-builder-workspace/Sources/HTTPClientTestSupport/Mocks/MockURLProtocol.swift:14:23: note: isolate 'stubbedRequestHandler' to a global actor, or convert it to a 'let' constant and conform it to 'Sendable'
    public static var stubbedRequestHandler: ((URLRequest) throws -> (HTTPURLResponse, Data?))?
                      ^
/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; this is an error in Swift 6
        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; this is an error in Swift 6
        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; this is an error in Swift 6
        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; this is an error in Swift 6
        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; this is an error in Swift 6
        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; this is an error in Swift 6
            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; this is an error in Swift 6
            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; this is an error in Swift 6
        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
                      ^
[38/38] Compiling HTTPClientTestSupport FakeResponseBody.swift
Build complete! (5.51s)
Build complete.
Done.