The Swift Package Index logo.Swift Package Index

Build Information

Failed to build DataOperation 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/Mobelux/DataOperation.git
Reference: master
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/Mobelux/DataOperation
 * branch            master     -> FETCH_HEAD
 * [new branch]      master     -> origin/master
HEAD is now at f09d288 Update README.md
Cloned https://github.com/Mobelux/DataOperation.git
Revision (git rev-parse @):
f09d28852af68f1e79f28bf5aef579e7d346ec66
SUCCESS checkout https://github.com/Mobelux/DataOperation.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/Mobelux/DataOperation.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
Building for debugging...
[0/2] Write sources
[1/2] Write swift-version-24593BA9C3E375BF.txt
[3/7] Compiling DataOperation Request.swift
/host/spi-builder-workspace/Sources/DataOperation/Request.swift:19:11: error: cannot find type 'URLRequest' in scope
extension URLRequest: Request {
          ^~~~~~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/7] 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/7] 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)) {
                                                                               ~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~~
[6/7] Compiling DataOperation Operation+Utils.swift
[7/7] 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: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
[2/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 {
          ^~~~~~~~~~
[3/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)
[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.10 linux

Build Machine: Linux 2