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

Failed to build HTTPClient, reference main (960cbb), with Swift 5.9 for Linux on 15 Sep 2024 19:21:25 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

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 /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/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:         linux
Swift version:             5.9
Building package at path:  $PWD
https://github.com/marinofelipe/http_client.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4606859-1":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-5.9-latest: Pulling from finestructure/spi-images
Digest: sha256:66706f89ac15d55dcb11e8d3274e2fe11925b5da93d240b09d5a1eb775db6cc2
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-5.9-latest
Fetching https://github.com/apple/swift-log.git
[1/3586] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (1.53s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (1.11s)
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
Building for debugging...
[1/12] Compiling HTTPClientCore HTTPRequestMethod.swift
[2/12] Compiling HTTPClientCore HTTPRequestScheme.swift
[3/12] Emitting module HTTPClientCore
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:8:10: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'HTTPResponseError' has non-sendable type 'URLResponse'
    case invalidResponse(_ urlResponse: URLResponse)
         ^
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
open class URLResponse : NSObject, NSSecureCoding, NSCopying {
           ^
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
import FoundationNetworking
^
@preconcurrency
[4/12] Compiling HTTPClientCore Data+HTTPClient.swift
[5/12] Compiling HTTPClientCore HTTPRequestError.swift
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:8:10: warning: associated value 'invalidResponse' of 'Sendable'-conforming enum 'HTTPResponseError' has non-sendable type 'URLResponse'
    case invalidResponse(_ urlResponse: URLResponse)
         ^
FoundationNetworking.URLResponse:1:12: note: class 'URLResponse' does not conform to the 'Sendable' protocol
open class URLResponse : NSObject, NSSecureCoding, NSCopying {
           ^
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:3:1: remark: add '@preconcurrency' to suppress 'Sendable'-related warnings from module 'FoundationNetworking'
import FoundationNetworking
^
@preconcurrency
[6/12] Compiling HTTPClientCore Result+HTTPClient.swift
[7/12] Compiling HTTPClientCore HTTPRequestBuilder.swift
[8/12] Compiling HTTPClientCore Set+HTTPClient.swift
[11/14] Compiling Logging Locks.swift
[12/14] Compiling Logging LogHandler.swift
[13/14] Emitting module Logging
[14/14] Compiling Logging Logging.swift
[17/28] Compiling CombineHTTPClient HTTPResponse.swift
/host/spi-builder-workspace/Sources/CombineHTTPClient/CombineHTTPClient.swift:1:8: error: no such module 'Combine'
import Combine
       ^
[18/28] Compiling HTTPClient HTTPDecoder.swift
[19/28] Compiling CombineHTTPClient CombineHTTPClient.swift
/host/spi-builder-workspace/Sources/CombineHTTPClient/CombineHTTPClient.swift:1:8: error: no such module 'Combine'
import Combine
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[20/28] Emitting module CombineHTTPClient
/host/spi-builder-workspace/Sources/CombineHTTPClient/CombineHTTPClient.swift:1:8: error: no such module 'Combine'
import Combine
       ^
error: fatalError
[21/29] Emitting module HTTPClient
/host/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) {
                                                   ^
/host/spi-builder-workspace/Sources/HTTPClientCore/Extensions/Set+HTTPClient.swift:2:16: note: static property declared here
    static var defaultSuccessfulStatusCodes: Set<Int> = Set(200..<300)
               ^
BUILD FAILURE 5.9 linux