The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HTTPClient with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/marinofelipe/http_client.git
Reference: 0.0.4
Cloned https://github.com/marinofelipe/http_client.git into spi-builder-workspace
SUCCESS checkout https://github.com/marinofelipe/http_client.git at 0.0.4
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Fetching https://github.com/apple/swift-log.git
[1/3079] Fetching swift-log
Fetched https://github.com/apple/swift-log.git (0.38s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.2.0 (0.30s)
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...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/12] 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
                 ^
[2/12] Compiling HTTPClientCore HTTPRequestScheme.swift
[3/12] Compiling HTTPClientCore Result+HTTPClient.swift
[4/12] Compiling HTTPClientCore HTTPRequestMethod.swift
[5/12] Compiling HTTPClientCore Set+HTTPClient.swift
[6/12] 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
                      ~^~~~~~~~~~~~~~~~~~~~~~
[7/12] Compiling HTTPClientCore Data+HTTPClient.swift
[8/12] 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: fatalError
[9/12] Compiling Logging LogHandler.swift
[10/12] Compiling Logging Locks.swift
[11/12] Emitting module Logging
BUILD FAILURE 5.9 linux

Build Machine: Linux 1