Build Information
Failed to build Corkboard with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-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/kiliankoe/Corkboard.git
Reference: master
Cloned https://github.com/kiliankoe/Corkboard.git into spi-builder-workspace
SUCCESS checkout https://github.com/kiliankoe/Corkboard.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-0":/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 Corkboard PinboardClient.swift
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:10:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case network(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:44:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:102:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:169:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:105:28: error: value of type 'URLSession' (aka 'AnyObject') has no member 'dataTask'
let task = session.dataTask(with: url) { data, resp, error in
~~~~~~~ ^~~~~~~~
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:111:46: error: argument type '_' expected to be an instance of a class or class-constrained type
completion(.failure(.network(resp)))
^
[2/5] Compiling Corkboard Responses.swift
[3/5] Compiling Corkboard API.swift
/host/spi-builder-workspace/Sources/Corkboard/API.swift:25:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func postsUpdate(session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:25:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public func postsUpdate(session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:61:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:61:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:107:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:107:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:137:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:137:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:176:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:176:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Compiling Corkboard Bookmark.swift
[5/5] Emitting module Corkboard
/host/spi-builder-workspace/Sources/Corkboard/API.swift:25:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public func postsUpdate(session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:25:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public func postsUpdate(session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:61:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:61:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:107:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:107:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:137:35: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:137:49: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/API.swift:176:38: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession = .shared,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/API.swift:176:52: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
session: URLSession = .shared,
~^~~~~~
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:10:18: error: 'URLResponse' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
case network(URLResponse?)
^~~~~~~~~~~
Foundation.URLResponse:2:18: note: 'URLResponse' has been explicitly marked unavailable here
public typealias URLResponse = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:44:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:102:49: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Corkboard/PinboardClient.swift:169:47: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
session: URLSession,
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2