The Swift Package Index logo.Swift Package Index

Build Information

Failed to build HttpRequest with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4609320-1":/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/mezhevikin/http-request.git
Reference: 0.1.5
Cloned https://github.com/mezhevikin/http-request.git into spi-builder-workspace
SUCCESS checkout https://github.com/mezhevikin/http-request.git at 0.1.5
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/2] Emitting module HttpRequest
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:25:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:9:6: error: cannot find type 'URLRequest' in scope
) -> URLRequest {
     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:57:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var original: HTTPURLResponse?
                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
[2/2] Compiling HttpRequest HttpRequest.swift
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:25:18: error: cannot find type 'URLRequest' in scope
public extension URLRequest {
                 ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:9:6: error: cannot find type 'URLRequest' in scope
) -> URLRequest {
     ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:57:26: error: 'HTTPURLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
    public var original: HTTPURLResponse?
                         ^~~~~~~~~~~~~~~
Foundation.HTTPURLResponse:2:18: note: 'HTTPURLResponse' has been explicitly marked unavailable here
public typealias HTTPURLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:12:19: error: cannot find 'URLRequest' in scope
    var request = URLRequest(url: URL(string: url)!)
                  ^~~~~~~~~~
/host/spi-builder-workspace/Sources/HttpRequest/HttpRequest.swift:62:40: error: value of type 'HTTPURLResponse' (aka 'AnyObject') has no member 'statusCode'
        return 200 ..< 300 ~= original.statusCode
                              ~~~~~~~~ ^~~~~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 2