The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HTTPClient with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marinofelipe/http_client.git
Reference: 0.0.4
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
 * tag               0.0.4      -> FETCH_HEAD
HEAD is now at a3f8f39 Implement @pietrocaselani suggestion
Cloned https://github.com/marinofelipe/http_client.git
Revision (git rev-parse @):
a3f8f39aae1809cde01e765efc32d9872d87cc49
SUCCESS checkout https://github.com/marinofelipe/http_client.git at 0.0.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/marinofelipe/http_client.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/apple/swift-log.git
[1/3170] Fetching swift-log
Fetched https://github.com/apple/swift-log.git from cache (0.39s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (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.2.0
Building for debugging...
[0/6] Write sources
[5/6] Write swift-version-24593BA9C3E375BF.txt
[7/18] Compiling HTTPClientCore Result+HTTPClient.swift
[8/18] Compiling HTTPClientCore HTTPRequestMethod.swift
[9/18] Compiling HTTPClientCore HTTPRequestScheme.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[10/18] Compiling HTTPClientCore Data+HTTPClient.swift
[11/18] Emitting module HTTPClientCore
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:35:30: error: cannot find type 'URLRequest' in scope
    private var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:97:44: error: cannot find type 'URLRequest' in scope
    public func cachePolicy(_ cachePolicy: URLRequest.CachePolicy) -> HTTPRequestBuilder {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:108:35: error: cannot find type 'URLRequest' in scope
    public func build() throws -> URLRequest {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:115:46: error: cannot find type 'URLRequest' in scope
    private func makeUrlRequest() throws  -> URLRequest {
                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:5:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case invalidResponse(_ urlResponse: URLResponse)
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[12/18] Compiling HTTPClientCore Set+HTTPClient.swift
[13/18] Compiling HTTPClientCore HTTPRequestError.swift
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:5:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case invalidResponse(_ urlResponse: URLResponse)
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[14/18] Compiling HTTPClientCore HTTPRequestBuilder.swift
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:35:30: error: cannot find type 'URLRequest' in scope
    private var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:97:44: error: cannot find type 'URLRequest' in scope
    public func cachePolicy(_ cachePolicy: URLRequest.CachePolicy) -> HTTPRequestBuilder {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:108:35: error: cannot find type 'URLRequest' in scope
    public func build() throws -> URLRequest {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:115:46: error: cannot find type 'URLRequest' in scope
    private func makeUrlRequest() throws  -> URLRequest {
                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:120:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeoutInterval)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:138:24: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        cachePolicy = .useProtocolCachePolicy
                      ~^~~~~~~~~~~~~~~~~~~~~~
error: fatalError
[15/18] Compiling Logging LogHandler.swift
[16/18] Compiling Logging Locks.swift
[17/18] Emitting module Logging
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/8] Compiling HTTPClientCore HTTPRequestError.swift
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:5:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case invalidResponse(_ urlResponse: URLResponse)
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/8] Emitting module HTTPClientCore
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:35:30: error: cannot find type 'URLRequest' in scope
    private var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:97:44: error: cannot find type 'URLRequest' in scope
    public func cachePolicy(_ cachePolicy: URLRequest.CachePolicy) -> HTTPRequestBuilder {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:108:35: error: cannot find type 'URLRequest' in scope
    public func build() throws -> URLRequest {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:115:46: error: cannot find type 'URLRequest' in scope
    private func makeUrlRequest() throws  -> URLRequest {
                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestError.swift:5:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    case invalidResponse(_ urlResponse: URLResponse)
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
[4/8] Compiling HTTPClientCore HTTPRequestBuilder.swift
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:35:30: error: cannot find type 'URLRequest' in scope
    private var cachePolicy: URLRequest.CachePolicy = .useProtocolCachePolicy
                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:97:44: error: cannot find type 'URLRequest' in scope
    public func cachePolicy(_ cachePolicy: URLRequest.CachePolicy) -> HTTPRequestBuilder {
                                           ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:108:35: error: cannot find type 'URLRequest' in scope
    public func build() throws -> URLRequest {
                                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:115:46: error: cannot find type 'URLRequest' in scope
    private func makeUrlRequest() throws  -> URLRequest {
                                             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:120:26: error: cannot find 'URLRequest' in scope
        var urlRequest = URLRequest(url: url, cachePolicy: cachePolicy, timeoutInterval: timeoutInterval)
                         ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HTTPClientCore/HTTPRequestBuilder/HTTPRequestBuilder.swift:138:24: error: cannot infer contextual base in reference to member 'useProtocolCachePolicy'
        cachePolicy = .useProtocolCachePolicy
                      ~^~~~~~~~~~~~~~~~~~~~~~
[5/8] Emitting module Logging
error: fatalError
[6/8] Compiling Logging LogHandler.swift
[7/8] Compiling Logging Locks.swift
BUILD FAILURE 5.10 linux

Build Machine: Linux 2