The Swift Package Index logo.Swift Package Index

Build Information

Failed to build o with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-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/0xOpenBytes/o.git
Reference: main
Cloned https://github.com/0xOpenBytes/o.git into spi-builder-workspace
SUCCESS checkout https://github.com/0xOpenBytes/o.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
Building for debugging...
[1/11] Compiling o NotificationUpdate.swift
[2/12] Compiling o o.swift
[3/12] Compiling o NotificationPost.swift
[4/12] Compiling o o+notification.swift
[5/12] Compiling o o+url.swift
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:15:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            public let response: URLResponse?
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:17:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(data: Data?, response: URLResponse?) {
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:22:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(_ tuple: (Data?, URLResponse?)) {
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:44:14: error: cannot find type 'URLRequest' in scope
        ) -> URLRequest {
             ^~~~~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:45:27: error: cannot find 'URLRequest' in scope
            var request = URLRequest(url: url)
                          ^~~~~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:66:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:69:30: error: cannot infer contextual base in reference to member 'GET'
                    method: .GET,
                            ~^~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:84:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:87:30: error: cannot infer contextual base in reference to member 'HEAD'
                    method: .HEAD,
                            ~^~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:102:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:105:30: error: cannot infer contextual base in reference to member 'CONNECT'
                    method: .CONNECT,
                            ~^~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:120:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:123:30: error: cannot infer contextual base in reference to member 'OPTIONS'
                    method: .OPTIONS,
                            ~^~~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:138:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:141:30: error: cannot infer contextual base in reference to member 'TRACE'
                    method: .TRACE,
                            ~^~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:158:22: error: cannot infer contextual base in reference to member 'POST'
            method: .POST,
                    ~^~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:165:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:181:22: error: cannot infer contextual base in reference to member 'PUT'
            method: .PUT,
                    ~^~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:188:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:204:22: error: cannot infer contextual base in reference to member 'PATCH'
            method: .PATCH,
                    ~^~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:211:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:227:22: error: cannot infer contextual base in reference to member 'DELETE'
            method: .DELETE,
                    ~^~~~~~
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:234:34: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
            try await URLSession.shared.data(
                      ~~~~~~~~~~ ^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/12] Compiling o NotificationDelete.swift
[7/12] Compiling o NotificationGet.swift
[8/12] Compiling o NotificationAuthorization.swift
[9/12] Compiling o NotificationDelegate.swift
[10/12] Emitting module o
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:15:34: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            public let response: URLResponse?
                                 ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:17:41: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(data: Data?, response: URLResponse?) {
                                        ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:22:35: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
            init(_ tuple: (Data?, URLResponse?)) {
                                  ^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
                 ^
/host/spi-builder-workspace/Sources/o/URL/o+url.swift:44:14: error: cannot find type 'URLRequest' in scope
        ) -> URLRequest {
             ^~~~~~~~~~
[11/12] Compiling o o+console.swift
/host/spi-builder-workspace/Sources/o/File/o+file.swift:260:20: error: no exact matches in call to initializer 
            return URL(filePath: filePath)
                   ^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
    public init(fileURLWithPath path: String)
           ^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
    public init(fileReferenceLiteralResourceName name: String)
           ^
[12/12] Compiling o o+file.swift
/host/spi-builder-workspace/Sources/o/File/o+file.swift:260:20: error: no exact matches in call to initializer 
            return URL(filePath: filePath)
                   ^
Foundation.URL:8:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileURLWithPath:)')
    public init(fileURLWithPath path: String)
           ^
Foundation.URL:2:12: note: incorrect labels for candidate (have: '(filePath:)', expected: '(fileReferenceLiteralResourceName:)')
    public init(fileReferenceLiteralResourceName name: String)
           ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1