Build Information
Failed to build Pocket 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/sgade/swift-pocket.git
Reference: 1.1.0
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/sgade/swift-pocket
* tag 1.1.0 -> FETCH_HEAD
HEAD is now at c19cac4 Remove completion-block functions in favor of async/await.
Cloned https://github.com/sgade/swift-pocket.git
Revision (git rev-parse @):
c19cac468490129f8a7dbeceb278688ef0a64f33
SUCCESS checkout https://github.com/sgade/swift-pocket.git at 1.1.0
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/sgade/swift-pocket.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
error: emit-module command failed with exit code 1 (use -v to see invocation)
[3/14] Emitting module Pocket
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(consumerKey: String, urlSession: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(consumerKey: String, urlSession: URLSession = .shared) {
~^~~~~~
[4/15] Compiling Pocket AddedItem.swift
[5/15] Compiling Pocket Errors.swift
[6/15] Compiling Pocket Item.swift
[7/15] Compiling Pocket Pocket+Add.swift
[8/15] Compiling Pocket Pocket+Authentication.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: URL(string: components.string!)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let task = URLSession.shared.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~
[9/15] Compiling Pocket Pocket+Modify.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: URL(string: components.string!)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let task = URLSession.shared.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~
[10/15] Compiling Pocket StringInt.swift
[11/15] Compiling Pocket ObjectList.swift
[12/15] Compiling Pocket Status.swift
[13/15] Compiling Pocket StringBool.swift
[14/15] Compiling Pocket Pocket+Retrieve.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(consumerKey: String, urlSession: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(consumerKey: String, urlSession: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[15/15] Compiling Pocket Pocket.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(consumerKey: String, urlSession: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(consumerKey: String, urlSession: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
error: fatalError
[0/1] Planning build
Building for debugging...
[0/1] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/6] Compiling Pocket Pocket+Authentication.swift
[3/6] Compiling Pocket Pocket+Retrieve.swift
[4/6] Emitting module Pocket
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(consumerKey: String, urlSession: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(consumerKey: String, urlSession: URLSession = .shared) {
~^~~~~~
[5/6] Compiling Pocket Pocket+Modify.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:104:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: URL(string: components.string!)!)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket+Modify.swift:108:31: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
let task = URLSession.shared.dataTask(with: request) { data, response, error in
~~~~~~~~~~ ^~~~~~
[6/6] Compiling Pocket Pocket.swift
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:18:21: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
let urlSession: URLSession
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:50: error: 'URLSession' is unavailable: This type has moved to the FoundationNetworking module. Import that module to use it.
public init(consumerKey: String, urlSession: URLSession = .shared) {
^~~~~~~~~~
Foundation.URLSession:2:18: note: 'URLSession' has been explicitly marked unavailable here
public typealias URLSession = AnyObject
^
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:24:64: error: type 'URLSession' (aka 'AnyObject') has no member 'shared'
public init(consumerKey: String, urlSession: URLSession = .shared) {
~^~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:36:23: error: cannot find 'URLRequest' in scope
var request = URLRequest(url: url)
^~~~~~~~~~
/host/spi-builder-workspace/Sources/Pocket/Pocket.swift:42:53: error: value of type 'URLSession' (aka 'AnyObject') has no member 'data'
let (data, response) = try await urlSession.data(for: request)
~~~~~~~~~~ ^~~~
[7/8] Compiling Pocket Errors.swift
[8/8] Compiling Pocket Pocket+Add.swift
error: fatalError
BUILD FAILURE 5.10 linux