Build Information
Failed to build DataOperation 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/Mobelux/DataOperation.git
Reference: master
Cloned https://github.com/Mobelux/DataOperation.git into spi-builder-workspace
SUCCESS checkout https://github.com/Mobelux/DataOperation.git at master
========================================
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...
[1/5] Compiling DataOperation Request.swift
/host/spi-builder-workspace/Sources/DataOperation/Request.swift:19:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: Request {
^~~~~~~~~~
[2/5] Compiling DataOperation Session.swift
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: Session {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:30:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(configuration: URLSessionConfiguration)
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:13:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask?
^~~~~~~~~~~
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/5] Compiling DataOperation Operation+Utils.swift
[4/5] Emitting module DataOperation
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:104: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/Request.swift:19:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: Request {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:20:1: error: non-nominal type 'URLSession' (aka 'AnyObject') cannot be extended
extension URLSession: Session {
^ ~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:30:1: error: non-nominal type 'URLSessionDataTask' (aka 'AnyObject') cannot be extended
extension URLSessionDataTask: SessionDataTask {}
^ ~~~~~~~~~~~~~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:12:25: error: 'URLSessionConfiguration' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
init(configuration: URLSessionConfiguration)
^~~~~~~~~~~~~~~~~~~~~~~
Foundation.URLSessionConfiguration:2:18: note: 'URLSessionConfiguration' has been explicitly marked unavailable here
public typealias URLSessionConfiguration = AnyObject
^
/host/spi-builder-workspace/Sources/DataOperation/Session.swift:13:75: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
func task(with request: Request, completionHandler: @escaping (Data?, URLResponse?, Error?) -> Void) -> SessionDataTask?
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
[5/5] Compiling DataOperation DataOperation.swift
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:54: error: 'URLSession' (aka 'AnyObject') cannot be constructed because it has no accessible initializers
public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
^~~~~~~~~~
/host/spi-builder-workspace/Sources/DataOperation/DataOperation.swift:29:104: error: type 'URLSessionConfiguration' (aka 'AnyObject') has no member 'default'
public init(request: Request, session: Session = URLSession(configuration: URLSessionConfiguration.default)) {
~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2