Build Information
Failed to build Pocket with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-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: main
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
* branch main -> FETCH_HEAD
* [new branch] main -> origin/main
HEAD is now at 4699e58 Merge pull request #3 from shreyasm-dev/patch-1
Cloned https://github.com/sgade/swift-pocket.git
Revision (git rev-parse @):
4699e58353d36e4a9ba3ec04b291fbc313e77fd3
SUCCESS checkout https://github.com/sgade/swift-pocket.git at main
========================================
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-4606859-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/14] Compiling Pocket StringBool.swift
[4/15] Compiling Pocket Status.swift
[5/15] Compiling Pocket ObjectList.swift
[6/15] Compiling Pocket StringInt.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[7/15] Compiling Pocket Item.swift
[8/15] Compiling Pocket Pocket+Add.swift
[9/15] Compiling Pocket AddedItem.swift
[10/15] Compiling Pocket Errors.swift
[11/15] 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) {
~^~~~~~
[12/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
~~~~~~~~~~ ^~~~~~
[13/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
~~~~~~~~~~ ^~~~~~
[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.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)
~~~~~~~~~~ ^~~~
[6/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
~~~~~~~~~~ ^~~~~~
[7/8] Compiling Pocket Pocket+Add.swift
[8/8] Compiling Pocket Errors.swift
error: fatalError
BUILD FAILURE 5.10 linux